[SOLVED] Finding node's parent ID

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
shmoyko
New Member
New Member
Posts: 9
Joined: Sat Mar 13, 2010 11:59 am

[SOLVED] Finding node's parent ID

Post 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
Last edited by shmoyko on Wed May 05, 2010 7:42 am, edited 1 time in total.
Peciura

Re: Finding node's parent ID

Post by Peciura »

Try CGSimpleSmarty module or {content_dump} tag
shmoyko
New Member
New Member
Posts: 9
Joined: Sat Mar 13, 2010 11:59 am

Re: Finding node's parent ID

Post by shmoyko »

Thank you.
CGSimpleSmarty {$cgsimple->get_parent_alias()} does the trick.
Post Reply

Return to “The Lounge”