Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Show all form fields in Placeholder-Insert #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erkenes
Copy link

@erkenes erkenes commented Mar 2, 2023

  • Create a Mixin by which Form-Elements are shown in the placeholder insert
  • Load all form-elements recursively
  • Check if the elements are allowed to shown in the Placeholder-Insert-Dropdown by checking if they have the PlaceholderInsert-Mixin.

Resolves: #99

README.md Outdated Show resolved Hide resolved
const node = this.props.nodesByContextPath[element.contextPath];
const childNodes = this.props.nodesByContextPath[element.contextPath].children;

if (nodeTypeRegistry.isOfType(node.nodeType, 'Neos.Form.Builder:Mixin.PlaceholderInsert')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont work right away, due to the optimisations to the schema: neos/neos-ui#3677

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this. It is required to add the nodetypes to the frontend configuration and it is possible to exclude all child nodes of a specific node type (which is useful for the options and validator collection because it is not required to list them all)

@erkenes erkenes changed the title FEATURE: Create Mixin for Placeholder-Insert FEATURE: Show all form fields in Placeholder-Insert Mar 5, 2024
- Create a frontend settings by which Form-Elements
   are shown in the placeholder insert
- Load all form-elements recursively
- Check if the elements are allowed to shown in the
    Placeholder-Insert-Dropdown by checking if they
    are not in the setting

Resolves: neos#99
fields of further pages were not available in the
placeholder-insert

Related to: neos#99
@erkenes
Copy link
Author

erkenes commented Mar 5, 2024

It is now also possible to list the fields of the further pages in the Placeholder-Insert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Placeholder-Insert: Only elements of the first level are displayed
4 participants