1
EyeKeeper
** AGAIN ** hide custom sub-menus
  • 2004/1/26 18:36

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello folks,

I know this topic has been written many times already... but I need some help...
I created a custom block, with custom sub-items that should be only shown when the user clicks on the menu items... similar to what happens to the news, forums, etc module...
But the difference is that the sub-items are not going to be dynamic... I want them just to be hidden.
Here is what I did (no problems at all).

Quote:

<div class="blockContent">
<table cellspacing="0" width="100%">
<tr>
<td id="mainmenu">
<a class="menuTop" href="{X_SITEURL}">Home</a>
<!-- start module menu loop -->
<a class="menuMain" href="{X_SITEURL}">Main Item 2</a>
<a class="menuSub" href="{X_SITEURL}">Sub-item 1</a>
<a class="menuSub" href="{X_SITEURL}">Sub-item 2</a>
<!-- end module menu loop -->
</td>
</tr>
</table></div>


How can I make on this custom block, that the items are shwon when the main item is selected?
Thanks,

RedEye

2
domineaux
Re: ** AGAIN ** hide custom sub-menus
  • 2004/1/26 19:00

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


Look in the downloads...

DynaMenu...it does what you're asking


3
JackJ
Re: ** AGAIN ** hide custom sub-menus
  • 2004/1/26 19:13

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Edit: misssed the domineaux post, that might be better.


The XOOPS submenus are tied in with sub-menu code in the xoops_version.php for each module as you may be aware.

The only way I could find do this without using some other javascript or php solution, was using multiple blocks in the same position, with different sub-menu code in the destination blocks.

see this threadhttps://xoops.org/modules/newbb/viewtopic.php?topic_id=14712&forum=3#forumpost60550

I don't know if this is of any use to you, works fine for me though. Perhaps someone else will have a php or javascript suggestion.

4
EyeKeeper
Re: ** AGAIN ** hide custom sub-menus
  • 2004/1/26 19:18

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


I saw this thread...
but I couldn't get to work with custom sub-items

Login

Who's Online

209 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits