menu.ini [Leftmenu_design]
The block [Leftmenu_design] of settings/menu.ini, with 9 setting(s).
Definition of the custom topmenu
Note: This is just an example[Topmenu_custom]
Uses a custom navigation part (See list NavigationPart group above)
NavigationPartIdentifier=ezcustomnavigationpart
Name=Custom
Tooltip=A custom tab for Exponential
URL[]
URL[default]=custom/list
Enabled[]
Enabled[default]=true
Enabled[browse]=false
Enabled[edit]=false
Shown[]
Shown[default]=true
Shown[edit]=true
Shown[navigation]=trueWe don't show it in browse mode
Shown[browse]=false
[Leftmenu_example]
Translated name value (so use eng-GB here)
Note: If you wish to have the name translatable you will need to
add string hidden in a template somewhere with |i18n() call or
a dummy PHP file with the following in it:
ezpI18n::tr( 'design/admin/parts/example/menu', 'Example menu', 'Leftmenu name for example menu' );
This will cause the ezlupdate to include it in the .ts file.
Note2: For custom menues (on custom tabs) you can also pass a hash of translations to ini_menu.tpl
so it will use strings in that if name of menu or link index exists in the hash.
(see design/admin/templates/parts/setup/menu.tpl for example)
Name=Content Menu
Policy list for menu items, hides box if false
value an be either in "<node_id>" or "<module>/<function>" form ("<module>/*" for a module without
policy functions)
PolicyList[]=<value>
List of link URLs and index, index is used for LinkNames and PolicyList settings
Links[]
Link name, see note on 'Name' for how to translate
LinkNames[<Links_index>]=<value>
Policy list pr link using index from Links array as part of name and
value an be either in "<node_id>" or "<module>/<function>" form
Menu item is disabled (no link) if this returns false
PolicyList_<Links_index>[]=<value>
Enabled sets if menuitem is clickable in current ui_context or value 'default'
By default 'default' is considered true and 'edit' + 'browse' is false
Enabled_<Links_index>[browse]=false
Uncomment the following to add a left menu to content area
[Leftmenu_content]
Name=Content Menu
Links[languages]=content/translations
LinkNames[languages]=Languages
PolicyList_languages[]=content/translations
Never edit settings/menu.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/menu.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/menu.ini.append.phpfor one siteaccess,extension/<extension>/settings/menu.ini.append.phpin an extension (read when the extension is active).
Name
Default: design.
# settings/override/menu.ini.append.php
[Leftmenu_design]
Name=design
*/ ?>Links
The menus of the classic site designs (visual/menuconfig, doc/eng-us/guides/classic-menu-settings.md); its page marks
the Design tab (kernel/visual/module.php)
Default: a hash of 4: look_and_feel=content/edit/54, toolbar_management=visual/toolbarlist, menu_management=visual/menuconfig, template_editor=visual/templatelist.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "Links[]" first replaces the shipped list; without it the items are added
Links[]
Links[look_and_feel]=content/edit/54
Links[toolbar_management]=visual/toolbarlist
Links[menu_management]=visual/menuconfig
Links[template_editor]=visual/templatelist
*/ ?>LinkNames
Default: an empty list.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "LinkNames[]" first replaces the shipped list; without it the items are added
LinkNames[]
*/ ?>PolicyList_look_and_feel
Default: a list of 1: 56.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "PolicyList_look_and_feel[]" first replaces the shipped list; without it the items are added
PolicyList_look_and_feel[]
PolicyList_look_and_feel[]=56
*/ ?>PolicyList_toolbar_management
Default: a list of 1: visual/*.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "PolicyList_toolbar_management[]" first replaces the shipped list; without it the items are added
PolicyList_toolbar_management[]
PolicyList_toolbar_management[]=visual/*
*/ ?>PolicyList_menu_management
Default: a list of 1: visual/*.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "PolicyList_menu_management[]" first replaces the shipped list; without it the items are added
PolicyList_menu_management[]
PolicyList_menu_management[]=visual/*
*/ ?>PolicyList_template_editor
Default: a list of 1: visual/*.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "PolicyList_template_editor[]" first replaces the shipped list; without it the items are added
PolicyList_template_editor[]
PolicyList_template_editor[]=visual/*
*/ ?>LinkIcons
The tiles of these links where the Setup overview shows this menu ([Leftmenu_setup] GroupSections[design]);
translated in design/admin/parts/design/menu
The Missing alt text link the extension expai appends here, for admin4's mega menu of the Dashboard tab
([Leftmenu_my_mega] adds this menu to its group "ei")
Default: a hash of 6: look_and_feel=palette, toolbar_management=tools, menu_management=menu-button-wide, template_editor=code-square, templates=file-earmark-code, expai_alttext=images.
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "LinkIcons[]" first replaces the shipped list; without it the items are added
LinkIcons[]
LinkIcons[look_and_feel]=palette
LinkIcons[toolbar_management]=tools
LinkIcons[menu_management]=menu-button-wide
LinkIcons[template_editor]=code-square
LinkIcons[templates]=file-earmark-code
LinkIcons[expai_alttext]=images
*/ ?>LinkDescriptions
Default: a hash of 6: look_and_feel=The look of the site., toolbar_management=The toolbars and their tools., menu_management=The menus of the classic site designs., template_editor=List and edit templates., templates=The templates of the designs and their overrides., expai_alttext=Images without alternative text, and suggestions for it..
# settings/override/menu.ini.append.php
[Leftmenu_design]
# an empty "LinkDescriptions[]" first replaces the shipped list; without it the items are added
LinkDescriptions[]
LinkDescriptions[look_and_feel]=The look of the site.
LinkDescriptions[toolbar_management]=The toolbars and their tools.
LinkDescriptions[menu_management]=The menus of the classic site designs.
LinkDescriptions[template_editor]=List and edit templates.
LinkDescriptions[templates]=The templates of the designs and their overrides.
LinkDescriptions[expai_alttext]=Images without alternative text, and suggestions for it.
*/ ?>Related
Generated by ./console exp:help:examples from settings/menu.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.