garvinhicking wrote:
Yes, you can edit the entries.tpl file, and inside each {foreach} entry loop, you can use the entry's post date to get the actual image, like:
Code: Select all
<img src="/images/{$entry.timestamp|@formatTime:'%u'}.jpg" />
then you create the files /images/1.jpg (Monday) to /images/7.jpg (Sunday).
Hi Garvin,
Thanks for your quick response, but..
Is this correct?
Code: Select all
{foreach from=$entries item="dategroup"}
<div class="serendipity_Entry_Date">
{if $dategroup.is_sticky}
<h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{else}
<h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}<img src="/dagboek/templates/xarno-2/images/{$entry.timestamp|@formatTime:'%u'}.jpg" /></h3>
{/if}
</div>
I get different numbers for the same day.
Zaterdag, 5 december 2009 -> 1 (Saturday)
Zaterdag, 28 november 2009 -> 6 (Saturday)
Dinsdag, 24 november 2009 -> 6 (Tuesday)
Dinsdag, 10 november 2009 -> 2 (Tuesday)
Woensdag, 4 november 2009 -> 2 (Wednesday)
Maandag, 2 november 2009 -> 3 (Monday)
Zaterdag, 24 oktober 2009 -> 1 (Saturday)
See
http://www.xarno.nl/dagboek/
---edit---
I changed
to
and it seems to work now.
Please tell me that I'm doing this correctly so I can close this thread
