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

#13 2007-01-26 23:06:53

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

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

Here… Let me explain what I mean.

www.omreview.com

Go to “Artists.” You notice those? Each artist is a category. Click the artist. Notice that nothing happens? Jm’s code doesn’t help me in that regard.

Offline

#14 2007-01-27 12:11:23

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

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

Are the category name and title the same? How do you make that artist category list? What is the code for that? Can you link to the page code? (i prefer linked files to huge forum posts myself…)

And just to be bluntly sure – you have posts in those categories right? Otherwise you will be getting empty pages when browsing categories…


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#15 2007-01-27 22:46:20

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

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

Yes, I have pages in those categories. The artist name is the same as the category name—all of which are article categories.

That artist category list is created manually in a separate page.

Offline

Board footer

Powered by FluxBB