Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hey there. I wanna show my product categories on my homepage and using the code below to make this.

<cms:folders masterpage='tr/urun.php'>
<div class="col-12 gizli hvr-shrink alt-bosluk-yok">

<a href="<cms:show k_folder_link />">
<div class="col-12" style="background: url(<cms:show k_folder_image />) no-repeat center center; background-size: 100% 100%; height: 400px;">
<h2 style="color: white; font-size: 20px; float: left; padding: 20px; background-color: #005588; opacity: 0.7; position: left-bottom;"><cms:show k_folder_title /></h2>

</div></a>

</div>
</cms:folders>


When I use this code It shows all folders including subfolders, but I dont wanna show subfolders. How can I exclude subfolders?
Hi,

You can set the 'depth' parameter to '1' for listing only the top-level folders (which is what the question seems to be about
Code: Select all
<cms:folders masterpage='tr/urun.php' depth='1'>

More info at - http://docs.couchcms.com/concepts/using-folders.html

Hope it helps.
Thanks KK. I read that page several time but I really forgot it. Thank you again :)
3 posts Page 1 of 1