No edit summary
Tag: 2017 source edit
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==
The menu editor is used in various menus of the wiki ― for example in the main navigation ― to set up navigation links. An edit link appears at the end of each menu when you focus on the menu.
The menu editor is used in various menus of the wiki ― for example in the [[Manual:Extension/BlueSpiceDiscovery/Main navigation|main navigation]] ― to set up navigation links. An edit link appears at the end of each menu when you focus on the menu.


[[File:MenuEditor edit link.png|alt=menu items and activated edit link of the main navigation|center|thumb|201x201px|"Edit"-link of the menu editor]]
[[File:MenuEditor edit link.png|alt=menu items and activated edit link of the main navigation|center|thumb|201x201px|"Edit"-link of the menu editor]]


== Editing the main navigation ==
== Editing navigation and menus ==
[[Manual:Extension/BlueSpiceDiscovery|View the general introduction to the main navigation.]]
If you have set the navigation type to ''MediaWiki Sidebar'' or ''Extended MediaWiki Sidebar'' on the [[Manual:Extension/BlueSpiceDiscovery/Main navigation|main navigation]] , the navigation links are created using the menu editor.


If you have set the navigation type to ''MediaWiki Sidebar'' or ''Extended MediaWiki Sidebar'', the navigation links are created using the menu editor.
=== Opening the menu editor: ===
 
# '''Click''' ''Edit'' at the end of the navigation or menu you want to edit.  
 
## This link will become visible when you hover over existing links.  
'''To open the menu editor:'''
## Alternatively you can also open the MediaWiki page corresponding to the navigation or menu to edit
 
# If the page doesn't yet exist, a corresponding note will appear and you can create the page.
# '''Click''' ''Edit sidebar'' at the end of the navigation links. This link will become visible when you hover over existing links. If the page doesn't yet exist, a corresponding note will appear and you can create the page.


[[File:menuEditor menu does not exist.png|alt=Note for the initial creation of the sidebar page|center|thumb|650x650px|Seite ''MediaWiki:Sidebar'' anlegen.]]
[[File:menuEditor menu does not exist.png|alt=Note for the initial creation of the sidebar page|center|thumb|650x650px|Seite ''MediaWiki:Sidebar'' anlegen.]]
Line 20: Line 19:
[[File:MenuEditor getting started links.png|alt=View of the standard links system messages in edit mode|center|thumb|650x650px|The default links in the "Getting started" menu]]
[[File:MenuEditor getting started links.png|alt=View of the standard links system messages in edit mode|center|thumb|650x650px|The default links in the "Getting started" menu]]


