Rendering channels with different templates in Conversant
2/24/2006; 6:59 PM
I need to render the different subsections of the new design using different stylesheets and different main page templates. Really the most important thing is the stylesheet, the main page template only changes the pointers to the appropriate messages to change the navigation and sidebar content. As highlighted by Seth in the support forums, the easiest way to solve this problem involves the following steps.
- Create a new folder where the individual channel pages are going to be saved.
- Set the folder properties to point to the desired main page template and stylesheet.
- Create a new message, set the message category as system and type the following code in the message:
<!--#weblog.days pageId="[sitename]/[weblog name]" dayTemplate="[day template]" daysToDisplay="20" channel="[channel to render]"-->
Example: <!--#weblog.days pageId="mindspill/index" dayTemplate="KiwiWeblogDay" daysToDisplay="20" channel="linux"--> - Do not add the message to the index and save the message.
- Bind the message to a page in the previously created folder (e.g. tech_channel/linux) Note that the adminBox macro is required for the bind menu.
- Now the page template and the stylesheet properties of the page are the ones that were specified in the folder properties.
- Instead of displaying the default channel page (/index/channel/linux) you now link to the bound message (i.e. /tech_channel/linux)
Logon
Fill out the form below to logon to this site, or sign up below.
Signup
Fill out the form below to join as a member of this site.
