Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-24 19:21:07

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Article listing of specific category

I only want a specific category to show on the homepage so I am using this tag.

<txp:article form=“art-body” category=“program” />

now this tag works as it should in every other page and section limiting to only the specified category. However on the home page it completely ignores the category and posts ALL the articles. I have been scratching my head for a while now trying to figure out why. I am hoping someone may be able to shed some light on this for me.

Thanks in Advance.

(Edit: updated discussion topic. -Mary)

Last edited by Mary (2007-05-25 01:22:19)


Grrr RRR nnndth grrr Skeek!

Offline

#2 2007-05-24 19:54:17

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

Re: Article listing of specific category

<txp:article /> doesn’t have the attribute ‘category’. <txp:article_custom /> does :)

Last edited by els (2007-05-24 19:55:58)

Offline

#3 2007-05-24 19:54:40

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Article listing of specific category

<txp:article_custom form=“art-body” category=“program” />

The article custom tag is probably what you need (see above). The regular article tag only loads articles from the current section. If it is the homepage it might load them from all the other sections depending on your settings in the section tab. The article custom tag doesn’t take the URL as it’s conditions for loading articles so you can have a custom list from any section, categories etc appear wherever you like in your site.

Offline

#4 2007-05-24 20:10:08

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: Article listing of specific category

Thank You so much! I knew I was missing something stupid. Thank You!


Grrr RRR nnndth grrr Skeek!

Offline

Board footer

Powered by FluxBB