1
gbrackett
Creating Menu Entries
  • 2004/6/29 17:27

  • gbrackett

  • Just popping in

  • Posts: 1

  • Since: 2004/6/29


Is it possible in XOOPS 2.07 to add entries to the main menu that do not derive from a module (i.e., that link to a specific URL either internal -- like a specific article -- or external)?
Alternatively, is it possible to create blocks with additional menus in them (that look like the main menu but with other names) in which the items are linkable to URLs as well as to modules?

2
tjnemez
Re: Creating Menu Entries
  • 2004/6/29 17:44

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


this is a copy of the template system_block_mainmenu.html:

<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}>/your path">your text</a>
</td> </tr>
</table>

eg: <a class="menuMain" href=" <{$xoops_url}>/user.php path">Login</a>

external: <a class="menuMain" href=" <{$xoops_url}>/your path" target="_blank">your text</a>

this is assuming you have cloned your templates. the bold text is where you add your link and you can add as many as you like.

3
Anonymous
Re: Creating Menu Entries
  • 2004/6/29 17:58

  • Anonymous

  • Posts: 0

  • Since:


This question gets asked so much....I have in fact wondered this myself.

But the real question is why isn't this part of the XOOPS core module base? i realize that there are third party modules that can do this but it can be hard to locate them at times.

I am just surprised that is all.

4
davedorm
Re: Creating Menu Entries
  • 2004/6/29 21:01

  • davedorm

  • Just popping in

  • Posts: 30

  • Since: 2004/5/9 1


I added something to my menu but it is available to all users, not just those logged in or registered. I want to make this item available to only registered users. Any ideas?

5
xpider
Re: Creating Menu Entries
  • 2004/6/29 21:10

  • xpider

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/9 2


I have seen new links added to the main menu to outside links as a module. I think it is being used as a one page module with a redirect. I am not sure of this though. But I have seen it used for phpbb forums and before your actually connected to the forum it shows a redirect page. And when it is used as a module you can control permissions to the link. I have asked someone using such a module and I will come back as soon as I find out and post my findings. Until then if anyone knows the mod that I'm talking about or a similar one I myself would like to know.

6
DobePhat
Re: Creating Menu Entries
  • 2004/6/30 2:10

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


All you need to do is create a custum block with HTML.

And as TJ said...
but more specifically...
just use the style rules

IE

<td id="mainmenu">
<a class="menuTop" href="your url whatever">that Urls Name in this case its a heading like Home</a>


<a class="menuMain" href="Same">more of the same different style hierarchy</a>
<a class="menuSub" href="even more of the same yet different style">its name</a>

So you see its mainly the: "a class"...and a td style rule....
Apply these to a custom block in html mode..and you get another menu system...that looks like you main one. The difference being that they are typically direct links.
(without the modules sub headings as you go)

If you don't feel like doing that...you might look at
those other menu systems

Login

Who's Online

143 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 143


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