Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
List individual sections’ posts on front page (columns)
This has surely been asked and solved before. But after 50 minutes searching the forums and 30 minutes reading the documentation, I gave up and signed up for an account on the forum to ask it myself:
I want to have three sections listed out on the front page. (Think of each section as a separate column.) Each section should display their latest posts as excerpts. I am not interested in the unified everything list of the latest posts for anything but an alternative XML newsfeed.
Hoping for some example team or code. Thanks in advance for any help and advice.
Last edited by Aeyoun (2013-06-30 21:57:55)
Offline
#2 2013-06-30 22:38:31
- milosevic
- Member
- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: List individual sections’ posts on front page (columns)
<txp:article_custom section="your-section" limit="5"/>
Repeat this for the 3 sections you want in your home page.
<txp:rocks/>
Offline
#3 2013-06-30 22:40:15
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: List individual sections’ posts on front page (columns)
Aeyoun wrote:
I want to have three sections listed out on the front page. (Think of each section as a separate column.) Each section should display their latest posts as excerpts.
Very concise:
First column:
<txp:article_custom section="section1" limit="xx">
<h3><txp:title /></h3>
<txp:excerpt />
</txp:article_custom>
Second column:
<txp:article_custom section="section2" limit="xx">
<h3><txp:title /></h3>
<txp:excerpt />
</txp:article_custom>
etcetera
Edit: ah, Jorge was quicker :)
Last edited by els (2013-06-30 22:40:49)
Offline