Page 1 of 1
[SOLVED] How to add a global content block to dropdown menu
Posted: Sat Apr 13, 2013 6:46 pm
by blackhawk
From cmsms 1.11.4, if we are using a copy of the standard cmsms menu
simple_navigation.tpl, how can we append a global content block right after the following element...
...This way the code looks simular to this...
Code: Select all
...
<li>
<a class="menuparent" href="http://dev.mdt/index.php?page=nested-menu">...</a>
<ul class="unli">....</ul>
<div class="my-global-content-block">...</div>
</li>
....
Thanks!
Re: How to add a global content block to dropdown menu
Posted: Sat Apr 13, 2013 7:15 pm
by blackhawk
I almost have it with something like this inside of cssmenu_ulshadow.tpl, which I am using as my {menu} in my template...
Code: Select all
....
{if $classes="menuparent"}
{global_content name='demo'}
{/if}
</li>
</ul>
<div class="clearb"></div>
</div>
{/if}
...
but how do i check for the parent li id selector name in my conditional statement? this way my block is under a certain menu tab, not all of them?
Thanks
Re: How to add a global content block to dropdown menu
Posted: Sat Apr 13, 2013 8:24 pm
by velden
can't work with the 'depth' variable which is used in the menu template?
Re: How to add a global content block to dropdown menu
Posted: Sat Apr 13, 2013 9:09 pm
by blackhawk
Thanks for the feedback velden, but I don't want just know the depth, but I want the know who daddy is

Re: How to add a global content block to dropdown menu
Posted: Tue Apr 16, 2013 9:15 pm
by Dr.CSS
There is {$node->alias} and $node->id, look at menu template help when editing menu template...
Re: How to add a global content block to dropdown menu
Posted: Thu Apr 18, 2013 3:54 am
by blackhawk
Thank you Dr. CSS, that helps me out!