Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-07 02:36:58

progre55
Member
Registered: 2006-05-02
Posts: 668

Category List - Pull Down - Jumps to another Page

Have searched and searched and can not find the answer.

Is there any way once the category is selected that the results can be displayed on another page. I know how to display it on the same page.

Thank you in advance for all your assistance.

Last edited by progre55 (2006-07-07 12:45:31)

Offline

#2 2006-07-07 14:44:11

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

Re: Category List - Pull Down - Jumps to another Page

It is, but you’ll have to handcode the links to the category pages.

Offline

#3 2006-07-07 15:43:33

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: Category List - Pull Down - Jumps to another Page

Els:

Thanks for the direction, but I am having the toughest time with this one getting it to work:

The code I am using is as follows:

<code>
<a href=”<txp:site_url /><txp:section name=“cat_search” />/?c=<txp:category name=“3600_to_4500_sq_ft” />”><txp:category wraptag=“li” link=1 title=1 name=“3600_to_4500_sq_ft” /></a>
</code>

I am sure it is something obvious, but I can not get it to go to a new section and display the list …

Offline

#4 2006-07-07 17:15:01

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

Re: Category List - Pull Down - Jumps to another Page

First, take out the link=1 in the second <txp:category /> tag. This shouldn’t be a link because it’s already inside the <a href="..."></a> tags.

Second, also look at the article tag you have on your section page where the category list should be displayed. If all articles in category “3600_to_4500_sq_ft” are also in section “cat_search”, <txp:article /> will do. If not, you’ll need <txp:article_custom /> with some conditionals. Example:
<code>
<txp:if_category name=“3600_to_4500_sq_ft”>
<txp:article_custom category=“3600_to_4500_sq_ft” />
</txp:if_category>
<txp:if_category name=“other_category”>
<txp:article_custom category=“other_category” />
</txp:if_category>
</code>
…and so on for every category you want to display there.

Offline

#5 2006-07-10 03:25:48

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: Category List - Pull Down - Jumps to another Page

Els:

Thanks, I think I am now headed in the right direction. I have gotten it to redirect now to the correct area …

Thanks again.

Randy

Last edited by progre55 (2006-07-10 03:26:09)

Offline

#6 2006-07-10 04:42:00

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Category List - Pull Down - Jumps to another Page

Just fyi, you might want to take a look at the new section and this_section attributes to the various category link tags in svn.


Alex

Offline

Board footer

Powered by FluxBB