Index: trunk/kernel/include/parseditem.php
===================================================================
diff -u -r842 -r845
--- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 842)
+++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 845)
@@ -78,15 +78,22 @@
$field = strtolower($element->attributes["_field"]);
switch($field)
{
- case "id":
+ case 'primarycategory':
+ $db =& GetADODBConnection();
+ $sql = 'SELECT CachedNavbar FROM '.$objCatList->SourceTable.' WHERE CategoryId = '.(int)$this->GetPrimaryCategory();
+ $ret = prompt_language($objConfig->Get("Root_Name"));
+ if( $this->GetPrimaryCategory() ) $ret .= '>'.$db->GetOne($sql);
+ break;
+
+ case "id":
$ret = $this->Get($this->id_field);
break;
case "resourceid":
if(!$this->NoResourceId)
$ret = $this->Get("ResourceId");
break;
case "category":
- $c = $objCatList->GetItem($this->Get("CategoryId"));
+ $c = $objCatList->GetItem($this->Get("CategoryId"));
if(is_object($c))
{
$ret = $c->parsetag($element->attributes["_cattag"]);
@@ -440,10 +447,10 @@
else
{
$output = $this->ParseObject($tag);
- //echo $output."
";
+ //echo $output."
";
if(substr($output,0,9)=="Undefined")
{
- $output = $tag->Execute();
+ $output = $tag->Execute();
// if(substr($output,0,8)="{Unknown")
// $output = $raw;
} return $output;