First off I want to thank the CouchCMS team for making this amazing product. I've been playing with CouchCMS for about a year now and it has by far been my go to CMS for creating websites. I've been able to get most of my issues resolved by simply reading through the documentation, forums and looking at examples but I've come up to a wall that I need some assistance with.
To give some context, what I'm trying to do is build a very simple message board or forum system. After reading through the Advanced Tutorial and the Extended Entities posts I think I've come up with a way to do it utilizing some of the more advanced features of CouchCMS. One of those is combining the <cms:route /> tag with <cms:smart_embed />. However, since Routes requires us to ignore the View context (with K_IGNORE_CONTEXT), the Smart Embed tag doesn't seem to be picking up what it should be displaying. This is what I'm currently working with (this is my forums.php template):
In my content folder I have a forums-list.inc and forums-folder.inc. Appending /category to my domain doesn't seem to pick up the new view though. It just acts as it's still in list view. Any help would be appreciated!
To give some context, what I'm trying to do is build a very simple message board or forum system. After reading through the Advanced Tutorial and the Extended Entities posts I think I've come up with a way to do it utilizing some of the more advanced features of CouchCMS. One of those is combining the <cms:route /> tag with <cms:smart_embed />. However, since Routes requires us to ignore the View context (with K_IGNORE_CONTEXT), the Smart Embed tag doesn't seem to be picking up what it should be displaying. This is what I'm currently working with (this is my forums.php template):
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Forums' clonable='1' routable='1' dynamic_folders='1'>
<cms:route name='list_view' path='' />
<cms:route name='folder_view' path='{:id}/category' />
<cms:route name='page_view' path='post' />
</cms:template>
<cms:match_route debug='0' />
<cms:smart_embed 'header' />
<cms:smart_embed 'sidebar' />
<cms:smart_embed 'content' />
<cms:smart_embed 'footer' />
<?php COUCH::invoke( K_IGNORE_CONTEXT ); ?>
In my content folder I have a forums-list.inc and forums-folder.inc. Appending /category to my domain doesn't seem to pick up the new view though. It just acts as it's still in list view. Any help would be appreciated!