1
stelth
how to add a link into the main menu?
  • 2004/9/7 17:42

  • stelth

  • Just popping in

  • Posts: 5

  • Since: 2004/1/16


hi all

is it possible to add just a link directly under main menu?
in the same level as news, forum and so on in the main menu, i want the link called e.g "FTP site", and when ppl click it they open a new window to the ftp login.


thanx

2
tl
Re: how to add a link into the main menu?
  • 2004/9/7 22:55

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Xoops creates the Main menu automatically by querying the database. You would have to create a custom main menu block.

3
jfebus
Re: how to add a link into the main menu?
  • 2004/9/7 22:59

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


I just copy the html generated for the main menu and out it into a custom html block adding several new links.

Beware that the new custom html block will not expand when selecting the modules from it.

Best Regards,

4
T-Tech
Re: how to add a link into the main menu?
  • 2004/9/7 23:38

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


Go to your templates manager and select the main menu block and you will see an area at the top where you may add new links. Be sure not to mess with the main menu code.

Like so:
<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}>a>
      <
class="menuMain" href="http://yourlinkhere.com/">YourLinkTexta>
      
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}>a>
        <{/foreach}>
      <{/foreach}>
      
    td>
  tr>
table>

Login

Who's Online

380 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 380


more...

Donat-O-Meter

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

Latest GitHub Commits