Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-04-29 01:41:32
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Redirect Category to Alternate Page
With regards to a category list: Can you suggest a plugin to redirect a category link to an alternate page other than the default? Thank you.
Offline
#2 2009-04-29 02:49:52
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Redirect Category to Alternate Page
I believe using a section attribute will direct you to that section page, if that helps. Of course, that restricts you by section assignment for articles as well as category.
Last edited by rsilletti (2009-04-29 02:50:59)
Offline
#3 2009-04-29 03:19:04
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: Redirect Category to Alternate Page
Thank you for your reply Rick. I believe there is a simple if conditional for what I’m trying to do but I’m new to txp and thought I would try and take the easy way out with a plugin.
Offline
Re: Redirect Category to Alternate Page
Don’t fear the conditionals! :)
I think you can easily do what you want with if_category
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#5 2009-04-29 13:26:58
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: Redirect Category to Alternate Page
Hi Kemie,
Thank you for your help. Is this a valid if?
<txp:if_category name=“Grace”>
<txp:output_form form=“sidebar” />
<txp:else />
<txp:output_form form=“sidebargrace” />
</txp:if_category>
Thank you.
Offline
Re: Redirect Category to Alternate Page
Gulfcoast wrote:
Is this a valid if?
Yes it is
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#7 2009-04-29 13:58:13
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: Redirect Category to Alternate Page
Great! Thank you Colak.
Offline
#8 2009-04-29 17:33:58
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Redirect Category to Alternate Page
Offline
#9 2009-04-29 18:42:14
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: Redirect Category to Alternate Page
Hi Els,
Thank you. I realized my mistake with that after I posted and have since changed it to all lowercase. The conditional statements are really quite “fun” to use once you get the hang of them. I’m sure there are many complicated ones as well. Can you tell me, is there another (better) good source other than textbook that references many of the common and maybe not so common if: conditional statements that people can use? Thank you.
Offline
#10 2009-04-29 20:24:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Redirect Category to Alternate Page
Textbook is the best place for reference, all existing tags are listed there. For usage examples you should definitely visit TXP Tips.
The forum stores the most examples, common and not so common and really far-fetched ones ;) The only problem is to find them… Never mind, just post your questions if a forum search doesn’t provide the desired results, there’s always someone who will point you to the right thread(s) or help you get started – en help you finish as well :)
Offline
#11 2009-04-30 02:36:58
- Gulfcoast
- Member
- Registered: 2009-04-12
- Posts: 76
Re: Redirect Category to Alternate Page
Thank you Els and others that helped me with this post. You all are indispensable to those of us that struggle with our newbie issues and otherwise. You are to be commended for the time and effort that you devote. Maybe I can “pass it forward” at some point as well.
Offline