Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-02-21 11:58:09
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Simple blog questions: jump to oldest
I’m first time using TXP as a simple blog. So I’m having just article list, showing one post per page, and previous/next links. I’m currently not using individual article pages at all, all the content is always straight on the listing page.
So I’d like to provide link to the oldest post (read: the last page of the article list). How to?
Offline
Re: Simple blog questions: jump to oldest
Have you had a look at ob1_pagination?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2008-02-22 21:09:32
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Simple blog questions: jump to oldest
Thanks, I tried it but it’s too complicated for this purpose: I just need the link to last artcile, not pagination numbers which can not be set off with the plugin. I even looked at the code inside the plugin but couldn’t remove unnecessary parts of it :)
Offline
Re: Simple blog questions: jump to oldest
You could give the oldest post a status of “sticky”, then add <txp:article status="sticky" />
after your regular <txp:article />
tag.
Code is topiary
Offline
#5 2008-02-24 09:59:25
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Simple blog questions: jump to oldest
But that renders the first article below the newest one?
I’d like to have just link to it in the sidebar, so user can start reading from the beginning.
Or am I missing something?
Offline
#6 2008-02-24 11:04:26
- ultramega
- Member
- Registered: 2006-02-26
- Posts: 221
Re: Simple blog questions: jump to oldest
Stupid me! Hit me!
in page’s sidebar:
<txp:article form=“article_listing” limit=“1” listform=“article_listing” pgonly=“0” sort=“Posted asc” time=“past” />
in form:
<txp:permlink>The first post</txp:permlink>
Last edited by ultramega (2008-02-24 11:05:24)
Offline
Re: Simple blog questions: jump to oldest
Oops — I misunderstood your question, so you can hit me if you like. Nice solution; note that you can leave out the listform, pgonly, and time attributes and get the same result.
Code is topiary
Offline
Pages: 1