1
davidtillyer
Adding links to MAIN Menu

Hi all,

How do I add clickable links to the "main" or ANY other menu I have on my site?

Then how do i connect that to a page on my site or an external page?

DT

2
sbkiller
Re: Adding links to MAIN Menu
  • 2005/3/31 1:03

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


First of all, you can use multimenu module to add links and unfortunaly you have to link to other pages manually knowing the links (URL).

My comment, XOOPS is missing this thing and this is also one of the reason that I don't use XOOPS anymore. :)

3
tjnemez
Re: Adding links to MAIN Menu
  • 2005/3/31 2:08

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


not sure what the previous post is about but, 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>

the bold would be what you add and add as many as you like

4
davidtillyer
Re: Adding links to MAIN Menu

Hi Thank you, for the kind advise, how do i then link it to a file, eg: "Company Histor" and then would I add this file page to the root directory? and what format is best HTML ot PHP?

DT

5
tjnemez
Re: Adding links to MAIN Menu
  • 2005/3/31 15:25

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


you could add a static page like this:

<?php
include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>
<html>
<body>
<div style="padding: 5px;">
<h4>ABOUT MY SITE</h4>
</div>
</body>
</html>
<?
include(XOOPS_ROOT_PATH.'/footer.php');
?>

save this as about.php or whatever and upload to XOOPS root directory

add a link as indicated in my prior post

Login

Who's Online

156 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

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

Latest GitHub Commits