Page 1 of 1

[SOLVED] Finding node's parent ID

Posted: Tue May 04, 2010 3:22 pm
by shmoyko
Hello all,

I searched for this, but couldn't find it anywhere. How does one find the parent ID of a node (if child)?

Here's what I need to do:

Please have a look at http://insearchofsound.com/index.php

First, unless the parent is "join", I need to show only the children of "artists" and "labels" in the left menu (using collapse="1" for "join").

Second, the left and right buttons need to show only for the children of "artists" and "labels".

Any ideas?

Many thanks,

Shmoyks

Re: Finding node's parent ID

Posted: Tue May 04, 2010 6:54 pm
by Peciura
Try CGSimpleSmarty module or {content_dump} tag

Re: Finding node's parent ID

Posted: Wed May 05, 2010 7:40 am
by shmoyko
Thank you.
CGSimpleSmarty {$cgsimple->get_parent_alias()} does the trick.