Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-17 00:07:30

michael_hamm
New Member
Registered: 2005-08-25
Posts: 6

Category Questions

Hi everyone,

I’m having trouble getting an article’s category name to appear. What I want is for the category name to appear and then article right below it. The article shows up fine but category fails to show up. If I use the txp section tag, the section name shows up fine.

I have a form set up like this so it may shed some light:

txp:if_article_list

News
txp:article limit=“40” listform=“sr_GeneralArticleList”

txp:else /

txp:category /
txp:article /

/txp:if_article_list

Regards,

Michael Hamm

Offline

#2 2005-11-17 01:28:05

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Category Questions

Try <code><txp:article_category /></code>, but it must be in the article form template not the page.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-11-17 05:22:08

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Category Questions

I’ve seen <code><txp:if_article_category></code>, but no <code><txp:article_category /></code>. the article based tags for categories: <code><txp:category1 /></code> and <code><txp:category2 /></code> should be used in an article form. <code><txp:category /></code> should be used in a page context; without an assigned attribute it will return the currently searched for category, but isn’t sensitive to article categories..

Unless there is something new going on that I haven’t seen yet?

Offline

#4 2005-11-17 07:37:22

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Category Questions

No it’s just me having a brain-storm. He needs to use <code><txp:category1 title=“1” /></code> but it has to be in the article form because he wants a single article’s category. He will need to create a new form for this as I’m presuming he will use the default for the listing.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB