Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: Using the new image gallery tags
My word, thank you Drew. That is brilliant.
Offline
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
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
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
Re: Using the new image gallery tags
Sounds like a plugin :-)
text*
Offline
Re: Using the new image gallery tags
Did I miss it or is there a way to output the caption of each image?
Refresh Dallas and other Refreshing Cities.
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
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
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”> · 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