Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
List articles with related section
Hi users,
How do I list articles, each one with the belonging section and category next to it.
Something like:
ARTICLE LIST:
Article 1 from Section and Category
Article 2 from Section and Category
Article 3 from Section
etc…
Any idea, ressource to point ?
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
#2 2006-08-29 12:22:57
- mstwntd
- Member

- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: List articles with related section
Hello Guillaume,
Easy. Here’s a form and article tag:
<li><txp:permlink><txp:title /></txp:permlink> in <txp:section link="1" title="1" /><txp:if_article_category number="1"> and filed under <txp:category1 link="1" title="1" /></txp:if_article_category><txp:if_article_category number="2"> and <txp:category2 link="1" title="1" /></txp:if_article_category>.</li>
<ul>
<txp:article_custom section="put,the,sections,you,want,to,list,here" form="form-name-here" limit="20" />
</ul>
Offline
Re: List articles with related section
Thank you Egor this surely gave me a push…
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
Re: List articles with related section
Ended up with something like this…
<code>
<li> <txp:if_article_category number=“2”>
<a href=”/<txp:section />/?c=<txp:category2 />”><txp:section title=“1” /> | <txp:title/> | <txp:category2 /></a>
<txp:else />
<txp:permlink><txp:section title=“1” /> | <txp:title/></txp:permlink>
</txp:if_article_category></li>
</code>
<br />
… and it works… So thank you x 2
Last edited by hablablow (2006-08-29 16:26:44)
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
Pages: 1