Issue Feature Closed

#90042Make all page icons customizable by doktype

Mario Lubenka 12/31/19, 21:19 updated 02/27/20, 12:42

Description

When declaring a custom doktype one can define a custom icon.
There are special page states in which case a different icon will be shown in page tree:

  • Page is hidden in navigation
  • Page is site-root
  • Page contains content from another page
  • Page contains content from another page AND is hidden in navigation

It should be possible for extension developers to provide a custom icon for each state.
If an icon was not specified it would fallback to the icon which is currently used (for pages).

'typeicon_classes' => [
    123 => "my-icon",
    '123-contentFromPid' => "my-icon-contentFromPid",
    '123-hideinmenu' => "my-icon-hideinmenu",
],

In the above example no root icon (123-root) was defined, thus it would fallback to page-root.

Reviews 4