Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-22 18:47:45

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

if_section if_category

Just to let you know here my idea and the help i need explained better.

Im working on a business model website, and I want to use Texpattern. But I am haveing some trouble with the Sections and Categories.

My web address is http://somdomain.com/Amateur/Transcievers

The section is: Amateur
The category is: Transcievers

Now the question is how do I get a certian article ID to show up at http://somdomain.com/Amateur/ but not at http://somdomain.com/Amateur/Transcievers

and vise versa.

Also if i had the address of: http://somdomain.com/Amateur/Transcievers/TT516

The section is: Amateur
The category is: Transcievers
The Article is: TT516

How do i get the article to show up at that address and not have it show the individual article that shows up when you goto http://somdomain.com/Amateur/Transcievers/ or http://somdomain.com/Amateur/

I have tried using the TXP:if_category and TXP:if_section tags with no luck.

any ideas.


Ryan

Offline

#2 2005-09-22 21:31:54

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

Re: if_section if_category

Try the glx_if plugin. It has tags like if_section_frontpage, if_not_section_frontpage, if_category_list, and so on.

Offline

#3 2005-09-23 12:37:12

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: if_section if_category

I looked at that plugin and it dosen’t do what I need it to do.


Ryan

Offline

#4 2005-09-23 12:49:58

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

Re: if_section if_category

Then what code and tags are you using in the page template right now?

Offline

#5 2005-09-23 13:03:53

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: if_section if_category

im using the TXP:if_section and TXP:if_category.

If you want to see what i am trying to do look at Zem’s (http://thresholdstate.com/) website and qrayg website (http://www.solardreamstudios.com).

solarDreamstudios has a good example in his learn section.

I know that with this address http://solardreamstudios.com/learn/
Learn is a Section
and with this address http://solardreamstudios.com/learn/fireworks/
Fireworks is a category

what I am trying to do is figure out how that is done when it comes to displaying certain articles at certian address’s.

I asked qrayg but he wont help me said to ask here.


Ryan

Offline

#6 2005-09-23 19:18:36

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: if_section if_category

My problem is fixed.


Ryan

Offline

#7 2005-09-23 19:36:20

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

Re: if_section if_category

Glad to hear that ;)

Offline

#8 2005-09-27 01:09:30

bitwise
New Member
Registered: 2005-08-22
Posts: 7

Re: if_section if_category

care to share how you figured it out, im sure some others (me) would like to know ;)

Offline

#9 2005-09-27 01:34:48

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

Re: if_section if_category

It isn’t very clear what NX is trying to do, but the faq covers one common scenario.


Alex

Offline

#10 2005-09-27 12:12:46

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: if_section if_category

Heres how it is done, Thanks to qrayg @ solardreamstudios for the help.

< txp:if_individual_article>
Individual article output form goes here
< /txp:if_individual_article>

< txp:if_article_list>
< txp:if_category category=”“>
< txp:else />
/Amateur/ category listing goes gere…
< /txp:if_category>

< txp:if_category name=“Transceivers”>
/Amateur/Transceivers/ category listing goes gere…
< /txp:if_category>

< txp:if_category name=“Amplifiers”>
/Amateur/Amplifiers/ category listing goes gere…
< /txp:if_category>
< /txp:if_article_list>

edit: all this is one page

Last edited by NXArmada (2005-09-27 12:15:32)


Ryan

Offline

#11 2005-11-01 13:43:41

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: if_section if_category

You can see the TXP codeing working here on my beta site. http://beta.tentec.com/Amateur/Transceivers

The Trensceivers page is ccompletely auto generated by TXP includeing the shopping cart buttons. The shopping cart buttons are generated useing the Custom Fields. Also the navigation menus are also auto generated.

TXP is a very powerful CMS and I am haveing loads of fun learning it.

Last edited by NXArmada (2005-11-01 13:44:17)


Ryan

Offline

Board footer

Powered by FluxBB