Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-08 03:36:52

Zarathu
Member
Registered: 2006-08-12
Posts: 35

...view all posts of a certain category?

Article category, specifically.

Offline

#2 2007-01-08 07:02:34

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: ...view all posts of a certain category?

In your page template for that section, use:

<txp:if_category>
<txp:article limit="9999" />
<txp:else />
<txp:article />
</txp:if_category>

Offline

#3 2007-01-08 09:20:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: ...view all posts of a certain category?

Or a straight list:

<txp:article_custom category="category_name" limit="9999" />

If you need more than that, you’ll need to give more detail. :)

Offline

#4 2007-01-10 09:27:50

Zarathu
Member
Registered: 2006-08-12
Posts: 35

Re: ...view all posts of a certain category?

I was actually thinking something along the lines of, “index.php?category=CategoryName”

Offline

#5 2007-01-10 18:46:16

jamiew
Archived Plugin Author
From: NYC
Registered: 2005-01-08
Posts: 74
Website

Re: ...view all posts of a certain category?

Not sure I understand — that link will have you browsing the category, in which case you will be viewing all posts of a certain category.

Offline

#6 2007-01-11 07:47:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: ...view all posts of a certain category?

Did you look at all the category related tags?

Offline

#7 2007-01-16 23:18:18

Zarathu
Member
Registered: 2006-08-12
Posts: 35

Re: ...view all posts of a certain category?

Well I am primarily looking to do is have a link, say, “Category 1” on the sidebar. I want to be able to click that link and have it direct to another TXP page (whether or be a template or just whatever) that shows all of the articles belonging to that category. Has that already been explained?

Offline

#8 2007-01-17 20:20:52

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

Re: ...view all posts of a certain category?

<txp:category name="name-of-category" title="1" link="1" /> :)

Offline

#9 2007-01-19 02:22:29

Zarathu
Member
Registered: 2006-08-12
Posts: 35

Re: ...view all posts of a certain category?

The problem with that is that there are going to be many, many, MANY categories. Well over 100.

Offline

#10 2007-01-19 09:25:05

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: ...view all posts of a certain category?

Offline

#11 2007-01-20 21:19:14

Zarathu
Member
Registered: 2006-08-12
Posts: 35

Re: ...view all posts of a certain category?

Right, and it links to “index.php?c=CATEGORYNAME.” When I click it, I get nothing. How do I get the link to go to a page with all posts of that certain category?

Offline

#12 2007-01-20 23:27:40

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

Re: ...view all posts of a certain category?

Use the code in jm’s post in your default page template.

Offline

Board footer

Powered by FluxBB