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
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.
Offline
It is exactly the right page.
I want to show the creation date of the photo below the picture name.
Offline
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)
Offline
Thanks.
I'm waiting with impatience your answer.
Offline
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
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.
Offline
You did not find the solution, really?
{$thumbnail.FILE_CREATED|@format_date}<br />
Simple, isn't it?
Offline
Yes, you're right.
Thanks for your answers.
Offline
Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative…
Thanks VDigital
I fixed it with your help
Offline