Page 1 of 1

Hierarchy Manager Loop help

Posted: Mon Jun 05, 2006 11:07 am
by MikePearce
Hi all,

I'm having trouble with hierarchy manager - I would like to be able to bubble back through the tree and find out what the name of the top parent is, ie. if I am on 3.2.1.2, then follow it all the way back to find out what the name of 3 is, then use this code as a User defined tag for some template shinanegans elsewhere.

I was using the code here: http://forum.cmsmadesimple.org/index.ph ... 778.0.html as a starting point, but can't get a while loop working.

Thanks in advance for your help.

Cheers

Mike