I'm following a convention in my build where by I have main templates and sidebars for each (sidebars which typically have k_folders and archives).
Is it possible to do something like this:
So my file structure is like:
root/mytemplate.php
root/couch/snippets/cmytemplate_sidebar.php
example of what I tried in my sidebar on a news.php page:
I've read the docs on Smart Embeds and while they look great I'm not using them in this instance because I would prefer to be able to create a single sidebar instance for use across multiple cloned pages, it's about keeping the the core templates of the site as bare bones as possible so it can be easily re-cycled or skinned.
Is it possible to do something like this:
- Code: Select all
<cms:folders masterpage='<cms:show k_template_name />' orderby='title'>
So my file structure is like:
root/mytemplate.php
root/couch/snippets/cmytemplate_sidebar.php
example of what I tried in my sidebar on a news.php page:
- Code: Select all
<h4><cms:show k_template_title /> Categories</h4>
<ul class="nav nav-pills nav-stacked">
<cms:folders masterpage='<cms: k_template_name />' orderby='title'>
<li><a href="<cms:k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul>
<h4><cms:show k_template_title /> Archives</h4>
<ul class="nav nav-pills nav-stacked">
<cms:archives masterpage='"<cms:show k_template_name />"'>
<li><a href="<cms: k_archive_link />"><cms:date k_archive_date format='F Y' /></a></li>
</cms:archives>
</ul>
I've read the docs on Smart Embeds and while they look great I'm not using them in this instance because I would prefer to be able to create a single sidebar instance for use across multiple cloned pages, it's about keeping the the core templates of the site as bare bones as possible so it can be easily re-cycled or skinned.