Creation date on photo pages insted of origination date

eliz82

Joined: 2009-11-06
Posts: 71
Posted: Wed, 2010-06-30 13:53

on my photo pages and under the thumbnails of items in album pages is the ORIGINATION date (on the pictures that have exif). this has probably has to do with the fact that the Exif module is activated.

I want to display the CREATION date (the upload date).

i have find something similar on this thread:
http://gallery.menalto.com/node/64354

i have opened my themes/matrix/templates/photo.tpl

the only thing related to date is:

Quote:
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=$theme.params.showImageOwner
class="giInfo"}
{g->block type="core.PhotoSizes" class="giInfo"}

so I don't understand what valiant meant to say.

any idea how to do that ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-06-30 15:01

In photo.tpl add:

{if !empty($theme.item.creationTimestamp)}
  <h2>{g->date timestamp=$theme.item.creationTimestamp style="datetime"}</h2>
{/if}

where you want it to appear.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
eliz82

Joined: 2009-11-06
Posts: 71
Posted: Wed, 2010-06-30 17:05

thanks , it's working. i also found a different solution.

modules/core/templates/blocks/ItemInfo.tpl
line 8:

Quote:
{capture name=childTimestamp}{g->date timestamp=$item.originationTimestamp}{/capture}

and replace the "originationTimestamp" with the "creationTimestamp"