On 3/27/2011 11:16 AM, dvector wrote:

Could someone give me a pointer to get a UL displayed in a theme block
for habari RC3?

There's a function in the Format class that accepts a term tree and outputs it as a UL:

$out = Format::term_tree($tree, 'tree_name', array());

You'll want to look at the function a bit to have an idea of what the values for that array should be, since you'll definitely need to pass something in to tell term_tree how to format the terms if you want them to link somewhere.

You should have a look at the termmenu plugin, which uses this method to output a term tree in a block as a menu.

Owen

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to