Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-26 00:46:27

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

show a certain number of articles on my front page ?

I am not sure how I accomplished this orignially…

On one site I have several articles on the main page. On another site I have just the article titles on the main page.

How do I adjust the number of articles on the main page ?

Thanks,
Jim

Offline

#2 2011-03-26 01:53:48

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: show a certain number of articles on my front page ?

find the <txp:article /> tag, and add a “limit” attribute, so you get something like this:

<txp:article limit="15" />

Which would give you 15 articles showing. Works the same way with a txp:article_custom tag.

Offline

#3 2011-03-26 01:54:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: show a certain number of articles on my front page ?

Use limit="123" in the article or article_custom tag.

Edit: late again ;)

Last edited by els (2011-03-26 01:54:40)

Offline

#4 2011-03-26 14:28:05

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: show a certain number of articles on my front page ?

Thanks. I knew it was something simple. But after working 60 hours this past week, my brain wasn’t working well.

Offline

#5 2011-03-26 14:40:58

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: show a certain number of articles on my front page ?

Aha ! I found it in the presentation area and I had: <txp:article form=“article_listing” limit=“2” /> on the one just showing article titles. Like I told it to. Ah, memories, sweet memories… :-)

Offline

Board footer

Powered by FluxBB