Add function for accessing category description from page object
This commit is contained in:
parent
052efa6603
commit
e36ce4328c
@ -222,6 +222,13 @@ class Page {
|
|||||||
return $this->getValue('category');
|
return $this->getValue('category');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returns the category description
|
||||||
|
public function categoryDescription()
|
||||||
|
{
|
||||||
|
global $dbCategories;
|
||||||
|
return $dbCategories->getProperty($this->categoryKey(), 'description');
|
||||||
|
}
|
||||||
|
|
||||||
// Returns the field from the array
|
// Returns the field from the array
|
||||||
// categoryMap = array( 'name'=>'', 'list'=>array() )
|
// categoryMap = array( 'name'=>'', 'list'=>array() )
|
||||||
public function categoryMap($field)
|
public function categoryMap($field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user