The commented out block is a change I've made to get around the issue. From what I was able to see, it looks as though area.allowed is being incorrectly set when the grid rows are being edited and the allow all editors flag is toggled. The values of the area object as presented have .$allowedEditors set correctly with all values that are available but .allowed does not.
I may be wrong and possibly have incorrectly set up the rows of my grid but I can't tell based on the objects.
Ah, I see.. the workaround is a possible solution but yes, it's a bit cumbersome if you have many grid editor configurations or lots of property editors...
True, that is a valid workaround. In this instance I'm working with a solution that has many grid configurations and property editors. While the solution is a valid one it's overly cumbersome and time consuming to retrospectively add each new property editor to each row.
"This content is not allowed here" prevents reordering
I've been trying to reorder some items inside of a grid editor section, when I start to drag an editor this message appears.
I've dug into the code and found this:
The commented out block is a change I've made to get around the issue. From what I was able to see, it looks as though
area.allowed
is being incorrectly set when the grid rows are being edited and the allow all editors flag is toggled. The values of the area object as presented have.$allowedEditors
set correctly with all values that are available but.allowed
does not.I may be wrong and possibly have incorrectly set up the rows of my grid but I can't tell based on the objects.
My thanks,
John
Also having this issue in 8.9.1
Workaround: Instead of selecting "Allow all editors" on your grid row configuration, if you manually select the editors it allows you to reorder.
Not working for me
Hi Edgar, is it the code above that I posted that isn't working or the workaround?
If it's the code above, what version are you current using and do you get an error?
Sorry John,
the Workaround "Allow all editors" is not working for me. I have ovelooked your code example. Did not test it. Where did you make these changes?
Edi
Ah, I see.. the workaround is a possible solution but yes, it's a bit cumbersome if you have many grid editor configurations or lots of property editors...
The code I've added was directly to the Umbraco source. https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
That's a link to the Github repo. The function I've made changes to is
over
at line 141, the code I added was into the gap at 145.HTH
Thanks for sharing. I will give it a try.
Have a nice day
True, that is a valid workaround. In this instance I'm working with a solution that has many grid configurations and property editors. While the solution is a valid one it's overly cumbersome and time consuming to retrospectively add each new property editor to each row.
is working on a reply...