You are not logged in.
Pages: 1
my aim is to create fancybox image gallery using textpattern native tags. please help me replace upm_image plugin tags with correct txp image and thumbnail tags
current code:
<txp:images category="galerii" sort="date asc" wraptag="div" break="">
<a class="fancybox" href="<txp:upm_img_full_url />" rel="<txp:upm_img_category />" " title="<txp:upm_img_caption />">
<img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" />
</a>
</txp:images>
Last edited by Gallex (2012-12-16 11:13:35)
Offline
untested
<txp:images category="galerii" sort="date asc" wraptag="div" break="">
<a class="fancybox" href="<txp:image />" rel="<txp:category type="image" />" title="<txp:image_info type="caption" />"><img src="<txp:thumbnail />" /></a>
</txp:images>
> edit: corrected typo
Last edited by colak (2012-12-16 11:43:01)
neme.org | neme-imca.org | hblack.net | LABS
Offline
something wrong…
Last edited by Gallex (2012-12-17 07:35:26)
Offline
Ok:) try
<txp:images category="galerii" sort="date asc" wraptag="div" break="">
<a class="fancybox" href="<txp:image_url />" rel="<txp:category type="image" />" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" title="<txp:image_info type="caption" />"><txp:thumbnail /></a>
</txp:images>
> Edit: another typo:)
neme.org | neme-imca.org | hblack.net | LABS
Offline
almost there. rel attribute is somehow empty now….
Offline
As the image category in the code is always galerii couldn’t you just use
<txp:images category="galerii" sort="date asc" wraptag="div" break="">
<a class="fancybox" href="<txp:image_url />" rel="galerii" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" title="<txp:image_info type="caption" />"><txp:thumbnail /></a>
</txp:images>
neme.org | neme-imca.org | hblack.net | LABS
Offline
There’s a wiki page reduced to only image tags. Quite manageable ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Pages: 1