Skip to content

Commit

Permalink
TASK: "NodeTree Presets" documentation (#2128)
Browse files Browse the repository at this point in the history
adds some basic documentation for the "NodeTree Presets"
feature introduced with neos/neos-ui#2048

Related: #1952
  • Loading branch information
Bastian Waidelich authored and dimaip committed Aug 1, 2018
1 parent 6c69929 commit d3eadbc
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions Documentation/References/Configuration/Configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ If you have lots of nodes you can reduce the number of levels inside ``Settings.
structureTree:
loadingDepth: 2

Node tree base node type
~~~~~~~~~~~~~~~~~~~~~~~~
Node tree presets
~~~~~~~~~~~~~~~~~

Allows configuring the baseNodeType used in the node tree.
By default all node types that extend ``Neos.Neos:Document`` appear in the ``Node tree filter``
allowing the editor to only show nodes of the selected type in the tree.

The default ``baseNodeType`` can be changed in order to hide nodes from the tree by default.

This example shows how to exclude one specific node type (and it's children) from the tree:

Expand All @@ -38,9 +41,31 @@ This example shows how to exclude one specific node type (and it's children) fro
navigateComponent:
nodeTree:
presets:
default:
'default':
baseNodeType: 'Neos.Neos:Document,!Acme.Com:SomeNodeTypeToIgnore'
.. note::
The naming of the configuration (``presets``) keeps into account that the node tree should support multiple presets
in the future.
In addition to the ``default`` preset, additional presets can be configured such as:

.. code-block:: yaml
Neos:
Neos:
userInterface:
navigateComponent:
nodeTree:
presets:
'default':
baseNodeType: 'Neos.Neos:Document,!Acme.Com:Mixin.HideInBackendByDefault'
'legalPages':
ui:
label: 'Legal pages'
icon: 'icon-gavel'
baseNodeType: 'Acme.Com:Document.Imprint,Acme.Com:Document.Terms'
'landingPages':
ui:
label: 'Landing pages'
icon: 'icon-bullseye'
baseNodeType: 'Acme.Com:Mixin.LandingPage'
If at least one custom preset is defined, instead of the list of all node types the filter will
display the configured presets.

0 comments on commit d3eadbc

Please sign in to comment.