1
rickh
[howto] empty link in mainmenu
  • 2004/4/11 20:43

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


Hello,

I want to make a link in the main menu without having a module linked to it. With the item 'Home' is this possible (on 'home' i have only shown blocks with i.e. HTML content), but i want another menu-item in the main menu like that. Just a kind of 'dummy link'

Just editting the template has no use i think, because i want to define in what menu-item certain blocks must appear.

Is that possible??

2
rickh
Re: [howto] empty link in mainmenu
  • 2004/4/13 14:01

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


no one?

I've tried to manually edit the databasefields with phpmyadmin, but it wont work..

maybe someone can make a dummy module with no contents??

3
rabideau
Re: [howto] empty link in mainmenu
  • 2004/4/13 14:12

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


I'm not real clear on what you are trying to do...

If you want a menu that allows you to specify non-traditional XOOPS links (ad hoc links) I recommend using a module called multimenu. If you are trying to remove modules from the main menu use Syst Admin==> Modules and set the hide function.

Additonal help is available to the left in both User and Install guide, assuming I missed what you're trying to accomplish

4
Mithrandir
Re: [howto] empty link in mainmenu

If you want a dummy link in main menu to display a certain page and/or with configurable blocks visible on this page, then you would need a dummy module for it to be possible to set blocks visible on this link's page without them being visible on all pages.

You would just need a short xoops_version.php with a little content to say that it has a main menu entry, but no admin and that it should point to the page, you want displayed by following this link.

If you are stomped by this, I'll write some more thorough code in a few hours, when I have time for it.

5
rickh
Re: [howto] empty link in mainmenu
  • 2004/4/13 16:04

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


hey,

I've tried something and it seems to work (looked at other mods)

xoops_version.php:

Quote:

$modversion['name'] = dummy;
$modversion['version'] = 1.0;
$modversion['author'] = "rick";
$modversion['help'] = "xoopsfaq.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 1;
$modversion['image'] = "images/slogo.png";
$modversion['dirname'] = "dummy";

// Main contents
$modversion['hasMain'] = 1;

?>


index.php:

Quote:


include '../../mainfile.php';

include XOOPS_ROOT_PATH.'/header.php';

include_once XOOPS_ROOT_PATH.'/footer.php';
?>


Some things have to be finetuned, but it works Maybe u can give me some tips to make it more efficient or something?

6
Mithrandir
Re: [howto] empty link in mainmenu

lose the ['help'] and ['image'] - not necessary.

Apart from that, it is exactly as I would suggest it

Login

Who's Online

172 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

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

Latest GitHub Commits