Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
article_custom
I’m using txp:article_custom to display a list of articles in a different way (diff form) to just using txp:article.
My question is, is it possible to maintain the section specific behaviour of txp:article when using txp:article_custom? (txp:article_custom has a section attribute, but I don’t seem to be able to set it dynamically.)
I’ve done lots of searching on the forum and found lots of discussion around these tags, but nothing seems to answer my question. Any help would be greatly appreciated…
Last edited by jonathanclarke (2005-12-29 00:37:09)
Offline
Re: article_custom
My question is, is it possible to maintain the section specific behaviour of txp:article when using txp:article_custom? (txp:article_custom has a section attribute, but I don’t seem to be able to set it dynamically.)
You can either use several if_section tags:
<code><txp:if_section name=“foo”>
<txp:article_custom section=“foo” form=“form” />
</txp:if_section>
<txp:if_section name=“bar”>
<txp:article_custom section=“bar” form=“form” />
</txp:if_section>
</code>
Or you can use this plugin.
<code><txp:chh_article_custom section=”?” listform=“form” /></code>
Offline
Re: article_custom
chh_article_custom, beautiful!
Offline
Pages: 1