Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-06-27 16:54:39
- johnboat
- New Member
- Registered: 2007-10-18
- Posts: 6
Render a list of links to images in a category with a rel attribute
I am trying to implement the Shadowbox script into a TP site and I am afraid I am still a bit unfamiliar with TP (more experience with EE).
All I am looking to do is render a list of links (to the full sized image) for a certain image category and have a rel tag inserted. For example:
<a href="beach.jpg" rel="shadowbox[Vacation]">The Beach</a>
<a href="pier.jpg" rel="shadowbox[Vacation]">The Pier</a>
Where [Vacation] is the image category. Is there an easy way to do this?
Thanks in advance for any help or suggestions.
Offline
#2 2008-06-27 17:31:38
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Render a list of links to images in a category with a rel attribute
smd_gallery is what you’re looking for (see examples in its help).
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2008-06-27 17:32:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Render a list of links to images in a category with a rel attribute
Or have a look at wet_for_each_image and upm_image, sample code here.
Offline
#4 2008-06-27 17:47:13
- johnboat
- New Member
- Registered: 2007-10-18
- Posts: 6
Re: Render a list of links to images in a category with a rel attribute
Thanks guys, I will check out both. I appreciate the help.
John
Offline