Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
Pages: 1