Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Next/prev for articles within category
Hi everyone, I’m building a site for a photography magazine. I’ve used a different section for each issue, and category 1 for the photographer’s name. On the individual article page, I’d like to have next/prev link to articles only within the same category (e.g. by the same photographer).
Is this possible? Or, is there a better way to structure my site?
Thanks.
Offline
Re: Next/prev for articles within category
I think you should use an article for each issue. This saves you from constantly having to create new sections for issues, and new categories for authors.
The photographer can be a custom field or an article (if there’s more info about the photographer than just the name)
Not sure how to do the prev/next part, but you could alternatively display an article list (in the form of linked titles) with article_custom. You could tell the article_custom tag to query all articles (except the currently viewed article) which have the current photographer’s name as custom field, or refer to an article which has the photographer’s name as its title.
Kensington TXP powered rock
Offline
#3 2009-04-30 20:35:28
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Next/prev for articles within category
Have a look at smd_horizon.
Offline
Offline
Re: Next/prev for articles within category
Thanks Els! That looks like it solves my problem.
Also, thanks jan for your suggestion. Custom fields were what I had originally, but I had changed them to categories to save time when creating new articles.
Offline
Re: Next/prev for articles within category
Also you can try this Txp Tip
Last edited by the_ghost (2009-05-01 07:19:44)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: Next/prev for articles within category
I’ve also used jk_neighbour in the past, works great
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: Next/prev for articles within category
yeah, smd_horizon is the howitzer I’ve been looking for. It’ll take care of elephants, tanks, city blocks and of course rabbits.
Offline