Go to content Go to navigation Go to search

Simplifying common section content in Textpattern

It’s pretty common to have common content that is specific to each section. Often this takes the form of different side-bar content. This is easy to accomplish in Textpattern by creating a form for each section and then including the following code in your page template:

<div id="side"
<txp:if_section name="articles">
	<txp:output_form name="side_articles" />
</txp:if_section>

<txp:if_section name="features">
	<txp:output_form name="side_articles" />
</txp:if_section>

<txp:if_section name="default">
	<txp:output_form name="side_default" />
</txp:if_section>
</div>

This is obviously rather long winded, and as you add more and more sections to your site, it becomes increasingly clumsy. Textpattern 4.0.7 promises us the ability to include tags within tags which would provide a solution along the lines of:

Continue reading...

Comment


Website makeover

With the rain pouring down outside and a few moments to myself I thought it might be nice to give the website a make over after all I’ve never been that satisfied with the old look as it was the product of necessity and limited time. This time however it would be nice to sort out some of the problems.

So what were the objectives of this re-design? The first objective was to simplify the layout and reduce the overall screen clutter and reorganise some of the sections.

Continue reading...

Comment [2]


What's it all about?

Doug Robert's personal website covering technology both old and new such as Palm TX, Commodore 64, gaming and more.

Contact

Subscribe