About Us Community Tools Publications & Interviews What's New
     

Sustainable Theme

crcresearch.org uses theme Sustainable.  Its files are in folder /themes/sustainable.
In order to do the following things, you need ftp access to this folder.

Page Templates

The Page Template for each page contains the top banner, footer and elements of the page formatting.
The Page Templates all have filenames ending in .tpl.php
Selection of the Page Template is done in the master page template page.tpl.php
For nodes (most pages of the site) the page template selected depends on the taxonomy term from category SiteOrganization - the value you select for the Site Organization field on each page.
  if ($term->tid == 19) {
    include 'page-main.tpl.php';
    return;
  }


To create a new section for the site:
Make a new taxonomy term under category SiteOrganization
http://www.crcresearch.org/admin/content/taxonomy
Determine the term id code (tid) of the new term.  (Hold your mouse over the edit vocabulary link beside the new term in the list of terms.  The term id code is the number at the end of the link that shows up in the status bar at the bottom of the window.)
Then make a new page template by copying and modifying an existing one.
In page.tpl.php, insert code like the above.  You have to change the value of tid and the file name on the include line.
Upload the new page template and the modified page.tpl.php

For other types of content (views, forums, etc.) the logic is at the end of page.tpl.php.
arg(0) is the first part of the page's url after crcresearch.org/
so for page http://www.crcresearch.org/blog/drg
arg(0) is blog
and arg(1) drg

Royal Roads UniversityAbout Us | Community Tools | Interviews & Publications | What's New |   ©2006