Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-15 13:49:45

haggis
Member
From: Edinburgh
Registered: 2005-04-15
Posts: 19

List recent articles when viewing individual article

Hi

I’m in the process of making a personal site using the Cloudy Day template ported to txp by Stuart at the bombsite

I have my articles divided into three sections. I find that when viewing an individual article my list of recent articles in the sidebar reduces to list only the article being displayed. Any help on what I’m doing wrong or how I can make my list of recent articles say on screen would be appreciated.

My sections are all set to use the archive page, and the archive page uses a sidebar form as follows:
<code>
<!— sidebar —>
<txp:output_form form=“sidebar_arch” />
</code>

The sidebar_arch form is as follows:
<code>
<div id=“sidebar”>
<div class=“sidebarBox”>

<txp:if_section name=“news”>
<h3>Recent news</h3>
<ul>
<txp:chh_article_custom form=“recently” limit=“5” section=“news” sortby=“Posted” sortdir=“desc” listform=“recently” />
</ul>
</txp:if_section>
<txp:if_section name=“travels”>
<h3>Recent travels</h3>
<ul>
<txp:chh_article_custom form=“recently” limit=“5” section=“travels” sortby=“Posted” sortdir=“desc” listform=“recently” />
</ul>
</txp:if_section>
<txp:if_section name=“families”>
<h3>Recently in families</h3>
<ul>
<txp:chh_article_custom form=“recently” limit=“5” section=“families” sortby=“Posted” sortdir=“desc” listform=“recently” />
</ul>
<h3>Family histories</h3>
<ul>
<txp:chh_article_custom form=“recently” section=“families” category=“sticky” sortby=“Posted” sortdir=“desc” listform=“recently” />
</ul>
</txp:if_section>
</div> <!— close sidebarBox —>

<!— rest of sidebar —>
<txp:output_form form=“sidebar_bottom” />
</code>

and listform “recently” is:
<code>
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>

Site can be viewed here http://mnm.is-that-you.com/

Thanks in advance

Last edited by haggis (2006-10-15 13:57:32)

Offline

#2 2006-10-15 14:02:19

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: List recent articles when viewing individual article

I suggest using glx_recent_articles plugin

Offline

#3 2006-10-15 14:04:39

haggis
Member
From: Edinburgh
Registered: 2005-04-15
Posts: 19

Re: List recent articles when viewing individual article

thx, I will check it out….

edit
Done the trick thanks!

Last edited by haggis (2006-10-15 14:32:03)

Offline

Board footer

Powered by FluxBB