Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-31 21:48:17

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

sidebar latest posts freezes at 1 if single

here’s my sidebar, and i want to have a list of latest articles. if i’m on my single page it just shows the article i’m on, but if i go to the list of articles everything is fine (limit 5)

<div class=‘newspost’>
<h2>Latest Posts</h2>
</div>
<txp:article form=“LatestNews” limit=“5” />
<div class=‘newspost’>
<h2>Categories</h2>
</div>
<txp:category_list this_section=“1” />
</div>

Offline

#2 2009-03-31 22:06:14

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: sidebar latest posts freezes at 1 if single

Hi.
Try using txp:article_custom:
Example

<txp:article_custom form="LatestNews" limit="5" section='<txp:section />' />


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2009-04-01 02:30:10

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: sidebar latest posts freezes at 1 if single

maniqui wrote:

Hi.
Try using txp:article_custom:
Example

<txp:article_custom form="LatestNews" limit="5" section='<txp:section />' />

that seems to work, thank you. i dont know if i’ll ever understand the difference between article and custom lol

Offline

Board footer

Powered by FluxBB