Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi All,

I am trying to hide a particular folder from displaying in my list view. But I have not been able to. Here's my code
Code: Select all
<cms:folders masterpage='en/help-center.php' orderby='weight' folder='NOT frequently-asked-questions'  >
    <div class="card card-item-container card-with-footer"> 
        <a href="<cms:show k_folder_link />">
            <img src="<cms:show k_folder_image />" alt="icon"/>
        </a>             
        <a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>             
      <ul class="unstyled block">
         <cms:pages masterpage='en/help-center.php' folder=k_folder_name limit='5'>
         <li><a href="<cms:show k_page_link />">  <cms:show k_page_title /> </a> </li>
         </cms:pages>
      </ul>
    </div>
</cms:folders>


The <cms:folders ...> tag iterates through all my folders and displays the pages, but I want to exclude the Frequently Asked Questions folder

Kindly tell me what I am doing wrong, thanks.
The Only Nigerian Good Son!
Hi,

As explained in the docs (http://docs.couchcms.com/tags-reference/folders.html), the parameter to use is 'exclude' -
Folders can be excluded from being enumerated by specifying them with this parameter. If an excluded folder has children, they are excluded too.
If multiple folders are to be excluded, separate them with comma.

Hope this helps.
2 posts Page 1 of 1
cron