Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I have created a list of folders in the template. However i want to be able to hide folders that do not have content and activate them when they have content. Is there an cms:if/cms:else statement for doing this.

Thanks for your help.
Hi,

This question has been answered several times before so instead of providing a straight answer, allow me to give you a tip that'll be helpful in many other situations.

Place a <cms:dump /> tag within the <cms:folders> block. As the folders get iterated, you'll get a list of all the variables available for the particular folder being currently listed.

I am sure you'll spot the variable that shows that the folder is empty. You can then use that variable with a if/else statement.

Of course, in case you have any difficulty just let me know and I'll post the complete solution :)
2 posts Page 1 of 1
cron