Developing Site Templates

The site template files are located in /site/templates/

Each of the template files in this site profile includes the header template (head.inc), outputs the bodycopy, and then includes the footer template (foot.inc). This is to avoid duplication of the markup that is the same across all pages in the site. This is just one strategy you can use for templates.

You could of course make each template completely self contained with it's own markup, but if you have more than one template with some of the same markup, then it wouldn't be very efficient to do that.

Another strategy would be to use a have a main template that contains all your markup and has placeholder variables for the dynamic parts. Then your other templates would populate the placeholder variables before including the main template. See the skyscrapers site profile for an example of that strategy.

Regardless of what strategy you use in your own site, I hope that you find ProcessWire easy to develop with. See the Developer API, and the section on Templates to get you started.


Dec 14
ULS Annual Lawyers/ ULS House Dinner - 14 December 2018.
ULS is hosting its Annual Lawyers/ULS House Dinner on December 14 from 6pm at the Serena Hotel Kampala. This year will have three types of cards: Young Lawyers (Under 5 years of practice) at only 150,000/= each, other Advocates card at 250.000/= each and