Question:
How ro create variable for use within page.tpl.php
Within the template.php file add something like below:
function phptemplate_preprocess_page(&$vars) {
$vars['random_descriptor'] = rand(1,2);
$vars['sample_variable'] = t('Lorem ipsum.');
$vars['random_key_message'] = rand(1,3);
$vars['faq_terms'] = theme('links', $variables['taxonomy'], array('class' => 'links inline'));
// To remove a class from $classes_array, use array_diff().
//$vars['classes_array'] = array_diff($vars['classes_array'], array('class-to-remove'));
}
Then within the page.tpl.php add something like below:
<div id="key-message-<? print $random_key_message; ?>"></div>
Taxonomy: