Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Pagination
Hello, I’ve been using textpattern for about four weeks and its been nothing, but great! Awesome piece of software. I am however still very new to it and how certain features work. What I am trying to achieve essentially is pagination for my Fraternity’s website. We have classes to be displayed on the website and I would like to be able to click a link in my navigation that brings me to an article listing the first class and then with pagination links to go on to the next class and so on and so forth. I know this can be achieved with pagination and by creating articles for each separate class, but I do not understand how to do this myself. Can anyone help me with this please?
Thanks,
Hunter
Offline
#2 2007-10-03 19:20:28
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: Pagination
I would first create a section for those classes, and give it a name that makes sense somehow, eg.: classes
Then make each class an article and assign it to that section.
I would also recommend to have that section use a seperate Page Template ( Makes it easier in the beginning)
Now in that Template use either the article or article custom tag and customize the article form that it uses, to display the classes as link using the title and permlink tags for instance.
- If the classes are not to be displayed chronologically, then you can create a custom_field
for each class as a sort argument. Or else you could also use the categories for that.
- If I understood you right you want one class on each page , so set the limit to one.
Use the sort attribute to get the sort order right.
Example.: sort="custom_1 desc"
- For the pagination use the
<txp:newer></txp:newer> <txp:older></txp:older>
tags
For details txp:newer Textbook
- The last thing here basically is to use the conditionals to control the individual article forms, which will get you to each class permlink page.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Pages: 1