Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-26 19:51:47

damienhasselhoff
New Member
Registered: 2005-09-09
Posts: 6

...make a simple gallery without all these problems?

First of all, pardon the ugliness of this site (and its other problems, like the header) while I just try to figure out the functionality first: www.anneperetz.com. I want a very simple “museum-like” site.

I would like a gallery page here: www.anneperetz.com/gallery that shows a group of thumbnails. When any thumbnail is clicked, another page shows the large image and some thumbnails, and navigation for the thumbnail group (like <code><txp:link_to_next></code> and <code><txp:link_to_prev></code>). I’ve tried rss_thumbpop, but it didn’t allow enough customization (e.g. thumbnails in the sidebar). I have also been trying upm_image_popper and wet_thumbfilter for my group, but get no images at all! (Yes, each image has a thumbnail…)

Basically, every article in my “article” section is the title of the painting (as the article title) and the info as its text, with an article_image for each. Shouldn’t I be able to simply show an archive list of articles to make my thumbnail page, and navigate through the article_images as if any other regular article navigation?

I believe I have some real problems understanding some of the textpattern semantics, namely when and how to use <code><txp:if_individual_article></code> and <code><txp:if_article_list></code>. The more I think I get it, the worse it gets. I think I’m missing some real basic info here to get this simple thing to work right.

Thanks in advance, folks!

edit: even my textile isn’t working!

Last edited by damienhasselhoff (2005-12-26 23:49:35)

Offline

#2 2005-12-26 23:05:04

MsContrary
Member
From: California
Registered: 2004-12-27
Posts: 52
Website

Re: ...make a simple gallery without all these problems?

I think you meant www.anneperetz.com and this for the gallery link.

(Just trying to be helpful…can’ help you with your problem, though.)

M


I am not a professional woman

Offline

#3 2005-12-26 23:29:14

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: ...make a simple gallery without all these problems?

Taking a quick look at your code, you have the images not showing because the link is ./ rather than ../

That might help you debug.

Offline

#4 2005-12-27 02:08:38

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: ...make a simple gallery without all these problems?

The real trick to getting a grip on <code><txp:if_individual_article></code> and <code><txp:if_article_list></code> is in understanding that TXP operates in two very distinct article modes: Single and List.
When you link thru a permlink to display an article, TXP calls that article by an ID which is part of the URL. This is single article or individual article mode. <code><txp:link_to_prev></code> and <code><txp:link_to_next></code> respond in this mode. Linking to the next article in the sort order and the previous article in the sort order. That sort order is defined by your article tag attributes.
When you search for an article list by section or category you are in article list mode, even if only one article is returned. <code><txp:older></code><code><txp:newer></code> will respond in this mode by stepping thru article list by the amount set for limit in your article / tag. Calling an <code><txp:article /></code> is what creates your page statistics, it needs to happen before you use those statistics to create navigation.

<code><txp:if_individual_article></code> and <code><txp:if_article_list></code> will sense which mode has been selected and execute contained statements accordingly.

Hopefully this helps more than it hurts :)

Offline

#5 2005-12-27 06:07:31

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: ...make a simple gallery without all these problems?

Thanks for the honourble mention of wet_thumbfilter but you’d be better off with wet_article_thumb and some other ingredients:

  1. build a page template which contains a suitable call to txp:article (if you stay in the currently active section) or txp:article_custom (if you need to pull in images from another section and need more control over the set of articles chosen)
  2. wet_article_thumb will display the current article’s thumbnail and have it link to the article which would in turn use txp:article_image to display the full size image accompanied with other item from the article such as txp:body according to your needs.

So, a basic article form would look somehow like this:

bc..<txp:if_article_list> <txp:wet_article_thumb /> <txp:perm_link><txp:title /></txp:perm_link>
<txp:else /> <txp:article_image /> <txp:title /> <txp:body /> <txp:posted />
</txp:if_article_list>

And you’re done™.

HTH,

//w&

Offline

Board footer

Powered by FluxBB