display root category name

11 posts by 2 authors in: Forums > CMS Builder
Last Post: August 25, 2011   (RSS)

By Jason - August 25, 2011

Hi,

If you know the record number of the root element, you can use the 'rootCategoryNum' option in getCategories.

For example
list($categoryRecords, $selectedCategory) = getCategories(array(
'tableName' => 'categories',
'rootCategoryNum' => 23,
));


This will return all of the children of category number 23 into $categoryRecords.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/