1
Martle
Link to HTML in main menu
  • 2005/3/18 15:00

  • Martle

  • Just popping in

  • Posts: 27

  • Since: 2004/6/9 7


Hi

I would dearly love to place a link in the Main Menu of my XOOPS site to an HTML document. Is there any way that this could be done?

Martin's Place

Thanx in advance

2
tjnemez
Re: Link to HTML in main menu
  • 2005/3/18 16:01

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


edit your system_block_mainmenu.html template and add link as in example below (bold)

<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}>
<a class="menuMain" href=" <{$xoops_url}>/">your link text</a>
<!-- end module menu loop -->
</td> </tr>
</table>

this is assuming you have cloned your templates so that they can be edited. and, have added a static content page

if you need help on cloning your templates see this:

http://www.dcdezines.ca/articles-article.articleID-7.htm

to add static content create a php file myhtml.php or whatever:

<?php
include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 0;
?>
add your html here
<?
include(XOOPS_ROOT_PATH.'/footer.php');
?>

3
Martle
Re: Link to HTML in main menu
  • 2005/3/18 16:35

  • Martle

  • Just popping in

  • Posts: 27

  • Since: 2004/6/9 7


Thanx for the prompt reply tjnemez.

Login

Who's Online

161 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

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

Latest GitHub Commits