Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-29 14:39:30
- miguel313
- New Member
- Registered: 2005-12-21
- Posts: 4
Permalink Help
Is there a way to change where the permlink takes you?
Here is what I am trying to accomplish:
I have a section called “Audio” using a page called “Audio”
On this page I want to display the categories “Radio Show” and “Productions”
When you are on audio, you are viewing a list of articles that come from these two categories, however, when you click on the permlink, I want to display the single article using a different form (radio_detail/productions_detail)
Initially, I created 3 sections. Audio, Radio, Productions
Then I forced radio and productions to display on audio, but when you chose their permlink, you were viewing just the individual radio show on section/page “radio”. This seems counterproductive as I am forced to create lots of uneeded sections.
Any help is greatly appreciated.
Thank You
Miguel
Offline
#2 2005-12-29 14:46:53
- miguel313
- New Member
- Registered: 2005-12-21
- Posts: 4
Re: Permalink Help
OR
Can I make a section use multiple pages?
Like, IF its a list of articles, use “X”
Else If its an individual article, use “Y”
I know some of you may point me to using the if_individual_article tag, but this does not solve my problem because it only seems to work once within a page. If I use this like:
(code written this way to get point across, i realize this is not the proper syntax)
div id=radio
if_individual_article
txp:article form=“radio_detail”
if_article_list
txp:article form=“radio_list”
div id=productions
if_individual_article
txp:article form=“prod_detail” <——————————-Second instance of if statement screws up process
if_article_list
txp:article form=“prod_list”
Last edited by miguel313 (2005-12-29 15:17:43)
Offline
Re: Permalink Help
Am I wrong or are you trying to do this?
Offline
#4 2005-12-29 15:15:43
- miguel313
- New Member
- Registered: 2005-12-21
- Posts: 4
Re: Permalink Help
Thank you, but this does not help.
The basic problem is…
I have two categories I want to display in one page. I want each category to use its own form to display its content. I ALSO want the permlink/individual version of the article to use a different form. So in total, I have two categories, which can be viewed in two different states each (as part of a list and as an individual article), using a total of four different forms
I guess the best example of this would be a web store. There is a display page that gives you a list of different items (item_display) and there is a template page (item_detail) which shows the full detail of the item chosen on the display page. The complexity is added by having 2 different types of detail pages depending on the product. (eg; Clothing > color/size/image VS. CD’s > album name/artist/release date)
Last edited by miguel313 (2005-12-29 15:16:01)
Offline
Re: Permalink Help
Sorry, I misunderstood. If I understand what you are saying, I’d do something like this
<code>
<div id=“radio”>
<txp:if_category name=“radio”>
<txp:article listform=“radio_list” form=“radio_detail” />
</txp:if_category>
</div>
<div id=“productions”>
<txp:if_category name=“productions”>
<txp:article listform=“prod_list” form=“prod_detail” />
</txp:if_category>
</div>
</code>
Last edited by RenJonsin (2005-12-29 15:48:09)
Offline
#6 2005-12-29 15:59:59
- miguel313
- New Member
- Registered: 2005-12-21
- Posts: 4
Re: Permalink Help
That makes so much sense, yet it does not work. When I do that, nothing displays on the page.
I tried adding the “txp:article_custom”, but that also did nothing.
Your logic is right on, but its not working.
It’s silly because if I were to try this using straight php, I know what I’m trying to do is not difficult.
Thank you for the suggestions thus far :)
Last edited by miguel313 (2005-12-29 16:00:47)
Offline
#7 2005-12-30 00:27:12
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Pages: 1