Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-05 11:10:37

shaza
Member
Registered: 2006-10-31
Posts: 20

Older and Newer Entries ;_;?

Okay, So I have this question, and I have a feeling it’s going to be a really easy one, but I have been struggling with Textpattern for quite a while (first time using it) and as Ive fought my way through things, I just cant figure out how to do this, well maybe I edited something and it went wrong somehow. Im wondering how to make it go to older article listings when I put a limit on the main page (if that came out right?)

Basically this is the page:

http://mycurry.net/spork/index.php?s=archives

This page is my layout archives. It uses the format of the photo portfolio section:

http://textbook.textpattern.net/wiki/index.php?title=Adding_a_Photo_Portfolio_Section

This is what my content area code looks on the page layout for the portfolio section:
—————————————————————-
<code>

<txp:if_article_list>
<div class=“head”>Layout Archives</div>
&nbsp;&nbsp;Basically, a huge gallery of all our recent and old layouts :).<br /><br />
<div id=“imageswrap”>
<!— Start Article for Archives—>
<txp:article_custom limit=“50” listform=“excerpt_portfolio” />
<p><txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer></p>
</txp:if_article_list>

<txp:if_individual_article> <txp:article limit=“1” form=“whatever” />
<p>
Previous Layout: <txp:link_to_prev><txp:prev_title /></txp:link_to_prev><br />
Next Layout: <txp:link_to_next><txp:next_title /></txp:link_to_next><br />
</p>
<center><a href=“http://mycurry.net/spork/index.php?s=archives”>Back to Main Layouts</center>
</txp:if_individual_article>

</code>
————————————————————————————————————-
Since I put the limit on “50” it only displays 50 of the thumbnails that link to the article. Now I will have more than 50 of those, so how can I go about putting some kind of link or something that might say “older archives” and that would list (in the same thumbnail fashion) the older article thumbnails that are not featured on that page because of the article limit? I have like 100 + of those so I cant obviously put all of them on the same page ._. (and I want 50 on each page at all times?). If worse comes to worse I could just manually make two different sections like archives 1 and archives 2 and file 50 layouts per and then manually link it, but is there any other way to just make it do this?

Last edited by shaza (2007-01-05 11:22:36)

Offline

#2 2007-01-05 16:32:58

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

Re: Older and Newer Entries ;_;?

<txp:older> and <txp:newer> don’t work with <txp:article_custom />. Is there a reason why you can’t use <txp:article />?

Offline

#3 2007-01-05 21:50:54

shaza
Member
Registered: 2006-10-31
Posts: 20

Re: Older and Newer Entries ;_;?

Ohhh Okay. I didnt know that D= hmm, I just put article_custom there cause thats how the tutorial was but I removed it and it works perfectly fine. Thank you so much! You saved me a lot of work :) it works perfect now! yay

Offline

Board footer

Powered by FluxBB