Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-07 03:14:48

scdoody
Member
Registered: 2006-10-18
Posts: 129

Making common page elements an include

Is there a way to make common page elements an include. For example, I have a right navigation that is the same on each page – is there a way to make this an include so that I only have to edit it once? How would I do this in textile?

Thanks.

Offline

#2 2006-11-07 03:21:01

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Making common page elements an include

Yep, easier than PHP too.

  1. Presentation>Forms
  2. Create a new form
  3. Put your side nav code into the textarea
  4. Select the type – if it’s just HTML, choose misc
  5. Save it as side_nav (for example)
  6. In your template, type <txp:output_form form="side_nav" /> where you would normally place your side navigation HTML.

Offline

Board footer

Powered by FluxBB