Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » article_custom

#1 2005-12-29 00:36:27

jonathanclarke
Member
From: London, England
Registered: 2004-12-28
Posts: 46
Website

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

#2 2005-12-29 01:11:04

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

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

#3 2005-12-29 13:26:58

jonathanclarke
Member
From: London, England
Registered: 2004-12-28
Posts: 46
Website

Re: article_custom

chh_article_custom, beautiful!

Offline

  1. Index
  2. » Archives
  3. » article_custom

Board footer

Powered by FluxBB