Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Author's website
About It:
Rate it:
  • Helpful?
  • 2 Yes
  • 3 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

article vs. article_custom

<txp:article /> is NOT the same as <txp:article_custom />

They cannot be interchanged. This is perhaps one of the most common confusions for Textpatterners.

<txp:article_custom /> offers many additional attributes that <txp:article /> does not.. but only <txp:article /> will produce the full single article page.. if you have only <txp:article_custom /> on a page, rather than <txp:article />, then you will never reach the permalinked article page—you’ll always get an article list page.

however, you can have the added features and functionality of <txp:article_custom />, while keeping the necessary <txp:article /> in full force by using conditionals:

<txp:if_individual_article> and <txp:if_article_list>

i like to think of it as having your cake and eating it too.

e.g.
<txp:if_article_list>
<txp:article_custom form="lofi" limit="10" category="ideas" section="article" sortby="Posted" sortdir="desc" />
</txp:if_article_list>


<txp:if_individual_article>
<txp:article />
</txp:if_individual_article>

detailed tag information:

<txp:article />
<txp:article_custom />

Article Request Count:
Posted here:
10 Apr 2005

You know you want to visit the Archives.
Published with Textpattern