Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2004-04-06 16:32:41

Drew
Plugin Author
From: Red pillar box, Baker St.
Registered: 2004-02-15
Posts: 53
Website

Re: Using the new image gallery tags

If you enable PHP in your templates you could just grab the querystring parameter manually.

<?php echo $_GET['c'] ?>


drew mclellan

Offline

#26 2004-04-06 16:37:12

.s
New Member
Registered: 2004-02-24
Posts: 9
Website

Re: Using the new image gallery tags

My word, thank you Drew. That is brilliant.

Offline

#27 2004-04-06 18:34:04

Drew
Plugin Author
From: Red pillar box, Baker St.
Registered: 2004-02-15
Posts: 53
Website

Re: Using the new image gallery tags

If you wish to make the first letter uppercase:

<?php echo ucfirst($_GET['c']); ?>

The ucfirst() function makes the first letter of a string uppercase.


drew mclellan

Offline

#28 2004-04-06 22:39:22

.s
New Member
Registered: 2004-02-24
Posts: 9
Website

Re: Using the new image gallery tags

Even more gratitude sent your way. I was using a little bit of :first-letter and text-transform, but this is much more elegant. Thank you ever so much, Drew.

Offline

#29 2004-04-06 23:54:18

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: Using the new image gallery tags

Ah Drew. I like that and it reminds me of how wonderful it is to be able to execute php in a txp page.

Offline

#30 2004-05-20 13:01:07

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: Using the new image gallery tags

Sounds like a plugin :-)


text*

Offline

#31 2004-05-21 18:15:30

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Using the new image gallery tags

Did I miss it or is there a way to output the caption of each image?

Offline

#32 2004-06-22 17:39:53

Tek
New Member
Registered: 2004-06-03
Posts: 5

Re: Using the new image gallery tags

I tried this from the beginning and all I get is a blank page. Not sure why. When I look at the source on the page, It is the photo_page I created (absent the php tags of course) but nothing comes up.

I think I’m missing a step as to how to get the image category connected.

ugly but <a href=“http://notsotalkative.com/” target=”_blank”>Here it is</a>. Click the first article called <b>Following the instructions from a tut</b>
Help is greatly appreciated.

Last edited by Tek (2004-06-22 17:41:55)

Offline

#33 2004-06-23 17:31:34

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

Re: Using the new image gallery tags

Tek, are you using the built-in txp gallery method (<code><txp:image_index /> </code>, etc. ) or are you using a plugin?

Offline

#34 2004-06-24 00:31:42

Tek
New Member
Registered: 2004-06-03
Posts: 5

Re: Using the new image gallery tags

I actually just copied the html that Dean posted above, just to see if I could get it to work. and in that html he used <b>txp:image_index</b> or <b> txp:image_display</b>

Offline

#35 2004-06-24 02:23:03

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

Re: Using the new image gallery tags

This is how I set it up (I don’t know if this is the best way but I wanted a section page that would show up in my pulldown menu)…

I have a category in my images called “Rainbow Mountain”, each has a 50×50px thumbnail. I created a section “galleries” that uses a page called “galleries”. In that page I have:

<code><a href=“http://marcia.textdrive.com/galleries?c=Rainbow%20Mountain”> &#183; Gallery: Rainbow Mountain</a><br />
<txp:image_index />
<br />
<txp:image_display /></code>

(Right now I just have one category to display). When I go to index.php?s=galleries I get the link to “Rainbow Mountain gallery”, I click that then it displays the gallery with thumbnails. I thought I’d add more categories later, and add an href for each category. I think that will work but haven’t tried it.

Offline

Board footer

Powered by FluxBB