-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
v8: Pick macro parameters in an infinite editor like content type properties #4318
Comments
To me it seems like a good idea, but let me get some feedback first. I'll let you know after our next regular meeting. |
We had a chat about this recently and @nielslyngsoe indicated he would get back at you with some feedback! 👍 |
@nul800sebastiaan @nielslyngsoe I created a quick prototype for this and kept the UI consistent as much as possible like when selecting datatypes on document types. The top part in the overlay is the new stuff (consistent with datatypes on document types) and the bottom part is the current stuff (should be removed if we go with this). |
Looks great @bjarnef! I assume this will not show all editor, but only the ones that are available as a macro parameter editor? |
@bjarnef looks good, looking forward to the PR, and as Sebastian is asking; I guess the options are the same as before, its just the UI you will be changing, right? Looks very good to me! |
@nul800sebastiaan it only get the same parameter editors as listed in the current dropdown. but I can create a PR for this in a few days. The existing dropdown has a method Maybe these should return Umbraco-CMS/src/Umbraco.Web/Editors/DataTypeController.cs Lines 311 to 335 in 9c06ef8
As this moment when browsing to a macro it also create to requests to partial views and macro parameter editors (where parameter editors are passed in to the overlay in the current setup). Not sure this is necessary and it instead only request parameter editors in the overlay. We might change the same for partial views, so it only create the request when opening the overlay. |
At the moment there is this inifinite editor. I have added a new one is this folder https://github.com/umbraco/Umbraco-CMS/tree/v8/dev/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors for "macro parameter editor picker" (similar to how datatypepicker). Any suggestion for a good name? For now I have named in "macroparameter", but could also be "macroparameterpicker" or "macroparametereditorpicker"? 🤣 This existing one in macros/infiniteeditors might be specific to macros, so I guess it is fine it is located here for now? |
In macro parameters the editor is a traditional dropdown. It would be great to change this to a property picker similar to when selecting data type on document types or selecting field types in Umbraco Forms.
This item has been added to our backlog AB#3240
The text was updated successfully, but these errors were encountered: