Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-05 20:16:27

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

Using Categories to Limit Content

I’m trying to build a page that shows a sticky article and then shows a large number of live articles based on a category for a specific year.

http://centerfest.durhamarts.org/artists.html

That’s the page I’m trying to rebuild. Each artist would be an article, and the year in which they exhibit would be in category1

I realize that I could restrict the live articles using an ‘article_custom’ tag, and that’s a possibility.

how, though, could I use that same section to display all of the articles in a different year?

i’m having trouble putting this into a question… you help is appreciated as always.

Offline

#2 2010-08-07 12:02:12

claywso
Member
From: Durham, NC USA
Registered: 2004-12-20
Posts: 57
Website

Re: Using Categories to Limit Content

Any thoughts on this? Maybe this is a better explanation:

I have a section that should display, by default, all articles in Category1(X)

I’d like to have a link for other categories (Y, Z) and when those are clicked, have only articles from that category show.

I’d like to handle this in one section, but I’m struggling with the logic / tags

Offline

#3 2010-08-07 13:18:13

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Using Categories to Limit Content

Maybe you should check the thread Post Articles to Static Page ‘Categories’ first.

A solution is of course possible but your problem runs into the same Textpattern semantic model problem: Categories are basically no content dividers as sections are.

How to show a category/year-filter selection?

article_custom has a time limit attribute:

month=“yyyy”/“yyyy-mm”/“yyyy-mm-dd”
Restrict to articles posted within the specified year/month/day.

month=“yyyy” in combination with the other filters should do the trick.

How to link to that category/year-filter selection?

That’s the problem. A link to category1 doesn’t offer that filter.
That’s what eg sections are for. Use a section for each year and you are set.

Welcome to the world of tagging.

But I wouldn’t use different sections if you only want to render a ‘festival 2010’ list.

Use a ‘festival 2010’ keyword instead.
Use TXP plug-in tru_tags which offers all you need to get a keyword search result page.
Negative (looking at I’d like to handle this in one section): You will need a new section for those keyword search result pages.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB