Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-03-08 02:59:03

thijs
Member
Registered: 2012-04-17
Posts: 39

making category pages show all section articles

hi, another question for you kind people…

I am using textpattern for an illustration portfolio (as before thijsvissia.nl) , which has articles in three sections: 1) illustration 2) sketches 3) stories
of which only the first is shown on the homepage.
Besides those, I use categories for thematic subdivisions: animals, portraits, music etc.

In short, it may be that a portrait is in the illustration section, or under sketches.

Problem I’ve encountered: the category page does not display something from a section that’s set to not display on the front page (it considers the category page as part of the frontpage?). Is there a way to change this, without making those sections frontpage material?

I would like the category page to show all posts, frontpage-worthy or not.

Thanks.

Last edited by thijs (2013-03-08 03:02:07)

Offline

#2 2013-03-08 10:43:22

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

Re: making category pages show all section articles

You probably have something like this on your page:

<txp:if_category>
   <txp:article />
</txp:if_category>

You can change the article tag to

<txp:article_custom category='<txp:category />' />

But keep in mind that the article_custom tag doesn’t allow for pagination. At least not out-of-the-box, there are workarounds.

Offline

#3 2013-03-08 13:51:50

thijs
Member
Registered: 2012-04-17
Posts: 39

Re: making category pages show all section articles

thanks Els,
that does the trick for now. Not sure I need pagination if I set a high post limit, so until the categories have that many posts I’ll use this.
Do you know where can i find any of the workarounds?

Offline

#4 2013-03-08 13:56:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: making category pages show all section articles

thijs wrote:

thanks Els,
that does the trick for now. Not sure I need pagination if I set a high post limit, so until the categories have that many posts I’ll use this.
Do you know where can i find any of the workarounds?

here is one


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB