-
-
Notifications
You must be signed in to change notification settings - Fork 31
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: CKE5 placeholder insert plugin #46
Conversation
|
||
const placeholderLabel = this.props.i18nRegistry.translate( | ||
"Neos.Form.Builder:Main:placeholder", | ||
"Insert placeholder" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be localized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, once the translations will be in place, it would show up, this is just a fallback
const options = elementsNode.children | ||
.map(node => this.props.nodesByContextPath[node.contextPath]) | ||
.map(node => ({ | ||
value: node.properties.identifier || node.identifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to have this in Settings
? While thinking of it, I see that different use-cases are possible; sometimes you want to use speaking identifiers, sometimes not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you describe your idea in more details: setting name, setting format, what exactly it does etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After thinking again, let's not over-complicate things for the moment and go with it as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just wondering with the version constraint to the @neos-project/neos-ui-extensibility.
"watch": "neos-react-scripts watch" | ||
}, | ||
"devDependencies": { | ||
"@neos-project/neos-ui-extensibility": "^1.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really version 1.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't matter really, it would compile with any version of the extensibility package. Will change to wildcard to avoid confusion.
We need to rethink if and when to add this to Form Builder:
|
@dimaip just pointed out that this will not break anything even in older versions because it only works if the new UI is enabled and the UI has a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this great enhancement!
Thanks very much @dimaip for this awesome Feature. The "missing Property Selector" is still a reason, most of our Editors are not able to create their own Forms. |
Ohh @paavo sorry I totally forgot everything I did for this feature, so can't answer it from top of my head. |
I don't use this feature to be honest, but I tried to help in the #guild-form-builder channel: https://neos-project.slack.com/archives/CH86S151D TL;DR This change prepares the BTW: The prefix was there to prevent naming conflicts with options for the finisher. An alternative solution might be to encourage the same prefix in the |
Requires: neos/neos-ui#2546
Adds a dropdown to CKE5 that allows you to insert Fluid placeholders for elements configured in the current form. It takes either
formElement.properties.identifier
orformElement.identifier
as the placeholder value.Sample config to enable this feature: