I am using the tutorials to create multiple page views using dynamic folders. I would like to query couch for the folder named teamview and then tell couch to show certain styles if the folder is not teamview and specific styles if the folder is teamview.
My code:
Could someone help in the correct approach to this. I have combed through the documentation and it seems like i am missing something.
My code:
- Code: Select all
<cms:if k_is_page >
<HTML MARK UP >
<cms:pages folder=k_folder_name>
<cms:if k_folder_name = 'NOT teamview' >
<cms:embed 'normal_styles.tpl' />
<cms:else />
<cms:embed 'specific_styles.tpl' />
</cms:if>
</cms:pages>
<HTML MARK UP >
<cms:else />
<cms:embed 'home.tpl' />
</cms:if>
Could someone help in the correct approach to this. I have combed through the documentation and it seems like i am missing something.