Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-21 10:11:43

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 581

[Solved] List all articles in a section

I have two columns, in the first one I have my article. In the column I have a list of permalinks for every article published in the currently viewed section. When visiting the section i.e mysite.com/blog everything works fine. When you click on a link in the sidebar i.e mysite.com/blog/entry1 all other permalinks disappear leaving just a link to the currently viewed article.

This is the code I’m using

<txp:article limit="99999">
<a href="<txp:permlink />"><txp:title /> <txp:posted format="%e %B %Y" /></a><br />
</txp:article>

Last edited by Algaris (2012-02-21 10:20:40)

Offline

#2 2012-02-21 10:16:44

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [Solved] List all articles in a section

The article is context sensitive. The list changes based on what page you are viewing. On individual article page it will only show that current article.

The other article tag, article_custom, on the other hand is not context sensitive and will always show the specified same articles. E.g.

<txp:article_custom section='<txp:section />' limit="9999" break="br">
	<a href="<txp:permlink />"><txp:title /> <txp:posted format="%e %B %Y" /></a>
</txp:article_custom>

Offline

#3 2012-02-21 10:20:15

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 581

Re: [Solved] List all articles in a section

Ah of course it’s so obvious now. Thank you.

Offline

Board footer

Powered by FluxBB