Share » Forums » Setup & design » Left menu sub-items

Left menu sub-items

Left menu sub-items

Monday 18 December 2006 3:23:16 am - 3 replies

Author Message

Jon Staines

Monday 18 December 2006 5:46:03 am

In your if statement, try changing the $module_result.path.1 into $module_result.path.1.node_id

Alexander Petrov

Tuesday 19 December 2006 3:15:22 am

Hello Jon!

I'v changed the statement so it looks now like this:

{if or(eq($child.node_id,$module_result.node_id),eq($module_result.path.1.node_id,$child.node_id))}

But there's no effect, them menu behaviour is the same. ((

Jon Staines

Tuesday 19 December 2006 3:50:03 am

Sorry, when testing it I had set the root node id of the menu to 2, whereas you have a folder further down. You need to change the part of the path you need depending on how deep the root folder is.

If you had:

--root
  --news
    --test folder
      --child folder
        --deep folder
    --another folder
  --polls

and you wanted the left menu to look within the news folder instead of root, you would need:

$module_result.path.2.node_id

instead of:

$module_result.path.1.node_id

Just increase the number the more layers down you go.
Hope this makes sense.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu