Show creation date of gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
slabbe
Forum Members
Forum Members
Posts: 29
Joined: Wed Sep 28, 2011 1:22 am

Show creation date of gallery

Post 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...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Show creation date of gallery

Post 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)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Show creation date of gallery

Post by Rolf »

At the bottom of the template field there is a button to show the available parameters
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Show creation date of gallery

Post 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
slabbe
Forum Members
Forum Members
Posts: 29
Joined: Wed Sep 28, 2011 1:22 am

Re: Show creation date of gallery

Post by slabbe »

Damn, I haven't seen the question mark icon... Thanks !
Post Reply

Return to “Modules/Add-Ons”