The template set has a number of files, including some optional files for specific tasks:
- page: used by all webpages on your site
- menu: creates your left-hand website menu/s
- settings_site: for information that applies across your site like responsible officer, short name etc.
- config: code used to display settings throughout your website
- Features - settings_features and features used for displaying the feature bar on your homepage
- RSS reader - rss_example, rss_functions, and rss_lib used for displaying content from ANU RSS feeds on your site
The templates work together with your Site ID to retrieve and include standard elements from the central store, such as the explore bar, banner, metadata, styles and footer.
Save the files on your webserver, in folder/s of your choice. Note that settings_site and config must be in the same folder and settings_features and features must be in the same folder.
- Edit settings_site.php
- Update anything in between
*** markers with the values requested (and remove the
- Change False to True if you would like a search box on your website menu
- Save your changes.
- Edit page.php.
- Update the reference for the config file to reflect the config file location (edit the code underneath the line
//config file reference//)
- Save your changes.
Once you have installed following the steps above:
- Make a copy of page, rename it to index.php and save it in the root folder for your website. This will become your homepage.
- Edit index.php and view the source code. Update anything with *** markers.
- Save your changes and preview the webpage.
- Edit menu.php and ensure that the new webpage is on the site menu.
- Refer to the web style guide for styling options including adding features and RSS feeds.
You can repeat the above process to create more webpages. When naming files, be descriptive of the file contents and avoid using spaces in the filename. If you must have spacing, instead use a hyphen (-) or an underscore (_).
Dreamweaver can be used to view and edit the template files.
Use the split or code views so that you can see the parts of the code that you need to update: