Page 1 of 1

Show creation date of gallery

Posted: Mon Apr 22, 2013 5:48 pm
by slabbe
Is there a way to show the publication date of a gallery. I try to get this info for a list of gallery but I haven't find a proper way to do it...

Re: Show creation date of gallery

Posted: Mon Apr 22, 2013 7:47 pm
by Wishbone
I don't know off the top of my head, but Gallery might maintain creation/modification dates of galleries in it's database. It's possible to write a UDT to get this information.

If not, then you can write a UDT (or with some slick Smarty) to get the modification time of the gallery directory.

PHP functions:

filemtime - last modified date
filectime -
-- Windows - creation time
-- Linux - Last time the inode was updated (creation or (permission/group/owner change)

Re: Show creation date of gallery

Posted: Mon Apr 22, 2013 8:32 pm
by Rolf
At the bottom of the template field there is a button to show the available parameters

Re: Show creation date of gallery

Posted: Mon Apr 22, 2013 9:08 pm
by Jos
I think you can use {$gallerydate} for the gallery you are in (not documented, shame on me :-[ )

For the subgalleries in that gallery you can use {$image->filedate}, check also the modulehelp or the wiki help page on http://wiki.cmsms.nl/index.php/Gallery# ... _variables

Re: Show creation date of gallery

Posted: Tue Apr 23, 2013 1:51 pm
by slabbe
Damn, I haven't seen the question mark icon... Thanks !