Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-08 08:46:25

blur
Member
Registered: 2008-09-08
Posts: 18

Multiple static pages with introduction

I have a section called Team who has a custom design with 3 links to team members, each team member is an static article:

  • Team (Section Front-Page with links and custom One Column layout)
    • Member 1 (Section Inner-page with custom Three column layout)
    • Member 2
    • Member 3

The Front-page-section has this layout:

<div id="content"> Links here </div>

The Inner-Page-section has this layout:

<div id="content"> <div id="left-navigation">Section navigation list</div> <div id="content-inner">Where the article is displayed</div> <div id="tools">Contact links</div> </div>

I’m trying to figure out how to make a page (template) for the Team section who display the Front-page-section on example.com/team/ and Inner-Page-section on example.com/team/member

To accomplish this task i make two custom forms, one with the Front-Page code and the other one with the Inner-Page code, and use the glx_if plugin on my page (template):

<txp:glx_if_section_frontpage> <txp:article limit=1 form="static-intro" status="sticky" /> <txp:else /> <txp:article limit=1 form="static-inner" status="live" /> </txp:glx_if_section_frontpage>

My question is:

  • How can i do this without plug-ins (any if tag?)?
  • What is the best way to manage multiple static pages?

My website has a lot of static pages and i want to learn how TP works as CMS with multiple non-blog static pages (some clues).

I’m new on TP so any help, links, comments would be great.
By the way Excuse my English.

Last edited by blur (2008-09-08 09:43:58)

Offline

#2 2008-09-09 20:57:43

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Multiple static pages with introduction

Regarding your second question here are some links errm URLs (sorry, I’m pinched for time):
http://thresholdstate.com/articles/3667/managing-static-pages
http://textpattern.com/faq/31/how-do-i-manage-static-pages
http://textbook.textpattern.net/wiki/index.php?title=Making_an_Article_Static_and_Top-Positioned


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB