31
mktwain124
Re: Adding Links in the Main Menu
  • 2003/2/9 17:08

  • mktwain124

  • Just popping in

  • Posts: 44

  • Since: 2002/9/27


thanks, sitekeep...I forgot to include that part.

To summarize the procedure, clone the default theme with Admin Theme Manager ["Themes"]. In the Templates column of your cloned theme, click on System [LIST(22)], click on edit for system_block_mainmenu.html and add one of the following scripts either before the <tr> tag which puts your links before the regular menu items or after the </tr> tag which puts them at the bottom of the menu block:

[size=small]
<!-- 
Link to file on your site: -->
  <
tr>
    <
td id="mainmenu">
      <
class="menuMain" href="<{$xoops_url}>/path_to_your_file">Link Title</a>
    </
td>
  </
tr>
 
 
<!-- 
Link to outside url: -->
  <
tr>
    <
td id="mainmenu">
      <
class="menuMain" href="foo.bar.com">Link Title</a>
    </
td>
  </
tr>
[/
size]





32
mktwain124
Re: Adding Links in the Main Menu
  • 2003/2/8 16:03

  • mktwain124

  • Just popping in

  • Posts: 44

  • Since: 2002/9/27


Quote:
w4z004 wrote:
add the html links to the template of the main menu.


This is perhaps the best feature of x2! In most cases, to change the visual presentation of a block, you will only need to modify [make a copy of the original template first ] the smarty template file for that block and not the x2 code itself. It's simpler to accomplish for non-PHP coders and it's safer-to assure compatibility with future upgrades. Great vision devs!




TopTop
« 1 2 3 (4)



Login

Who's Online

216 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 216


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