devel:menus
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:menus [2019-01-06 13:59] – [Available Menus] Link to Wikipedia Michaelsy | devel:menus [2019-05-06 22:23] (current) – daumling | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Menus ====== | ====== Menus ====== | ||
- | Menus are an important part of a template. They provide access to the wiki's functionality aka. actions. | + | Menus are an important part of a template. They provide access to the wiki's functionality aka. actions. |
- | DokuWiki groups these actions into different menus which can be inserted into a template at different positions. | + | [[:DokuWiki]] groups these actions into different menus which can be inserted into a template at different positions. |
There is also an [[https:// | There is also an [[https:// | ||
+ | |||
===== Available Menus ===== | ===== Available Menus ===== | ||
^ view ^ Source ^ Description ^ | ^ view ^ Source ^ Description ^ | ||
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' | ||
Line 16: | Line 17: | ||
Plugins can extend and modify the above menus using the [[devel: | Plugins can extend and modify the above menus using the [[devel: | ||
- | |||
===== Menu Items ===== | ===== Menu Items ===== | ||
Line 35: | Line 35: | ||
To match the style of other icons, it is recommended to either pick an icon from the huge, free selection at https:// | To match the style of other icons, it is recommended to either pick an icon from the huge, free selection at https:// | ||
+ | |||
===== Adding Menus to Templates ===== | ===== Adding Menus to Templates ===== | ||
Line 52: | Line 53: | ||
Please refer to the [[gh> | Please refer to the [[gh> | ||
+ | |||
+ | If you need specific HTML for menu items, you need to loop over the menu items and create the HTML | ||
+ | yourself. For example, this loop would create the icons in the [[: | ||
+ | |||
+ | <code php> | ||
+ | $items = (new \dokuwiki\Menu\PageMenu())-> | ||
+ | foreach($items as $item) { | ||
+ | echo '< | ||
+ | .'< | ||
+ | .'< | ||
+ | . '< | ||
+ | . '</ | ||
+ | } | ||
+ | </ | ||
===== Legacy Support ===== | ===== Legacy Support ===== | ||
Line 62: | Line 77: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ |
devel/menus.txt · Last modified: 2019-05-06 22:23 by daumling