Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: prad_image_index gallery plugin
Hi François,
is it possible to sort the images in the gallery by publication date? I need the last uploaded image to be the first to appear in the gallery…
Thanks
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
Re: prad_image_index gallery plugin
prad_image_index is now in v.0.4.0
Now you have the ability to sort images by their name or id : sortby=“id”.
The id is set when you upload the image, so you can sort with : last uploaded, first uploaded.
With asc and desc you can switch the sort’s direction : sortdir=“desc”.
françois
Offline
Re: prad_image_index gallery plugin
vittorio a écrit:
is it possible to sort the images in the gallery by publication date? I need the last uploaded image to be the first to appear in the gallery…
YES : now you can use
<code><txp:prad_image_index c=“landscapes” sortby=“id” sortdir=“desc” textclose=”.: clicca per chiudere :.” textalt=“1” /></code>
Last edited by fpradignac (2006-10-06 18:58:25)
françois
Offline
Re: prad_image_index gallery plugin
fpradignac wrote:
YES : now you can use
<code><txp:prad_image_index c=“landscapes” sortby=“id” sortdir=“desc” textclose=”.: clicca per chiudere :.” textalt=“1” /></code>
Great thanks! You were really quick!
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
Re: prad_image_index gallery plugin
Thanks for this great plugin!
I miss only one thing and that is article paging.
Regarding the fact that plugin code is inside article body do you think that paging is possible?
Offline
Re: prad_image_index gallery plugin
Hmmm …!
@fuls : sorry but I’ve never used article paging, so your test will be a great experience ;-) and please let us know about it.
(very nice web site fuls !)
françois
Offline
Re: prad_image_index gallery plugin
fpradignac wrote:
Hmmm …!
@fuls : sorry but I’ve never used article paging, so your test will be a great experience ;-) and please let us know about it.
(very nice web site fuls !)
Thanks, I was kind of hoping that you have a solution:-)
Nevermind, your plugin is just great!
Offline
Re: prad_image_index gallery plugin
AnotherHowie schrieb:
Why is it that this plugin always adds “::” to the end of things? It was easy enough to remove, but it seems strange…
So please tell me how do yout remove these “::” away..
Thanks
Offline
Re: prad_image_index gallery plugin
Hello darche,
These “::” are here just to separate the altenative text and the caption, so if you have an alt and a caption they are separated like this :
Musée Maritime :: Gdansk
It’s just a “graphic” mark. I know, it should be enable with a parameter, but I don’t have the time yet!
Just edit the plugin : plugin > modify, and find the 3 lines where le “::” are, delete them, that’s it.
<p class="txpThumbAlt">'.$alt.' ::</p>
($textcaption) ? '<p class="txpThumbCap">'.$caption.' ::</p>
<p><strong>'.$alt.'</strong> :: <em>'.$caption.'</em></p>'
(at the end)
françois
Offline