Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
3-Step Gallery
Ok,
So I’ve created a bahjillion galleries that comprise of the old thumbnail loads larger image, but I can’t figure out quite how to do the following…
- a page contains a thumbnail list
- clicking on a thumb brings up…
- a page formatted with the large (but scaled to fit in css) version of the image (with title, caption, etc…)
- clicking on the image does the lightbox/slimbox thing…
- a fake popup with the full size image and the previous page grayed behind.
So far I’ve tried
- Hacking rss_thumbpop (not quite what I’m after)
- Using bos_image_index/display with wondertag (but can’t format image_display to be wrapped in a link with the image number from the url (eg. ?p=25) Too bad cch_urlvar no longer behaves.
Any suggestions? How can I read the url with a tag and use wondertag to feed it to another tag?
Offline
#2 2007-03-24 17:34:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: 3-Step Gallery
I’m not sure I entirely understand what you want to do, but have a look at the code examples for wet_for_each_image. You can use attributes like id="{id}"
in your tags.
Last edited by els (2007-03-24 17:35:44)
Offline
Re: 3-Step Gallery
Thanks Els. Yep, I’ve been using that. But I still can’t construct a thumbnail list that connects to a landing page with a formatted single image, that links to itself (for the purposes of lightbox).
Kinda tricky. it’s a specific request of a person whom I’m assisting. Otherwise I’d go another route.
Offline
#4 2007-03-24 17:41:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: 3-Step Gallery
It would be easier I think if you could use articles and article_image. But I suppose that is not your intention?
Offline
Re: 3-Step Gallery
Yep, I think creating an article for every image is a bit redundant, so I’m looking for an all-image solution…
Offline
Re: 3-Step Gallery
OK, I got it to work using wet_for_each_image, wondertag, urlvar and smd_slimbox.
I can post code if anyone is interested.
Offline
Re: 3-Step Gallery
dale,
show us the money! :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: 3-Step Gallery
<txp:asy_wondertag>
<txp:bos_image_display capt="1" link_title="<txp:section/>" title="1" link_to="/images/<txp:chs_urlvar_echo var="p"/>.jpg"/>
</txp:asy_wondertag>
<txp:asy_wondertag>
<txp:wet_for_each_image category="<txp:section/>_gallery">
<a href="?c=<txp:section/>_gallery&p={id}">
<txp:thumbnail id="{id}"/>
</a>
</txp:wet_for_each_image>
</txp:asy_wondertag>
had to hack bos_image_display to output rel=“lightbox-smd” but I finally got it to work…
Offline
#9 2007-03-24 23:10:51
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: 3-Step Gallery
Nice find! I’m impressed…
Offline
Re: 3-Step Gallery
Dale,
You can put back your light saber now. :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: 3-Step Gallery
whrrrhoooommmm….
Offline
Re: 3-Step Gallery
i’m sorry, i’m a textpattern newbie, just gettting the hang of it all, including tags, etc. right now need to implement a kick-ass gallery. i’m trying yours out, ( uploading all four plugins) but don’t understand what to input into FORM and what to input into the PAGE TEMPLATE. unless there’re more comprehensive directions on this. any help would be appreciated. MUCH THANKS!
Offline