Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-09 11:02:55

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

article list question

I should know this by now ….

I need an article list in a section to display titles and excerpts if there is no article selected(section landing page). If there is an article selected i just want the list to show the titles w/permlinks. In the example below i was trying to make this change from titles and excerpts to just titles. Its not displaying excerpts though.

So this is what im trying

<txp:if_individual_article><txp:article />
<txp:recent_articles label=“Your Mortgage” labeltag=“h3” limit=“6” class=“contentlist” section=“Your-Mortgage” sort=“Posted desc” wraptag=“ul” break=“li” form=“titles” />

<txp:else />
<txp:recent_articles label=“Your Mortgage” labeltag=“h3” limit=“6” section=“Your-Mortgage” sort=“Posted desc” wraptag=“ul” class=“contentlist” break=“li” form=“excerpt” />

</txp:if_individual_article>

Last edited by kvnmcwebn (2008-04-09 12:24:18)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2008-04-09 16:50:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: article list question

txp:recent_articles doesn’t have an attribute form. Use <txp:article_custom /> instead. (Also, don’t use capitals in section and category names.)

Offline

#3 2008-04-10 05:03:13

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: article list question

cool thanks


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB