Re: Customizing Main menu
cayce-wXSeoeqP7q/[email protected] Fri, 30 Apr 2004 10:28:18 -0400
| Newsgroups | gmane.comp.cms.xaraya.ui |
|---|---|
| Message-ID | <[email protected]> |
It's really not too much of a ":(". When you create your own menu options,
you can point to a module merely by entering the module name in [ ] brackets
for the URL - like [xarbb]. This way, if the URL schema changes behind the
scenes, your menu will work correctly (same principle as using xarModURL()
function).
The only problem is that the "getmenulinks" functionality only works with
menu options generated by "display modules". This functionality creates an
automatic submenu from an array that is populated in the
xaruserapi/getmenulinks.php function for a module. If you turn off "display
modules" and create your own menu options, even using the [module name] for
the URL, getmenulinks is not called, and the submenu doesn't display.
I've coded a change to the menu block display function and template to solve
this, but John said the menu block is being re-worked, so I've held off
submitting the patch. If you'd like to see the changes, drop me a note and
I'll email them to you.
c.
Fournier Daniel writes:
> Chris Dudley wrote:
>> Fournier Daniel wrote:
>>
>>> What's the (better) way to customize the Main menu, i.e. add or remove
>>> entries?
>>> Where is it defined (DB table(s), block).
>>>
>>> Daniel
>>
>>
>> In the blocks admin bit click edit on the menu block.
>>
>> The default menu just lists all modules using the "display modules"
>> option.
>> It is envisaged for production sites that the admin would unselect that
>> option and setup their own menu using the custom menu section of that
>> block.
>
> That would be fine, it's exactly what I want.
>
>>
>> Note that "display modules" is either on or off - there is no way to
>> include or exclude specific modules.
>
> :-(
>
>>
>> miko
> _______________________________________________
> Xaraya_ui mailing list
> [email protected]
> http://lists.xaraya.com/mailman/listinfo/xaraya_ui
-------------------------------------
Support anti-Spam legislation.
Join the fight http://www.cauce.org/
-------------------------------------