#1 2009-02-24 13:48:10

palbert
Member
2009-02-24
6

[Resolved] View EXIF Data on category page

Hello,

I just installed Piwigo 2.0 and I would like to know if there was a way (or plugin) to display EXIF data on the categories page (category.php).
I'd do with a version 1.7.0 but I can not remember how.
Thank you for your help.

Last edited by palbert (2009-02-25 10:54:14)

Offline

 

#2 2009-02-24 14:11:30

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [Resolved] View EXIF Data on category page

FYI: category.php is just a redirection to index.php.

Which EXIF data? Exchangeable image file format on wikipedia.

Where do you want them? Please clarify? With this page maybe.
Take a screenshot and modify to show us what you are expecting.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-02-24 14:19:50

palbert
Member
2009-02-24
6

Re: [Resolved] View EXIF Data on category page

It is exactly the right page.
I want to show the creation date of the photo below the picture name.

Offline

 

#4 2009-02-24 14:44:26

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [Resolved] View EXIF Data on category page

LocalFiles Editor plugin (available, it just needs to be activated in Piwigo).

Create a new template for example: created_thumbnails.tpl
based on yoga / thumbnails.tpl
Find:
        <span class="thumbLegend">
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
change it to:
        <span class="thumbLegend">
        {if isset($FILE_CREATED)}{$FILE_CREATED}{/if}
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}






Use template-extensions
Admin > Configuration > Templates

For created_thumbnails.tpl
in Original templates column select thumbnails.tpl
and for testing purpose
under Optional URL keyword select recent_pics

Here you can check your recent pictures.
And you should know how to generalize.

Enjoy!

Apparently it doesn't work, I am looking for reason.

Last edited by VDigital (2009-02-24 14:55:48)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#5 2009-02-24 15:44:12

palbert
Member
2009-02-24
6

Re: [Resolved] View EXIF Data on category page

Thanks.

I'm waiting with impatience your answer.

Offline

 

#6 2009-02-24 16:01:40

palbert
Member
2009-02-24
6

Re: [Resolved] View EXIF Data on category page

I found the solution.
In the created_thumbnails.tpl :


Find:
        <span class="thumbLegend">
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
change it to:
        <span class="thumbLegend">
        {if isset($thumbnail.FILE_CREATED)}{$thumbnail.FILE_CREATED}{/if}
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}

And under Optional URL keyword select '-------'


Now my problem is to define the date format.
I have for exemple 2009.01.06 and i want Tuesday 6 January 2009

Last edited by palbert (2009-02-24 16:05:44)

Offline

 

#7 2009-02-24 17:28:49

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [Resolved] View EXIF Data on category page

Find:
        <span class="thumbLegend">
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
change it to:
        <span class="thumbLegend">
        {$thumbnail.FILE_CREATED}<br />
        {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}


is better...
We just have to convert the date format, now.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#8 2009-02-24 17:59:51

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [Resolved] View EXIF Data on category page

You did not find the solution, really?


        {$thumbnail.FILE_CREATED|@format_date}<br />


Simple, isn't it?


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2009-02-25 09:34:50

palbert
Member
2009-02-24
6

Re: [Resolved] View EXIF Data on category page

Yes, you're right.
Thanks for your answers.

Offline

 

#10 2010-09-04 07:54:43

Aldous11
Guest

Re: [Resolved] View EXIF Data on category page

Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative…

 

#11 2010-11-13 12:59:41

LadyFirst
Member
Da Nang city
2009-12-09
27

Re: [Resolved] View EXIF Data on category page

Thanks VDigital
I fixed it with your help

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact