Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Template code - import/include templates
Hi,
I’m not completely certain about how the templating works in txp but what I’m looking for is a way to include content of other pages/templates into a page. For example, I could have a template that contains the page head and include that template on each page, rather than editing it manually on each page.
Is there a template tag for this?
Thanks,
Ross
Offline
Re: Template code - import/include templates
I create a form with the html i want in the header and the output that form on my page.
For example, I’ll create a form called “Header” and output the form in the page using this tag
<txp:output_form form="Header" />
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Template code - import/include templates
Thanks Matt, that solves it!
Offline