Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-27 08:24:36

Stefchenko
New Member
Registered: 2007-03-27
Posts: 1

Only one article in section home

I justed started using textpattern for a project I’m working on. I like it and as a designer find it very easy to work with. Coming from wordpress, I do have problems with understanding the way txp tags work.

When visitors click on a section, I want them to see only one article (which I can define). Then they can use a sub-navigation to view different articles in the section. I’ve searched the forums and Wiki but I can’t find the solution. The sub-navigation is in place but how do I have it that only one post will appear in the section home?

Thanks for the help,

Stefchenko

Offline

#2 2007-03-27 15:37:17

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Only one article in section home

If I understand your question correctly, the solution would be the limit attribute with the article tag.
<txp:article limit=1 />

Offline

Board footer

Powered by FluxBB