Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-09-14 10:47:53
- thijs
- Member
- Registered: 2012-04-17
- Posts: 39
Using txp:image_info dynamically?
I am building an image gallery, one that will work without javascript, server side and on any device and I would like to include captions. I was curious if there’s any way to use the txp:image_info tag but use it DYNAMICALLY, so that it gets the image id from the url, or from another tag, and spit out the caption that is entered in the image uploading mechanism of textpattern.
for ex:
http://dev.thijsvissia.nl/drawing/?c=illustration&context=image&p=11
Is there any way to pass variables from one tag to another, or from the above url to an image tag in the page?
<div class=“imgdispl”> <txp:image_display /> <txp:image_info type=“caption” wraptag=“div” class=“img_cap” />
</div>
I hope my explanation is clear enough. I’m still trying to get a handle on how textpattern typically deals with stuff like this. Any help appreciated!
p.s. reading on, i assume I should probably use txp:images rather than the txp:thumbnail /txp:image_display combo? Can txp:images also take image ids from the url?
Last edited by thijs (2012-09-14 10:56:42)
Offline
Offline
#3 2012-09-14 11:38:43
- thijs
- Member
- Registered: 2012-04-17
- Posts: 39
Re: Using txp:image_info dynamically?
etc wrote:
adi_gps is a usual suspect for extracting GET variables, you may take a look.
i will do, thank you sir.
Offline
Pages: 1