Index: branches/RC/core/units/category_items/category_items_tag_processor.php =================================================================== diff -u -r8929 -r11538 --- branches/RC/core/units/category_items/category_items_tag_processor.php (.../category_items_tag_processor.php) (revision 8929) +++ branches/RC/core/units/category_items/category_items_tag_processor.php (.../category_items_tag_processor.php) (revision 11538) @@ -1,20 +1,27 @@ Application->ConfigValue('Root_Name'); - $value = str_replace('&|&', ' > ', $this->Field($params)); - $ret = $this->Application->Phrase($root_phrase).( $value ? ' > ' : '').$value; - if( $this->Field( Array('field'=> 'PrimaryCat') ) == 1 ) - { + $field = $this->SelectParam($params, 'name,field'); + + $object =& $this->getObject($params); + /* @var $object kDBList */ + + $root_phrase = $this->Application->Phrase( $this->Application->ConfigValue('Root_Name') ); + $cached_navbar = preg_replace('/^Content&\|&/i', '', $object->GetDBField($field)); + $value = str_replace('&|&', ' > ', $cached_navbar); + + $ret = $root_phrase . ($value ? ' > ' : '') . $value; + if ($object->GetDBField('PrimaryCat')) { $label = $params['primary_title']; - $ret .= ' ('.$this->Application->Phrase($label).')'; + $ret .= ' (' . $this->Application->Phrase($label) . ')'; } + return $ret; } - + function GetMainID() { $object =& $this->Application->recallObject( $this->getPrefixSpecial() );