Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-02 05:25:32

ejverslu
New Member
From: Loveland, CO USA
Registered: 2006-07-01
Posts: 5

Photoblog type setup for bas_lightbox

I am a new guy to the world of textpattern (as in I started learning basics last weekend), but I have some experience with xhtml web design and css. I am working on designing a personal site powered by TP that will be primarily a photoblog consisting of article-oriented galleries. I want to have the article list of topic specific articles with each article presenting some text and a grid of thumbnails that will open in Lightbox v2.0, very similar to that seen at modestadventurer.com.

I have gotten ahold of bas-lightbox from Bastien and have been playing with it. It works great for displaying a static set of images in lightbox, but I want to make it easily updateable.

I am taking my approach based off of the Setting up a thumbnail gallery from textpattern resources. In it they use rss_thumbpop to display all images with a category that corresponds to the article id. rss_thumbpop takes the open “gallery” article and automatically looks for images with the category of “article-x” where x is the corresponding article ID. I assumed that I could trick bas_lightbox into doing the same by using the cat attribute. Basically it would look like this:

<code><txp:bas_lightbox cat=“article-<txp:article_id />” /></code>

For example, if I was making an article with an article ID=8 to be a new gallery, I would simply post the article on the photos page with a form that would call for all images in the category “article-8” (using a conditional if_individual_article to call the gallery, and an if_article_list to give a list of galleries with their corresponding article_image). So it would give me my gallery (article #8) and a list of all my thumbnails with the category of article-8.

As you can see (or as it makes sense to me) this works for one article, but when I have a seperate article ID for each gallery, either I have a variable in the category attribute, or I have to write a new form each time. I can’t be writing new gallery forms for each gallery I want to post. As a new customer of this CMS, I am going to demand that it takes care of that for me.

My question here is… Is that syntax above allowed? When I attempt to run the nested tags, I end up with everything before <code><txp:article_id /></code>, and the following /> being displayed, with no thumbs. Am I allowed to nest txp tags in other txp tags? More broadly, am I on the right approach, or am I completely off base on what I am trying to do?

Offline

#2 2006-07-02 05:34:55

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Photoblog type setup for bas_lightbox

No, it is not. This the tag within a tag issue.

Offline

#3 2006-07-02 05:45:48

ejverslu
New Member
From: Loveland, CO USA
Registered: 2006-07-01
Posts: 5

Re: Photoblog type setup for bas_lightbox

That makes sense. I figured that’s what was going on. Any suggestions on how I can get to where I want to be then? How can I make the cat attribute variable without using txp:article_id?

Offline

#4 2006-07-03 01:12:14

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

Re: Photoblog type setup for bas_lightbox

Eric,
I think you should give up now, Textpattern is for superior people, and anyone with a fish choking to death in their avatar is clearly inferior!!! :)

LOL. sorry, couldn’t help myself. Welcome aboard buddy.

You may give Bastian a quick email and ask him if he has any suggestions. Generally you can’t do tags within TXP or Plugin tags without using PHP.
Its lookin good dude. Have patience. Keep kickin arse. Tell D and R hello.

Peas,

Matthew


Offline

Board footer

Powered by FluxBB