Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-10-07 16:38:26
- ljhardy
- New Member
- Registered: 2005-10-07
- Posts: 2
Working with Sections
I’m new to Textpattern.
I want to arrange my frontpage so that the first few posts are always “latest news” kinds of things and I would like them to be styled differently than the rest of the articles. I can almost accomplish this with a News section, the articles set to Sticky and then using
txp:article_custom section=“news” form=“newwsform”
txp:article
…but the articles in the news section are then duplicated by the article tag.
I’m sure that I’m missing an easy way to accomplish what I need. Thoughts?
Offline
#2 2005-10-07 21:24:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Working with Sections
I assume that you want to display articles from other sections as well, otherwise limit=“x” in the first tag, offset=“x” in the second would do the trick. It will skip the x latest articles in all sections that are set to show on the frontpage. If that is only the news section, you wouldn’t even need to set status to sticky.
Second possibility is status=“live” in the second tag, that will exclude the sticky ones. But using status=“sticky” for your ‘latest news kind of thing’ means that you will have to change the articles’ status on a regular basis. So I don’t think it’s a perfect solution.
Offline
#3 2005-10-07 22:23:12
- ljhardy
- New Member
- Registered: 2005-10-07
- Posts: 2
Re: Working with Sections
Thanks.
Wouldn’t the offset= value have to increment every time a new article was published in the first section?
Offline
Re: Working with Sections
No it rolls on as you add articles. The offset simply ignores the latest “whatever number” of articles starting with the newest. As you add articles they become the newest instead.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1