Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-28 22:07:52

M1rco
Member
Registered: 2008-04-19
Posts: 13

Single category doesn't work?

Hi, got (another) little problem.
I used the categories-txp-tag in my footer.
But when i follow a link, every entry is shown, even it is not in these categorie?!

Offline

#2 2008-04-28 22:11:59

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

Re: Single category doesn't work?

You are likely using article_custom in your page, but you need to be using article.

Last edited by Mary (2008-04-28 22:12:06)

Offline

#3 2008-04-28 22:12:55

M1rco
Member
Registered: 2008-04-19
Posts: 13

Re: Single category doesn't work?

Zap! Oh yeah, I think you’re right.
Thank you

Edit: Actually it works.
But not in my case.
All articles are in the “articles” section, using the “default”-pages.
All articles in one category should use the “artcat”-page. But they only appear there when they are in the “artcat”-section.
Can I put one Article in two sections?

Last edited by M1rco (2008-04-28 22:29:24)

Offline

#4 2008-04-28 23:40:51

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Single category doesn't work?

Or you could try:

<txp:if_category>
	<txp:article />
<txp:else />
	<txp:article_custom />
</txp:if_category>

That gives you opportunity of two individual layouts.

Offline

#5 2008-04-28 23:45:10

M1rco
Member
Registered: 2008-04-19
Posts: 13

Re: Single category doesn't work?

Oh boy, my fault.
I made it to complicated.
Now it works.
Thank you all!

Offline

Board footer

Powered by FluxBB