neos / form-builder

Flow Form Framework integration into Neos CMS
GNU General Public License v3.0
18 stars 31 forks source link

FEATURE: Placeholder-Insert: Exclude specific NodeTypes from the drop… #100

Closed erkenes closed 1 year ago

erkenes commented 3 years ago

Load all form-elements recursively. Check if the elements are allowed to shown in the Placeholder-Insert-Dropdown. Disallow Neos.Form.Builder:ElementCollection and Neos.Form.Builder:ValidatorCollection by default. (The section is excluded in the yaml file)

Resolves: #99

erkenes commented 3 years ago

I've updated the PR. Now I'm using the basic syntax of neos.

The settings to hide or show a NodeType are now set in editorOptions.nodeTypes. 'Neos.Form.Builder:StaticText': false: hides this NodeType 'Foo.Bar.FormBuilder:Image': true: shows the NodeType

With the complex synax:

nodeTypes:
  'Foo.Bar.FormBuilder:Grid':
    includeNodeType: false # hides this NodeType
    includeChildNodes: true # shows the child-nodes

  'Neos.Form.Builder:SelectOptionCollection':
    includeNodeType: true # show this NodeType
    includeChildNodes: false # hides all child-nodes
erkenes commented 2 years ago

@bwaidelich Can you check the PR again please? :)

bwaidelich commented 2 years ago

Hey, thanks for the reminder. I'm still a bit puzzled by the syntax, but that's probably mainly due to the fact that I have never used the insert placeholder feature (so far) and because I wasn't involved in its implementation. @dimaip is probably a much better person to judge

erkenes commented 1 year ago

revoke this pr in favor of #128