Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I am trying to get the footer of my site to display all of my blog categories and sub-categories. I am able to get it to display, but for some reason there are duplicate categories displaying. Is there something I should be adding to the code below?

Code: Select all
<!-- Blog Categories -->
       <cms:pages masterpage='blog.php' folder=k_folder_name >
            <ul class="copyright">
                <li><a href="<cms:show k_page_folderlink />"><cms:show k_page_foldertitle /> Blogs</a></li>
            </ul>
       </cms:pages>
            <!-- /Blog Categories -->
You are seeing duplication because of the 'pages' tag. You evidently have multiple pages per folder. The correct way to do this is to use the 'folders' tag:
Code: Select all
<!-- Blog Categories -->
   <ul class="copyright">
      <cms:folders masterpage='blog.php' >
         <li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /> Blogs</a></li>
      </cms:folders>
   </ul>
<!-- /Blog Categories -->
http://www.couchcms.com/docs/tags-reference/folders.html

I'm not sure if your nesting of the 'ul' tag inside of the 'pages' tag was purposeful, but the markup didn't make sense to me so I changed it.
Thank you that did the trick. I am still trying to wrap my head around couch (I am pretty green when it comes to dev). Thank you again for your help.
3 posts Page 1 of 1