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

My site needs a Featured news section, which will display only one news - the latest news from folder named Featured. The problem is that the site also displays the latest 4 news posted, regardless the folder they belong. This way after adding a new featured news it will be displayed in both places and I would like to avoid this double displaying, by excluding somehow all the news belonging to folder Featured, from this second news section.
Can this be handled by Couch?

Thank you,
Attila
Certainly.
Code: Select all
<cms:pages masterpage='news.php' folder='NOT featured'>
   ...
</cms:pages>

The snippet given above will fetch all pages belonging to 'news.php' except those that are in the folder named 'featured'.
You can find details about all the parameters related to the 'pages' tag at http://www.couchcms.com/docs/tags-reference/pages.html.

Hope this helps. Please let me know.
2 posts Page 1 of 1