1
jporpilla
How to add addtional link
  • 2007/9/19 17:25

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


Hi, I would like to know on how to add additional link on xoops. For example by default i have news and gallery modules which is automatically present on the link. Now, what if I want to add a link "sample" and upon clicking it should went to other links. Please help me.



Thanks,

2
BlueStocking
Re: How to add addtional link

Hi jporpilla,
I Believe this same information just supplied skaboom101 on another post applies to your situation. Check it out and see if that takes care of your problem.

See this sample MainMenu link for visual location.

select template

That is the
Edit template file
File name* system_block_mainmenu.html
Description* Shows the main navigation menu of the site

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
      <!-- 
start module menu loop -->
      <{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}>
      <!-- 
end module menu loop -->
    </
td>
  </
tr>
</
table>


Above is the code you will find in the modules/system/admin.php?fct=tplsets&op=edittpl&id=20

Place your link/links within the code just before the end module menu loop, or right under the start main menu loop.

<{/foreach}>
      <{/foreach}><
a href="http://www.xoops.net.br" target="_blank">xoops03 </a>
      <!-- 
end module menu loop -->
    </
td>
  </
tr>
</
table>


Resized Image

NOTE:
If you don't get a submit button you may have a version that needs a cloned copy to work on, or there have been changes due to the theme you are using.

EXAMPLE EDIT ADDONS
in response to additional information.:
with additional Visuals

SEE:
1) Add MainMenu Link added to main menu as example above (using clone.)
2) @StudioC - Example additional menu box addition with xoops03, xoops02, and xoopers. [excellent for additional menu items that may need to be changed over time]
SEE: Example demo
https://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

3
studioC
Re: How to add addtional link
  • 2007/9/19 17:56

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


while you are working with a clone of the casic templateset you may add a single link to your mainmenu in system_block_mainmenu.html but I personally wouldn't if it isn't a link wich won't change or isn't part of the mainmenu.

Did you thought about adding a new block eg. below the mainmenu and put the link in it using bb or html?

4
Will_H
Re: How to add addtional link
  • 2007/9/19 18:30

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


May I suggest MultiMenu

5
jporpilla
Re: How to add addtional link
  • 2007/9/20 21:05

  • jporpilla

  • Just popping in

  • Posts: 48

  • Since: 2005/1/10


My plan is in the main page I have the Main Menu like Home, Gallery. Now if I would like to add one more link like CrimeMapping with href="http://localhost/crimemapping" , how willI do that?

6
trspice
Re: How to add addtional link
  • 2007/9/21 1:23

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


There's nothing but science....
The Reggae Album

Login

Who's Online

257 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 257


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