Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-12-16 11:06:55

Gallex
Member
Registered: 2006-10-08
Posts: 712

[SOLVED] image gallery

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

#2 2012-12-16 11:36:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,884
Website

Re: [SOLVED] image gallery

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)


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#3 2012-12-16 11:52:34

Gallex
Member
Registered: 2006-10-08
Posts: 712

Re: [SOLVED] image gallery

something wrong…

Last edited by Gallex (2012-12-17 07:35:26)

Offline

#4 2012-12-16 12:03:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,884
Website

Re: [SOLVED] image gallery

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:)


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#5 2012-12-16 12:45:52

Gallex
Member
Registered: 2006-10-08
Posts: 712

Re: [SOLVED] image gallery

almost there. rel attribute is somehow empty now….

Offline

#6 2012-12-16 12:52:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,884
Website

Re: [SOLVED] image gallery

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>

Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#7 2012-12-16 13:12:06

Gallex
Member
Registered: 2006-10-08
Posts: 712

Re: [SOLVED] image gallery

yes i could. thank’s a lot, colak!

Offline

#8 2012-12-16 15:29:16

uli
Moderator
From: Cologne/Köln
Registered: 2006-08-15
Posts: 3,009

Re: [SOLVED] image gallery

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

Board footer

Powered by FluxBB