Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
 
#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
Re: Making common page elements an include
Yep, easier than PHP too.
- Presentation>Forms
 - Create a new form
 - Put your side nav code into the textarea
 - Select the type – if it’s just HTML, choose misc
 - Save it as 
side_nav(for example) - In your template, type 
<txp:output_form form="side_nav" />where you would normally place your side navigation HTML. 
Offline