In the Template Manager, select the Templates tab to see a list of a number of standard templates installed with Joomla. Click on Spatomic Details & Files to enter the Customize Template area where it is possible to open and edit the files used to control the look and feel of our site. This is generally a job to be approached with very great caution, requiring good knowledge of PHP, HTML and CSS. The main files are:

  • index.php - This is the code that creates a page when requested by a user; it contains a mix of HTML code containing instructions to the browser about the layout of the page, and PHP code containing instructions to the server which allow the page HTML to be customised;
  • error.php - This is the code that displays an error message when something goes wrong. It is customised so that an Error 404 page is displayed when a web address is not found (see below);
  • templateDetails.xml - This defines a number of logical entities used in constructing the template:
    • positions - The locations where entities such as the main menu are placed in the web pages;
    • section - This defines a number of sections into which the website is organised (Map pages, Events and Venues, Living in Sutton Poyntz etc.);
  • CSS files (in folder css) - These files contain formatting instructions, which personalise the way text, images, tables etc. appear on the website;
    • template.css - This contains formatting instructions that are needed both in displaying the site and by the editor;
    • templateFixed.css and templateResponsive.css - These files contain additional formatting instructions that affect the surrounds to each webpage (menus, breadcrumbs, search box, acknowledgements etc.), which are not needed by the editor. By default, the site is Responsive, using templateResponsive.css, but the user can view the Fixed (non-responsive) version by adding ?fixed at the end of a page address. Add ?responsive to return to the Responsive version;
    • bkg_xxx.css - A number of bkg files are provided; these have just one job, which is to define the Watermark image used for each subject grouping (Village Maps, Events & Venues, etc.) in the website.

Error 404

This is the error code created when the site visitor asks for a page that does not exist. Code in the template file error.php causes a redirect, via an Error 404 menu item in the Admin menu to an article called Error 404 - Page not found. This page displays a message, advice, and a site map. It is importnt that both the menu item and the article exist (otherwise there is a danger of creating an endless loop).