Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, I want to output the ID of the categorie of each image:

Example:
Code: Select all
<div class="ch-grid element id23" id="#data-inline23">
<img class="ch-item" src="<cms:show my_thumb_2 />" alt='<cms:show k_page_title />'>
<div>
<span><span class="category"></span><cms:show k_page_title /></span>
</div>


How 2 show the ID: <cms:show my_cat_id /> ??
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
Assuming an image (i.e. the cloned-page) belongs to a folder, the following will output the folder's id.
Code: Select all
<cms:show k_page_folderid />

Tip: place a <cms:dump /> tag on the page somewhere to see which variables of interest are available for use.
This works great. Images that not belong to a folder will be " "; all others show the folder number, this is so much fun! I like the couch.
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
3 posts Page 1 of 1
cron