==== MediaWiki sidebar ====
=== Visual editing mode ===
This is the standard view of the sidebar.  It displays custom menu items with no hierarchical structure. If you need a more flexible menu, switch to the [[#Enhanced MediaWiki sidebar|Enhanced MediaWiki sidebar]].
'''Click''' ''Edit'' to switch to edit mode.


{{RefLink|page=Manual:Extension/BlueSpiceCustomMenu#Visual_edit_mode|label=Editing the standard main navigation}}
​'''To add a new menu heading:'''


==== Namespace main page list====
#'''Click''' ''Add new element.''
This view automatically displays the Main Page of each content namespace.
#'''Enter''' the text for your menu header. In a multilingual wiki, you can also enter a [[mediawikiwiki:Help:System_message|message key]].


* No combination with other menu elements is possible.
{{#dpl: title=Manual:Extension/BlueSpiceDiscovery/Main_navigation|include=menulinks}}


==== Subpage tree (context-sensitive)====
=== Source editing mode ===
This view automatically shows the subpages  of a page if that page has subpages. Multi-level subpages are supported.
'''Click''' ''Edit'' source to switch to source edit mode.


* No combination with other menu elements is possible.
Entries starting with a single star ("*") create menu headings or sections while entries with two stars ("**") create links.
<pre>
* Bookmarks
** Wiki_Page1|Label
** https://externallink.com|Label
</pre>


==== Enhanced MediaWiki sidebar====
== Show for groups ==
This view shows a fully customizable multi-hierarchical menu. Here, you edit the page MediaWiki:Sidebar.json. It has the basic functionality of the [[#MediaWiki sidebar|standard MediaWiki sidebar]]. In addition, it distinguishes between the following sub elements (=node types):
 
* Internal Link
** Simply provide a link to a wiki page with an additional link label. Both the page name and/or label can be created by using a parser function.<br />  [[File:EnhancedMenuEditor-internal link.png|alt=Internal link with a variable.|center|thumb|550x550px|Internal link with a variable.]]
* External Link
** Same as internal link, but you need to provide a full url to an external website.
* Subpage tree
** You can provide the name of a page that has one or more levels of subpages. You can set the depth <code>6</code> levels deep. This means, that if you want to show the first level of subpages, you would select a depth of <code>1</code>.<br />
[[File:EnhancedMenuEditor-subpage tree.png|alt=Screenshot of the edit window for a subpage tree item.|center|thumb|550x550px|Creating a subpage tree with the Enhanced MenuEditor.]]{{Textbox|boxtype=important|header=|text=You cannot use the same link label twice for different subpage trees, because the expand/collapse functionality will break.|icon=yes}}
 
It is not possible to change the node type (=item type) after creating it. Instead, create a new item as needed and delete the unwanted item.
 
=== Show for groups ===
In addition, the visibility of a menu item can be limited to certain wiki groups. Enter a comma-separated list of existing wiki groups in the "Show for groups" field.
In addition, the visibility of a menu item can be limited to certain wiki groups. Enter a comma-separated list of existing wiki groups in the "Show for groups" field.


=== Css classes ===
== Css classes ==
You can also apply css classes to any item for custom styling options. The styles need to be defined on the page <code>MediaWiki:Common.css.</code>
You can also apply css classes to any item for custom styling options. The styles need to be defined on the page <code>MediaWiki:Common.css.</code>{{translation}}
 
{{Box Links-en
|Topic1=[[Manual:Extension/BlueSpiceDiscovery/Main_navigation|Customize the main navigation]]
|Topic2=[[Manual:Extension/BlueSpiceUserSidebar|Customize the user menu]]
|Topic3=[[Manual:Extension/BlueSpiceCustomMenu|Custom Menu]]}}
{{translation}}

Latest revision as of 12:17, 18 June 2025

Introduction

The menu editor is used in various menus of the wiki ― for example in the main navigation ― to set up navigation links. An edit link appears at the end of each menu when you focus on the menu.

menu items and activated edit link of the main navigation
"Edit"-link of the menu editor

Editing navigation and menus

If you have set the navigation type to MediaWiki Sidebar or Extended MediaWiki Sidebar on the main navigation , the navigation links are created using the menu editor.

Opening the menu editor:

  1. Click Edit at the end of the navigation or menu you want to edit.
    1. This link will become visible when you hover over existing links.
    2. Alternatively you can also open the MediaWiki page corresponding to the navigation or menu to edit
  2. If the page doesn't yet exist, a corresponding note will appear and you can create the page.
Note for the initial creation of the sidebar page
Seite MediaWiki:Sidebar anlegen.

Editing the default links

A new wiki already has some links created by default. These are displayed as system messages and reference pages with the same name in the MediaWiki namespace (to support the user languages). The entire menu or individual menu links can be deleted.

View of the standard links system messages in edit mode
The default links in the "Getting started" menu

Visual editing mode

Click Edit to switch to edit mode.

To add a new menu heading:

  1. Click Add new element.
  2. Enter the text for your menu header. In a multilingual wiki, you can also enter a message key.


Source editing mode

Click Edit source to switch to source edit mode.

Entries starting with a single star ("*") create menu headings or sections while entries with two stars ("**") create links.

* Bookmarks
** Wiki_Page1|Label
** https://externallink.com|Label

Show for groups

In addition, the visibility of a menu item can be limited to certain wiki groups. Enter a comma-separated list of existing wiki groups in the "Show for groups" field.

Css classes

You can also apply css classes to any item for custom styling options. The styles need to be defined on the page MediaWiki:Common.css.



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end