Sub Menus

rubdub

No avatar

2007-02-27 22:37

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?

treewood (OpenSolution)

Avatar: treewood

2007-02-28 08:56

rubdub - You want to display sub menu whole time?

rubdub

No avatar

2007-02-28 11:27

Hi Treewood

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

No avatar

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

Avatar: Smith

2007-03-27 22:50

I dont get it, how can i do this?

Can someone explain it to me ?

I want the submenus to be shown in the whole menu, when i click into a desent page..

treewood (OpenSolution)

Avatar: treewood

2007-03-28 10:49

Smith - http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_display_subpage_in_the_left_menu

Smith

Avatar: Smith

2007-03-29 21:52

I have tried that, but i dont get it.

Can you explain it a little bit easier for me please...

treewood (OpenSolution)

Avatar: treewood

2007-03-30 08:56

Smith - hmm... maybe contact with us and we will do it for You. It will be faster and easier for You.

Bob30

No avatar

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

No avatar

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).

ojean

Avatar: ojean

2007-05-22 09:26

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

No avatar

2007-05-22 12:01

ojean - maybe show what modyfications you have done, paste here code or give informations about changings you have done.

ojean

Avatar: ojean

2007-05-22 12:51

same, how bob30 write here...

broon

Avatar: broon

2007-05-24 17:22

Hi
Thank you ..
This works -- good for me

<!-- BEGIN LIST_0 -->
<li class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&amp;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]&amp;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]&amp;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

No avatar

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>

broon

Avatar: broon

2007-05-25 13:00

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

Back to top
about us | contact