Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-07-29 17:29:20
- reptilerobots
- Member
- Registered: 2005-08-20
- Posts: 72
tricking txp:older / txp:newer to think its after article tag
Is there any way to trick txp:older and txp:newer to think that its after an article tag?
I want to place those tags above an article not below it
currently, my site is set up like this
main navigation
a right to left list of articles (basically just the article image and caption, but all floating next to eachother)
I want to squeeze in older and newer below the main navigation and the list of articles, but the older/newer has to be AFTER the article list. Is there any way to get it before??
Offline
#2 2006-07-29 18:14:17
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: tricking txp:older / txp:newer to think its after article tag
Put <txp:article pgonly="1" /> before the older/newer tags. It won’t show anything, but pagination will work. Be sure to use the same value for limit in both article tags.
Offline
#3 2006-07-29 18:23:24
- reptilerobots
- Member
- Registered: 2005-08-20
- Posts: 72
Re: tricking txp:older / txp:newer to think its after article tag
thanks. I think I grasp what you are saying, but after trying that, it doesnt seem to work. I must be missing something pretty simple. If you could check out my source code and provide any other ideas, it would be awesome.
my code is as follows:
<code>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<title><txp:page_title /></title>
</head>
<body>
<txp:if_article_list>
<div class=“navigationSpacer”>
<div class=“navigation”>
<txp:output_form form=“navigation2” />
<p> </p>
<txp:article pgonly=“1” />
<h3><txp:older>older</txp:older></h3><h3><txp:newer>newer</txp:newer></h3>
</div>
</div>
<div class=“articleListContainer”>
<txp:article form=“archive” sortby=“Posted” sortdir=“desc” limit=“2” />
</div>
<div class=“arrow”><p>scroll →</p></div>
</txp:if_article_list>
</body>
</html>
</code>
Offline
#4 2006-07-29 18:28:18
- reptilerobots
- Member
- Registered: 2005-08-20
- Posts: 72
Re: tricking txp:older / txp:newer to think its after article tag
ah I got it!! thanks for the hint!!
Offline