changing display depending on fields value
Another approach is to use MY_THEME_preprocess_node(&amp;$variables) in template.php and build your logic according to $variables array elements (e.g. $variables['field_priority']). Example:

function MY_THEME_preprocess_node(&amp;$variables) {
  if($variables['type'] == 'page') {
    $priority = $variables['field_priority'];

    if($priority &gt; 0 &amp;&amp; $priority &lt; 2) {
      // do_first_logic()
    }
    elseif($priority &gt; 2 &amp;&amp; $priority &lt; 4) {
      // do_second_logic()
    }
    // .... so on
  }
}