Hi,
I built a custom menu and I can position it in a particular region using the blocks. Here's what I'm trying to achieve:
On http://www.example.com/section1, I want that block (the one that contains my custom menu) in the 'left' region.
On http://www.example.com/section2, I want that very same block to be positioned in the 'main' region.
I've been doing a lot of research and trying new modules for the past week, and I somewhat achieved that by using the Menu-Block-Split module.
HOWEVER, when I do a print_r($block);, it only shows me the 'content' and another array key before that.
I need to get information from that 'content' key, such as the node id $nid or the item id $item, and if possible, all other information that this menu item has.
Does anyone know how to this? Please?
Comments
Use the PHP appear on page
Use the PHP appear on page feature in block configuration form.
PHP appear on page feature
I've already done that. I just don't know what php code I need to enter in order to get those variables