Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-20 20:12:47

s1deus
Member
From: New York
Registered: 2005-04-06
Posts: 30

Sub-categories?

I searched through some threads and I noticed a lot of past threads saying TP doesn’t support sub categories. Is this true?

A friend recently developed a small site Http://onpointx.com. I recommended he use TP. However, as he was developing the site, we noticed the breadcrumbs were not displaying properly. If you look at the nav, there are two buttons underneath “business services.” They are, “buy side firms” and “sell side firms.” these were supposed to be sub categories under business services. However, despite going into TP and putting the parent of these categories as business services, the breadcrumbs still came out “Onpointx > Sell side firms” not “Onpointx > business services > sell side firms” etc.

What’s the deal? How can this be done? Is there a work around? I feel bad having recommended TP to my friend now.

Thanks

Offline

#2 2007-02-20 22:23:55

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

Re: Sub-categories?

Business services is a section, and Buy side firms and Sell side firms are articles. So this has nothing to do with categories as far as I can see.
I think the breadcrumbs don’t display the section because the site is using messy urls, if you can switch to clean urls it should display the section. If this is not possible there are other ways to code the breadcrumbs without using the txp:breadcrumb tag.

Offline

#3 2007-02-21 14:35:50

s1deus
Member
From: New York
Registered: 2005-04-06
Posts: 30

Re: Sub-categories?

Well, clean URLs won’t work. How else can I display the breadcrumbs? Is it using txp:section txp category?

Thanks

Offline

#4 2007-02-21 18:03:29

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

Re: Sub-categories?

Forget about categories, I don’t see any use of categories on the site.

Create an article form named ‘breadcrumbs’:

&#183; <txp:title />

On your page, where the breadcrumbs should appear:

<txp:if_section name="">
<txp:else />
<txp:link_to_home><txp:sitename /></txp:link_to_home> &#183; <txp:section title="1" link="1" />
<txp:if_individual_article>
<txp:article form="breadcrumbs" />
</txp:if_individual_article>
</txp:if_section>

(If you are not using the same page template for the front page as for the section pages, you can leave out the <txp:if_section> tags.)

I don’t think you are using comments so this won’t be a problem. Otherwise it won’t work if you have set ‘Automatically append comments to articles’ to ‘yes’.

Last edited by els (2007-02-21 18:07:51)

Offline

#5 2007-02-23 15:45:13

s1deus
Member
From: New York
Registered: 2005-04-06
Posts: 30

Re: Sub-categories?

Thanks, I will see if my friend can implement this.

Offline

Board footer

Powered by FluxBB