Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-22 15:14:36

Kosmo
Member
Registered: 2005-10-06
Posts: 22

Sections, how do you make subpages for them

This has god to be changed from TXP release 4.0.3

I can’t make a /section with subpages, every time I make an article, attach it to some section and make it sticky it doesn’t seem to show the article if I go to the url /section/title (/products/productname for example)

It only shows the article that is live. Now I know that you can get the sticky pages to show if you add status=“sticky” to the template, but then it will show on the section frontpage, which is not an ideal solution if you want to have subpages for a section. Now I know for a fact that 4.0.3 does this without even a hitch, I am watching a site like that right now!

So, how do you have a normal site sturcture in 4.0.4?

I have different templates for every section on the other site, but that is just because the template changes slightly for section to section. BUT I only have the regular txp:article tag in each of them and it works just the way I want it to. I am begging someone to help me because I’m starting to get seriously desperate and my company isn’t happy that the sites aren’t up yet.

Btw I’m trying to do a frontpage, /products, /products/productname, /about, /about/references type structure.

Offline

#2 2007-01-22 15:43:02

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

Re: Sections, how do you make subpages for them

Kosmo wrote:

I have different templates for every section on the other site,

That is what makes the difference ;)

<txp:if_section name="">
<txp:else />
<txp:article status="sticky" />
</txp:if_section>

This will display your sticky article(s) on a (any) section page, and not on the front page.

Offline

#3 2007-01-22 16:15:56

Kosmo
Member
Registered: 2005-10-06
Posts: 22

Re: Sections, how do you make subpages for them

Well, I made all sections their own templates (or pages as TXP calls them) and added the code

<txp:if_section name=“section”>
<txp:article />
<txp:else />
<txp:article status=“sticky” />
</txp:if_section>

It not works for all the section pages, but there seems to be a problem that every live article is plastered on the very first page. What now?

Offline

#4 2007-01-22 17:36:28

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

Re: Sections, how do you make subpages for them

For the sections of which you don’t want the articles to be displayed on the front page, you have to set ‘On frontpage’ to ‘no’ (in Presentation > Sections).

Offline

Board footer

Powered by FluxBB