I've read the useful wiki info on how to add sub menus to left menu and it displays ok, but is it possible to make it so sub menu only appears when the containing topic is clicked like the way su categories works in QuickCart?
I've got it working ok with sub menu all time but I now want it to only show the sub menu items when main item is active. Similar to the way QuickCart left menu categories work.
Thanks
rubdub
2007-02-28 11:52
Treewood Sorry for above post - I was being stupid. I made submenu in left like your wiki and it all works ok. I had put my test as a sub menu of home page so of course it will show when I go to site. Sorry for trouble
Smith - hmm... maybe contact with us and we will do it for You. It will be faster and easier for You.
Bob30
2007-04-06 10:31
Smith :
For one sub-menu level ...
In index.php, search and replace : $sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 ); with : $sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 1 );
In menu_1.tpl in templates folder, copy the block '<!-- BEGIN LIST_0 --> ....... <!-- END LIST_0 -->' and paste it after, replace LIST_0 with LIST_1 (twice).
That's all folks !
rubdub
2007-04-09 14:10
...and for two sub-menu level ...
In index.php, search and replace : $sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 ); with : $sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 2 );
In menu_1.tpl in templates folder, copy the block '<!-- BEGIN LIST_0 --> ....... <!-- END LIST_0 -->' and paste it after, replace LIST_0 with LIST_1 (twice). and repeat this again with LIST_2 (twice).
i must be stupid, or what, i try it by this tip, by tips and tricks... and submenu is not work for me, is anybody can send me correct index.php and menu_1.tpl files on ojean@hide.cz ? i will be crazy from this, i don't need it, but... i need to know, where i make mistake:-)
using cms lite and cms ext v 0.3...
thanks
merci
2007-05-22 12:01
ojean - maybe show what modyfications you have done, paste here code or give informations about changings you have done.
<!-- BEGIN LIST_0 --> <li class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></ li> <!-- END LIST_0 -->
<!-- BEGIN LIST_1 -->
<li class="l$aList[sStyle]" $aList[sSelected]><a id="submenu1" href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></ li> <!-- END LIST_1 -->
However the correct structural mark up for me would require another <ul> enclosing the submenu if it exists. I have tried the obvious
<!-- BEGIN LIST_1 --> <ul class="submenu_indent"> <li class="l$aList[sStyle]" $aList[sSelected]><a id="submenu1" href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></ li> </ul> <!-- END LIST_1 --> this adds a ul around each submenu list item. Can someone point me in the right direction to modify this to the following sample output <ul> <li>menu1</li> <li>menu2 <ul> <li>sub1</li> <li>sub1</li> </ul> </li> <li>menu2</li> </ul> Any help really appreciated.
merci
2007-05-25 12:53
broon - if I understand you properly, it is impossible to do as block LIST_0 and LIST_1 are independent from each other. In Q.C v 2.x there is <dt> and <dd> instead of <ul> and <li>
Hi Merci Thank you for getting back to me. We have to adhere to very strict accessibilty guidelines with our client and the menu is not a list of definitions. Is there any quick way ofadapting and styling for <ul> Thank you again