Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-02 18:51:06
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Category browse menu
How do I get the category browse drop-down menu to show a list of results when placed on an inside section? The front page of the site I am working on is a splash page, so takes no txp:article tag. (Yes, I have searched the forum extensively for an answer, to no avail, but maybe I missed something…)
Offline
Re: Category browse menu
You have indeed. I’ve mentioned this several times. You need to setup a little block of code in your default template to deal with a category list so something like:-
<code>
<txp:if_category>
your code for a category list
<txp:else />
your front-page code
</txp:if_category></code>
Last edited by thebombsite (2005-11-02 20:17:00)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2005-11-03 07:45:47
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: Category browse menu
Thanks. I’ll give it a go and report back.
Offline
#4 2005-11-03 10:55:57
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: Category browse menu
Sorry. It still doesn’t work. I’m obviously doing something wrong – maybe because I’ve been banging my head on the desk for five days over this problem. I’ve now got this on the front page:
<code><txp:if_category>
<txp:article />
<txp:else />
my front-page code
</txp:if_category></code>
and this on my section:
<code><txp:popup type=“c label=“Sort by budget (€) or by Location” wraptag=“p” /></code>
I thought txp:article on the default page template would bring up a category list. The section in which all the articles are saved is viewable on the front page. Any more suggestions, please?
Offline
#5 2005-11-03 11:16:41
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: Category browse menu
Hold everything! There’s a typo type=“c Could be the solution.
Offline
#6 2005-11-03 11:27:15
- castanet
- Member
- From: Oxford
- Registered: 2005-03-19
- Posts: 97
Re: Category browse menu
Oh joy! It works. Thanks, Stuart. You’re my favourite.
Offline
Re: Category browse menu
No problem. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1