Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
problem with article_custom, if_different and if_first_article
Hello,
on a site I have three article_custom calls like this <txp:article_custom section="news" category="producers" form="news_section" limit="5" sort="Posted desc" />
for different categories. The output ends in a table called news1, news2, news3 and they are all the same form using which has the following inside.
<txp:if_article_list>
<tr>
<td class="news-links">
<txp:if_first_article>
<txp:posted format="%B %G" />
<txp:else />
<txp:if_different>
<txp:posted format="%B %G" />
</txp:if_different>
</txp:if_first_article>
</td>
<td class="news-rechts">
<txp:permlink>
<txp:title />
</txp:permlink>
</td>
</tr>
</txp:if_article_list>
So in this variant in the first table the data for the July articles is showing up twice. The other two tables contain the data for July articles only once, as it should be.
First I tried it without if_first_article
but then it displayed only one time the data for all three tables, e.g. for July articles only in the first table but not in the others.
I tried also to use different forms, but it seems to me as if only one article_custom
call per side is possible.
So, where is my misunderstanding?
Hope it is understandable …
Last edited by whocarez (2010-07-27 18:00:53)
Offline
Re: problem with article_custom, if_different and if_first_article
Don´t know why, but it is working now with.
<td class="news-links">
<txp:if_different>
<txp:posted format="%B %G" />
</txp:if_different>
</td>
Sorry, my fault
Offline