Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-16 16:39:29

Pasha-by
New Member
From: Belarus
Registered: 2008-01-18
Posts: 9
Website

Categories gone wild!

They filter articles within current section only, and not throughout the whole site.
What should I do?


en.nashekrashe.com — Design Studio

Offline

#2 2008-02-16 17:36:08

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

Re: Categories gone wild!

Make sure you’re using the default page for your categories and not a section’s page.

Offline

#3 2008-02-16 18:31:39

Pasha-by
New Member
From: Belarus
Registered: 2008-01-18
Posts: 9
Website

Re: Categories gone wild!

Every section/page has a list of general categories in a sidebar (<txp:category_list break=“li” />)

What do you mean by “using default page for categories”?


en.nashekrashe.com — Design Studio

Offline

#4 2008-02-16 19:33:28

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

Re: Categories gone wild!

http://example.com/category/foobar = article index of all articles in the “foobar” category. /category requests use the default page template, so you need to use if_category in your page.

Offline

#5 2008-02-16 20:48:09

Pasha-by
New Member
From: Belarus
Registered: 2008-01-18
Posts: 9
Website

Re: Categories gone wild!

Category requests use the default page, that is for sure.
And I do need ALL articles from certain category. But TP shows me ONLY articles from those sections that have “show on front page” mark.
confused and tired…

Last edited by Pasha-by (2008-02-16 20:48:57)


en.nashekrashe.com — Design Studio

Offline

#6 2008-02-16 20:53:20

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

Re: Categories gone wild!

Ah. That’s expected.

Offline

#7 2008-02-16 21:43:58

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

Re: Categories gone wild!

Pasha-by wrote:

But TP shows me ONLY articles from those sections that have “show on front page” mark.

As a workaround, you can use this code (with the asy_wondertag plugin):

<txp:if_category>
<txp:asy_wondertag><txp:article_custom category="<txp:category />" /></txp:asy_wondertag>
<txp:else />
<txp:article />
</txp:if_category>

Last edited by els (2008-02-16 21:44:54)

Offline

Board footer

Powered by FluxBB