Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
images tag gallery by section not category
Hi any advice on using the custom article tag to generate thumbnail lists with the images tag ?
Or the images tag with some kind of section filter?
I need to output thumbnail lists based on sections not categories. In the docs it seems like images tag based galleries are created primarily with image categories.
I’m trying something like this:
<txp:article_custom section="sectionwithimages" >
<txp:images break="li" pageby="limit" limit="12" wraptag="ol" class="thumbs" >
<txp:permlink> <img title="<txp:image_info type="caption" />" alt="<txp:image_info type="alt" />" src="<txp:site_url />images/<txp:image_info type="id" />t/<txp:image_info type="name" />" /></txp:permlink ></txp:images>
</txp:article_custom >
and that outputs:
<ol class="thumbs">
<li> image 1 link etc....</li>
</ol>
<ol class="thumbs">
<li> image 2 link etc....</li>
</li>
</ol>
But I need something that renders this html:
<ol class="thumbs">
<li> image 1 link etc....</li>
<li> image 2 link etc....</li>
</ol>
Thanks
-kevin
Last edited by kvnmcwebn (2012-03-19 14:24:34)
its a bad hen that wont scratch itself.
photogallery
Offline
Re: images tag gallery by section not category
Ah I can’t believe I just posted that. Been up too long. All i needed was this:
<ol id="thumbs">
<txp:article_custom section="sectionwithimages">
<txp:images break="li" pageby="limit" limit="12" >
<txp:permlink>
<img width="<txp:image_info type="thumb_w" />"
height="<txp:image_info type="thumb_h" />"
title="<txp:image_info type="caption" />"
alt="<txp:image_info type="alt" />"
src="<txp:site_url />images/<txp:image_info type="id" />t/<txp:image_info type="name" />" />
</txp:permlink >
</txp:images>
</txp:article_custom >
</ol>
…
Last edited by kvnmcwebn (2012-03-19 15:02:26)
its a bad hen that wont scratch itself.
photogallery
Offline