[solved] Drop down menu issue!
Posted: Tue Oct 25, 2011 11:19 pm
Hi guys, im running the latest cmsms on my xampp server and everything is working fine.
The problem I have is my menu, ive intgrated it into cmsms and it adds a new page in the menu when i create a new page which is fine.
The problem is that when I create a child page it doesnt show it in a drop down menu as it would do normally, it would just appear as another button under the parent button.
Im using the simple_navigation.tpl, don't know why, but its the only one that works.
Near the end bit of the tpl file I have this:
Which generates the button ofcourse.. Now in my HTML I use this code to create the drop down button:
I used that and added it to the line in the .tpl file so it looks like this:
This works and the drop down menu appears with all the css working fine. Although the problem still persists, say the child page is called 'test' and the parent is 'home' the 'test' page still appears under the parent 'home' although it does appear in the drop down menu also when hovering over the 'home' page.. Now I want to get rid of the one that is not in the drop down menu and appears under the parent page.
If anyone could help me I would highly appreciate it! I absolutey love cmsms but this is just letting me down.
I'm assuming this has something to do with the code in the simple_navigation.tpl file as my html and css work fine.
The problem I have is my menu, ive intgrated it into cmsms and it adds a new page in the menu when i create a new page which is fine.
The problem is that when I create a child page it doesnt show it in a drop down menu as it would do normally, it would just appear as another button under the parent button.
Im using the simple_navigation.tpl, don't know why, but its the only one that works.
Near the end bit of the tpl file I have this:
Code: Select all
{else}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a>
Code: Select all
<ul class="dropdown">
<li><a href="#about/1">about this item</a></li>
</ul>
Code: Select all
{else}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a><ul class="dropdown">
<li><a href="{$node->url}">{$node->menutext}</a></li>
</ul>
If anyone could help me I would highly appreciate it! I absolutey love cmsms but this is just letting me down.

I'm assuming this has something to do with the code in the simple_navigation.tpl file as my html and css work fine.