Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-24 16:52:45

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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…

  1. a page contains a thumbnail list
    • clicking on a thumb brings up…
  2. 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…
  3. 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

#3 2007-03-24 17:38:11

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#5 2007-03-24 18:00:17

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#6 2007-03-24 19:43:01

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#7 2007-03-24 20:10:46

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: 3-Step Gallery

dale,
show us the money! :)


Offline

#8 2007-03-24 22:05:55

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#10 2007-03-24 23:15:11

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: 3-Step Gallery

Dale,
You can put back your light saber now. :)


Offline

#11 2007-03-25 16:55:57

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: 3-Step Gallery

whrrrhoooommmm….

Offline

#12 2007-04-09 17:33:02

manon1165
New Member
From: NY
Registered: 2007-04-07
Posts: 2
Website

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

Board footer

Powered by FluxBB