Closed bjarnef closed 2 years ago
Hiya @bjarnef,
Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.
We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed).
To open it this issue up again, you can write @umbrabot still relevant
in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it's still relevant.
For example:
@umbrabot still relevant This bug can still be reproduced in version
x.y.z
This will reopen the issue in the next few hours.
Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:
Currently there is this example from documentation to add data programmatically to Block List: https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Block-List-Editor/#creating-blocklist-programmatically
However it seems like a lot of code to add data to the default Block List editor, and when working with ModelsBuilder, I think this can be done smarter.
The documentation also shows this, but doesn't the Umbraco core contain this base class, that we can re-use instead?
For example when working with ModelsBuilder and having a "Block Link" with Name and Url properties:
Btw. I noticed here
SaveAndPublish()
failed iflinksModel
didn't contain contentData (not sure if this is expected), but set this tonull
instead seems to work.I wonder if we could have some utility methods / extensions when working with the standard Block List, e.g:
or