Taxonomy terms in page.tpl.php

function YourThemeName_preprocess_page(&$variables) {
  foreach($variables['node']->taxonomy AS $tax_term) {   
    $variables['wowzers'] .= ", $tax_term->name";   
  }
  $variables['wowzers'] = substr($variables['wowzers'],1);  
}

After entering this in your template.php file the variable $wowzers will be availble for use within your page.tpl.php file.

Please note you can only use one preprocess function per template.tpl.php file.

 

Base href

You can set the base href from the default to the required. For example assume the following HTML code is included.

<base href="http://beamish/flat/sIFR/" />

Thereafter all references would precede with: http://beamish/flat/sIFR/

Therefore:

<script src="https://www.zerotouch.com/sifr.js">http://www.zerotouch.com/sifr.js" type="text/javascript"></script>

http://www.zerotouch.com/sifr.js" type="text/javascript">

Collapse the menu fieldset by default

Within your template.php file enter the following:

function yourthemename_node_form($form) {
 // Collapse fieldsets
 $form_elements = element_children($form);
 foreach ($form_elements as $element) {
 if ($form[$element]['#type'] == 'fieldset') { //Identify fieldsets and collapse them
 $form[$element]['#collapsible'] = TRUE;
 $form[$element]['#collapsed'] = TRUE;
 }
 }
 return drupal_render($form);
 }