1
eoviedo
Calling variables in the Menu
  • 2005/7/21 11:13

  • eoviedo

  • Documentation Writer

  • Posts: 6

  • Since: 2003/5/5 1


I would like to make a site more accesible using an access key combination (Alt key + number) for every link in the menu.

I need to define that access key for all modules and calling it in the template of the block menu.

I tried this for the news module:

.- In the xoops_version.php added the next line:

$modversion[\'config\'][1][\'accesskey\'] = \'3\';

'3' Is its position in the menu.

.- In the system_block_mainmenu.html, for building every link:

<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/" accesskey="<{$xoopsModuleConfig['accesskey']}>"><{$module.name}></a>

But it does not work. When I see the source in the web browser the parameter for the accesskey is empty.

Any help?

2
Mithrandir
Re: Calling variables in the Menu

read the Configuration paragraphs in the description of how to use the configuration features.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
kaotik
Re: Calling variables in the Menu
  • 2005/7/21 11:41

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Hi Mithrandir,
I've been reading that page, what does this do:
Quote:

Page Awareness (Implemented in XOOPS 2.2)
$modversion['pages'][1]['name'] = _PROFILE_MI_PAGE_INFO;
$modversion['pages'][1]['url'] = "filename.php";


Thanks
www.kaotik.biz

4
Mithrandir
Re: Calling variables in the Menu

Quote:
what does this do:

Sets pages that can be used to place blocks on.

for example, the Profile module:
// Page Awareness
$modversion['pages'][1]['name'] = _PROFILE_MI_PAGE_INFO;
$modversion['pages'][1]['url'] = "userinfo.php";
$modversion['pages'][2]['name'] = _PROFILE_MI_PAGE_EDIT;
$modversion['pages'][2]['url'] = "edituser.php";
$modversion['pages'][3]['name'] = _PROFILE_MI_PAGE_SEARCH;
$modversion['pages'][3]['url'] = "search.php";

means that the userinfo, edituser and search pages will be independently available as pages to put blocks on in blocks administration.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

Login

Who's Online

233 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 233


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