1
ThomiR
Changing Main Menu entries problem
  • 2005/8/18 22:56

  • ThomiR

  • Just popping in

  • Posts: 4

  • Since: 2005/8/18


Hi,

I'm trying to change the name of some of the links int he main menu block on my XOOPS site. I found several previous forum questions on the same topic. They all suggested that I modify the file "modules/system/templates/blocks/system_blocks_mainmenu.html", manually entering in the link to the module (in my case it's the "NewBB 2.0" module.

Then All I'd have to do is to stop that module displaying in the menu via the administration interface.

Well, I modified the file, re-uploaded it to the site..... and nothing happens! I've tried everything from re-generating the blocks from the templates, re-changing them, clearing the browser cache.... now I'm really stuck.

my system_block_mainmenu.html now looks like this:

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}>a>
      [
b]<class="menuTop" href="<{$xoops_url}>/modules/newbb/">Forumsa>[/b]
      
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}>a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>"><{$sublink.name}>a>
        <{/foreach}>
      <{/foreach}>
      
    td>
  tr>
table>



Can anyone see anything wrong with this? any advice on how to priceed?

Finally, are there any plans to make modifying the menu entry names any easier? perhaps with a tool in the administration interface?


Thanks.

2
rowdie
Re: Changing Main Menu entries problem
  • 2005/8/18 23:46

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


It is easier than this. In admin->modules admin just change the name of the installed module (under the module icon). Then press 'submit'.

Doing it through the template, you need to update the system module. Or delete the templates from templates_c folder, it will regenerate the template using your changes. Just be sure not to delete the index.html file from that folder. And backup the files first, just in case - always a good habit to get into.

Rowd

3
ThomiR
Re: Changing Main Menu entries problem
  • 2005/8/19 0:25

  • ThomiR

  • Just popping in

  • Posts: 4

  • Since: 2005/8/18


DOH!

That was dumb...

Thanks...

Login

Who's Online

284 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 284


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