kentico_zdenekc
-
4/12/2011 3:10:21 AM
RE:Document Type Transformations for main page and sub page
Hi,
Building upon example from the tutorial, you can either add the message board to the Selected item transformation of the product Datalist, or add it as a standalone webpart into the products page template (layout).
It is possible to place your Message board webpart to the transformation like this:
... <%@ Register Src="~/CMSWebParts/MessageBoards/MessageBoard.ascx" TagName="MessageBoard" TagPrefix="cms" %> ...
<cms:MessageBoard ID="msgBoard" runat="server" BoardOpened="true" MessageTransformation="Community.Transformations.MessageBoard" ShowEdit="true" ShowDelete="true" ShowApprove="true" ShowReject="true" BoardUseCaptcha="true" EnableContentRating="true" EnableAnonymousRead="true" />
You may need to use appropriate (and existing) transformation in MessageTransformation attribute, this is just an example.
The second approach would be placing the Message board webpart directly into the page template, under the product Datalist. In the webpart properties, you would set "Show for document types" to your "computer" doctype, so that it would show only in detail page (selected item)...not in all products list. You can specify all product document types you're listing (or those you want to offer the message board).
Regards, Zdenek
|