Hi,
I'm puddy sure this was ok in the previous steps on my current implementation of Articles, but (I'm not so sure now) the articles list displaying the date of each post in the article row tpl, output the
current date
(today) of the very last post for all posts instead of the effective [+date] for each post.
really strange.
here's my article row (not been changed since yesterday when, I'm quit sure it was ok)
<div class="post">
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
<div class="entry">
<h3>[[+introtext:default=`[[+longtitle:ellipsis=`100`]]`]]</h3>
<article>[[$date01]][[+content:strip_tags:escape:limit=`200`]] ...</article>
</div>
<p class="post-info">[[%articles.posted_by]] <a href="[[~[[*id]]]]author/[[+createdby:userinfo=`username`]]">[[+createdby:userinfo=`username`]]</a> [[+tv.articlestags:notempty=` | <span class="tags">[[%articles.tags]]: [[!tolinks? &items=`[[+tv.articlestags]]` &target=`[[*id]]` &useTagsFurl=`1`]]</span>`]]</p>
<p class="postmeta">
<span class="links">
<a href="[[~[[+id]]]]" class="readmore">[[%articles.read_more]]</a>
[[+comments_enabled:is=`1`:then=`| <a href="[[~[[+id]]]]#comments" class="comments">[[%articles.comments]] ([[!QuipCount? &thread=`article-b[[+parent]]-[[+id]]`]])</a>`]]
|
</span>
</p>
</div>
the /date01/ chunk
<span class="post_date" >
<span class="jour">[[+publishedon:strtotime:date=`%d`]]</span>
<span class="mois">[[+publishedon:strtotime:date=`%b`]]</span>
<span class="an">
[[+publishedon:strtotime:date=`%Y`]]</span>
</span>
(in the article template itself I use the same except with tv instead of PL ( [[*publishedon]] ) and it's ok, of course).
Wher did I mess up ?
thank you
[ed. note: elz064 last edited this post 14 years, 4 months ago.]