1
snowmaq
about Main Menu
  • 2004/10/14 23:35

  • snowmaq

  • Just popping in

  • Posts: 16

  • Since: 2004/10/4


I'm just a novice to XOOPS so this might seem to be an easy question but I don't know.

As far as I understand, the xoop's main menu will display items that link to the active-installed module, right? Well,... how about if I want additional menu items, resided in main menu, which don't link to the XOOPS module but to other program in the same site, let say wiki or photo gallery.
How could I do this?

Thank so much

2
tjnemez
Re: about Main Menu
  • 2004/10/15 0:40

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


to simply add to main menu you will need to edit your system_block_mainmenu.html template to look like this:

<table cellspacing="0">
<tr>
<td id="mainmenu">
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a> <{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
<a class="menuMain" href="<{$xoops_url}>/">yourtext</a>
</td> </tr>
</table>

add as many as you like

3
sayakoreante
Re:about Main Menu

ey,

You've made a page and would have that link in my Main Menu. That works like the way you've said. But now the next step:

The new page will be shown in a new window and NOT in your XOOPS system. So when you press on the link, you will leave your XOOPS site...

Any solution for that?

4
wizanda
Re:about Main Menu
  • 2004/10/15 13:11

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Yeh use multi menu you can set the item selected as blank,self, ect so it can open in a new window

makes it far easier then editing the main menu code and then you can add stuff as you desire

5
sayakoreante
Re:about Main Menu

yeah, but that's JUST what I NOT want, in a new window...
I've solved it now, just downloaded de VIRII module, changed the contents of the files and installed the module.

Now XOOPS sees the modified VIRII module as my new page and intergrate it in the XOOPS system... sweet dude..

6
tjnemez
Re:about Main Menu
  • 2004/10/15 16:17

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


Quote:
The new page will be shown in a new window and NOT in your XOOPS system. So when you press on the link, you will leave your XOOPS site...


not always, depends on what what the link is for. i.e.,i have added a login link to my main menu and have also created custom blocks using menumain and it works fine as long as the links are within. for wrapping and linking then you could use tinycontent or similar module.

7
snowmaq
Re:about Main Menu
  • 2004/10/15 16:34

  • snowmaq

  • Just popping in

  • Posts: 16

  • Since: 2004/10/4


Umm
Not as easy as I thought...well...thanks anyway.
I need time to study both the template stuff and will try the multi menu module
Have a good day/night & weekend

8
snowmaq
Re:about Main Menu
  • 2004/10/15 16:38

  • snowmaq

  • Just popping in

  • Posts: 16

  • Since: 2004/10/4


A little more,
I saw the news announcement about MMA Global launches XOOPS. (http://www.mmaglobal.com/)
They don't have System Main Menu, right?
What do they use?

(sorry, too many questions)

9
tjnemez
Re:about Main Menu
  • 2004/10/15 17:04

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


as i said above you can create custom blocks with links using tiny content, free content and use the main menu system to style them, or you can use something like mutimenu. i always use free content for no reason. xf-section can also be utilized.

10
Draven
Re:about Main Menu
  • 2004/10/16 6:58

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

snowmaq wrote:
A little more,
I saw the news announcement about MMA Global launches XOOPS. (http://www.mmaglobal.com/)
They don't have System Main Menu, right?
What do they use?

(sorry, too many questions)


For MMaGlobal.com I just made a custom block that had all the links I needed in it.

Login

Who's Online

208 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 208


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