UDT - name = "categories"
Code: Select all
cms_utils::get_module('CGBlog');
$blogcategories = cgblog_ops::get_category_list(FALSE,null,FALSE);
$catarray = array_combine($blogcategories, $blogcategories);
return $catarray;Code: Select all
{content_module module="ECB" field="dropdown_from_udt" block="tagselect" label="Select tags" udt='categories' size="50" multiple="true" assign='tagselect' tab='Tags'}
What I would like to do, is make a similar UDT but to ONLY pull out CHILDREN of a specific catgeories.
ie:-
1) Get CGBlog categories
2) Find specific category
3) Return array of ONLY the children of this specific category
Code: Select all
$blogcategories[id] => 85
[name] => blah
[parent_id] => -1 [item_order] => 87
[hierarchy] => 00087
[long_name] => blah
[description] =>
[depth] => 1
Any help greatly appreciated
Thankyou

