Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: older and newer don't show the link
sebatorresi wrote:
Ok, the limit is 5 but i have a total of 10 articles (content > articles), is showing the limit that it put. All the articles are ‘live’ and the categories are ok, there is not a problem, if i put
limit="99"
i’ll see all the articles, if i put any number i’ll see the number that i put, but never show the older or newer.
The first article
tag call’s limit
sets the value that is used to count the pages, so the limit="5
goes silent and only affect the list. Your first article
tag, of the two, is called inside <txp:rah_metas />
’s block, and thus that is used to count the pages.
To make it work correctly, you should either:
- Use a single
article
tag, and represent the first one asarticle_custom
. - Or make the first tag identical to the second tag. So, if you want just three articles, set
limit="3"
to both tags. Ifoffset
orlimit
is used, both tags need to have same values. - Also, in some situations,
pageby
+offset
can be used if different contents are required in multiple lists.
I know that the Tag reference isn’t really that clear about the subject, but it says:
Without pageby, each article tag would page independently based on its own limit, as if it was the only article tag.
[…] Just Make sure that, other than pgonly, both article tags are identical (form-related attributes are the exception, they do not need to be assigned).
The number of articles to jump forward or back when an older or newer link is clicked. Allows you to call the article tag several times on a page without messing up older/newer links.
Last edited by Gocom (2010-05-11 22:47:19)
Offline
Re: older and newer don't show the link
Thanks Gocom and Els the problem was the limit on rah_metas. I put the same limit of the article in the rah_metas and works fine now.
Sonríe | Smile . <txp:lover />
Offline