Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-08 21:04:38
- jackson
- Member
- Registered: 2005-10-01
- Posts: 14
<txp:older> problem
Hello there-
My site structure is like this: I have a “static” home page that displays on the “default” template which has this relevant code:
<code>
<div id=“content” class=“narrowcolumn”>
<txp:if_section name=”“>
<txp:article form=“home” />
</txp:if_section>
<txp:if_section name=“about”>
<txp:article form=“static” />
</txp:if_section>
<txp:if_section name=“contact”>
<txp:article form=“static” />
</txp:if_section>
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div> <!—close content—>
</code>
The “home” page properly displays. I also have a section called “journal” which is set to display on the “journal” page (and set to not display on the front page), which has this relevant code:
<code>
<div id=“content” class=“narrowcolumn”>
<txp:article form=“default” limit=“5” />
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div> <!—close content—>
</code>
The problem is in the Previous/Next links. When I go to the “journal” section, the first five articles are properly displayed, and there is a “Previous” link at the bottom. If I click on this link, the URL changes to http://www.example.com/journal/?pg=2 but the same 5 articles are displayed. It does not cycle to the next 5.
Any help would be greatly appreciated. Thanks!
(Edit: marked topic as resolved. -Mary)
Offline
#2 2005-11-08 21:42:34
- jackson
- Member
- Registered: 2005-10-01
- Posts: 14
Re: <txp:older> problem
Ok, well, the TXP gremlins must have felt bad, because now it works. I have no idea what was wrong or how it started working, but it’s ok now.
Offline
Pages: 1