1
steveoness
creating my own customized links in main menu block
  • 2004/7/10 4:11

  • steveoness

  • Just popping in

  • Posts: 9

  • Since: 2004/5/14


Hi, I am currently running XOOPS 2.0.7 and was wondering: Is there any way for me to add my own links to the main menu block? I currently use the TinyContent module to create the customized pages I want for each section, but haven't yet figured out a way of creating links in the navigation bar. I want to be able to put the links in the middle of the other links currently there...not all the way at the bottom or all the way at the top. If there's a module or a template edit that can enable for me to do this, can you please let me know how? Thank you so much!

2
koertzen
Re: creating my own customized links in main menu block
  • 2004/7/10 9:23

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


A quick and dirty way to do this is to edit the xoops_version.php for the TinyContent module. (Make sure that you save a copy of the original! Also make a backup of the version you are making as well. Any changes will be lost when you upgrade/update.)

The format goes like this (from the news module)
Quote:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";


Note that it's fairly simple. The first sub line, the "name" is what appears in the menu. The second line, the "url", is the link.

Good luck!

Login

Who's Online

131 user(s) are online (66 user(s) are browsing Support Forums)


Members: 0


Guests: 131


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