Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-10-06 15:29:21

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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

#14 2006-10-06 18:31:29

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

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

#15 2006-10-06 18:55:18

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

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

#16 2006-10-08 11:10:18

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

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

#17 2006-11-19 20:54:22

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

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

#18 2006-11-20 06:30:20

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

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

#19 2006-11-20 23:14:29

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

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

#20 2007-09-22 11:14:13

darche
Member
From: Zürich
Registered: 2007-07-09
Posts: 68
Website

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

#21 2007-09-22 20:33:23

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

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.'&nbsp;::</p>
($textcaption) ? '<p class="txpThumbCap">'.$caption.'&nbsp;::</p>
<p><strong>'.$alt.'</strong>&nbsp;::&nbsp;<em>'.$caption.'</em></p>' (at the end)


françois

Offline

Board footer

Powered by FluxBB