Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-16 16:46:09

simsim
Member
Registered: 2006-05-06
Posts: 70

Creating sub-sections & sectional landing pages

Hello all,

I’m designing a website that’s structured as follows:

Main navigation:
Home | About Us | Projects | Get Involved | News | Resources | Contact

Every one of these navigation elements should be represented as a section TXP-wise. I’ve done all things quite perfectly, but failed to achieve two major things:

1) How to implement TXP to make sub-sections? Under “About Us” there should be a “Testimonials” section which would have its own page & style sheet. I’ve successfully implemented clean URLs, so how could I make a title like this:

http://www.example.com/about/testimonials/john-doe-on-localpaper

?

2) How to make landing pages for sections? The effect I’m trying to achieve is similar to CARE’s organization sectional’s landing pages.

In other words, how do I develop an index page for a section?

Thanks in advance.

Offline

#2 2007-11-16 17:54:26

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Creating sub-sections & sectional landing pages

Currently Textpattern doesn’t support sub-sections, but wet is working on this, neither it won’t happen in 4.0.x.

  • You could use categories, it would look like section with clean-urls
  • You could also use regular articles for content

Cheers!

Last edited by Gocom (2007-11-16 17:54:48)

Offline

#3 2007-11-16 20:48:07

simsim
Member
Registered: 2006-05-06
Posts: 70

Re: Creating sub-sections & sectional landing pages

Thanks Gocom.

What about sectional landing pages?

Offline

#4 2007-11-16 20:56:27

JonahC
Member
From: Toronto
Registered: 2007-09-23
Posts: 39
Website

Re: Creating sub-sections & sectional landing pages

the sectional landing pages could be the sticky article in each section or it could be a form as suggested by gocom here


Jonah Calinawan
www.foodportraits.com

Offline

#5 2007-11-20 10:05:11

simsim
Member
Registered: 2006-05-06
Posts: 70

Re: Creating sub-sections & sectional landing pages

Hello,

I’ve created a sectional_page page and put the following portion:

<txp:if_individual_article>
        <txp:article form="static-article" limit="1" />
        <txp:else />
        <txp:article form="static-article" status="sticky" />
</txp:if_individual_article>

It works pretty well. :)

Thanks again for the help.

PS. Why white space isn’t considered when using Textile’s @ markup for code? (edited, thanks to jakob below).

Last edited by simsim (2007-11-22 12:45:58)

Offline

#6 2007-11-20 11:43:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Creating sub-sections & sectional landing pages

PS. Why white space isn’t considered when using Textile’s @ markup for code?

use bc. if you want to post longer code excerpts.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB