Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-06 10:00:33

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Article limits

By default, txp will list a maximum of 10 articles unless specified via the limit=”“ atrribute.

I have a situation where I need to display all articles assigned to a section without a limit. So, regardless of how mant articles there are for that section, they will all be displayed.

How can I do this?

Offline

#2 2011-03-06 10:27:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,944
Website GitHub

Re: Article limits

limit="99999" ? It’s not pretty but it works.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2011-03-06 16:24:05

leafy_loader
Member
Registered: 2008-09-25
Posts: 96

Re: Article limits

Bloke wrote:

limit="99999" ? It’s not pretty but it works.

Thats the way I’ve been doing it. I just thought there was a more elegant way of doing it.

I don’t understand why there is a limit by default, surely it would be more logical not to have a limit unless specified by the developer

Offline

#4 2011-03-06 16:42:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,944
Website GitHub

Re: Article limits

leafy_loader wrote:

I just thought there was a more elegant way of doing it.

Sadly no. If you have any suggestions we could always consider them.

I don’t understand why there is a limit by default

I guess a page with a zillion articles on it is more daunting and slower to load than one with a paginated list of 10 so it made sense at the outset to pick a reasonable default *shrug*


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB