1
straza3000
Sub Menus?
  • 2005/6/21 13:16

  • straza3000

  • Just popping in

  • Posts: 2

  • Since: 2005/6/20


Hello!

I'm new to xoops. I've been searching and trying... but

I know - it's sure documented somewhere but I just cannot find it:
HOW DO I MAKE A SUBMENU - I've seen pages made with xoops, they had nice menu on the left and when you clicked on the selection it expanded and showed submenus.

Now, how can you do that? Heck I don't even find I "menu" editor - to create my _own_ entries in menu. I can add those from the modules: news, contat us,... but not let's say: Sports (just an example). Where is that function? Where do you do that? I cannot find that... (I feel a little stupid - working with computers now for almost 20 years and this happens to me).

Ok:
1. How to edit/make own menu entry (see above: "Sports")?
2. How to make submenus of that menu (let's say: basketball, soccer, boxing,...)?

Please, can someone help me?
I know it must be soooo easy, but I just can't figure it out. And yes: I spent two days reading, trying, searching,... nothing.

Hope someone helps me out! Thanks in advance!

--
Zorzi

2
McNaz
Re: Sub Menus?
  • 2005/6/21 14:13

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


There are two places you can have submenus:

1. In a module's menu. These submenus are defined in a module's xoops_info.php file in the module's root directory. You specify the following two arrays:

$modversion['sub'][1]['name'] = SUBMENU_NAME
$modversion['sub'][1]['url'] = "put_you_link_here.php";

2. If you are making your own block with links and want to have a menu and submenu effect then all you have to do is use the two [a] classes:

a.menuMain for your main menu and
a.menuSub for you sub menu

in html
<class="menuMain" href="link.php">Sportsa>
<
class="menuSub" href="sublink.php">Soccer(football)a>


HTH.

3
aharon
Re: Sub Menus?
  • 2005/6/21 14:26

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


I think you might want to play with multimenu: https://xoops.org/modules/news/article.php?storyid=2164

Good luck!

Aharon

4
Watdehek
Re: Sub Menus?
  • 2005/6/21 15:07

  • Watdehek

  • Friend of XOOPS

  • Posts: 130

  • Since: 2005/2/21


You can also install additional modules like WfChannel or TinyContent to achieve this.

5
straza3000
Re: Sub Menus?
  • 2005/6/22 6:58

  • straza3000

  • Just popping in

  • Posts: 2

  • Since: 2005/6/20


Quote:

McNaz wrote:
There are two places you can have submenus:

1. In a module's menu. These submenus are defined in a module's xoops_info.php file in the module's root directory. You specify the following two arrays:

$modversion['sub'][1]['name'] = SUBMENU_NAME
$modversion['sub'][1]['url'] = "put_you_link_here.php";

2. If you are making your own block with links and want to have a menu and submenu effect then all you have to do is use the two [a] classes:

a.menuMain for your main menu and
a.menuSub for you sub menu

in html
<class="menuMain" href="link.php">Sportsa>
<
class="menuSub" href="sublink.php">Soccer(football)a>


HTH.


Thanks for the answer!

1. I do not have the file xoops_info.php (!?) - and it's XOOPS last release (dl a week ago).

2.where exactly do I put the code?

--
Zorzi

6
solo71
Re: Sub Menus?
  • 2005/6/22 8:07

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Google -> "module multimenu"


7
McNaz
Re: Sub Menus?
  • 2005/6/22 8:29

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Quote:
Google -> "module multimenu"


Is a much easier way of doing it if you are new to Xoops.

Login

Who's Online

174 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits