Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi,

I get to display the k_folder_name variable between a <cms:folders ….>, but not within a <cms:pages…>. And I need it to sort my websites categories automatically, but the data-type comes back empty (I could enter a variable for each page, but it would be simpler otherwise). Is there a way to do so?

Thanks,
Paolo

PS: my code is the following

<ul id="filtrable">
<li class="current all"><a href="#">All</a></li>
<cms:folders masterpage='portfolio.php'>
<li class="<cms:show k_folder_name />"><a href="#"><cms:show k_folder_title /></a></li>
</cms:folders>

</ul>

<div class="clear"></div>

<section class="row da-thumbs portfolio filtrable clearfix">

<cms:pages masterpage='portfolio.php' paginate='1' limit='8'>
<article data-id="id-1" data-type="<cms:show k_folder_name />" class="span3">
<span>
<img src="<cms:show thumb />" alt="photo"/>
<div class="pd">
<a href="<cms:show image_1 />" class="p-view" data-rel="prettyPhoto"></a>
<a href="http://<cms:show website />" class="p-link"></a>
</div>
</span>
<h3><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h3>
<p><cms:excerpt count='100' truncate_chars='1'><cms:show content /></cms:excerpt></p>
<a href="<cms:show k_page_link />" class="read-more">Read More ...</a>
</article>
When in a page view or <cms:pages>...</cms:pages>, the variable name is k_page_foldername. A quick way though to determine what is available is just to drop in a <cms:dump/> tag.
2 posts Page 1 of 1
cron