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
Add Support for Disabling Nested Content Items (i.e., a Toggle Button) #2887
Comments
TL;DR: Love it, this would be awesome, but there's some challenges to solve both around UX and architecture that makes the task bigger than initially. I'd love to see this in the core, but done "right". As this introduce the concept of what could be described as "atomic publish/unpublish", I'd love to see a broader discussion on how to handle this in Umbraco. Right now we have a few core property editors (Grid and Nested Content) and quite a lot as packages, that "mimics" content nodes, but aren't. They work by storing a big pile of un-normalised JSON into a blob storage and then various "magic" in both back office and runtime tries to make them behave as Content Nodes. When everything works a-ok, that's awesome. But essentially it's all hacks which is less than ideal. Hacks have a history of biting when you least expect it and when this technique of mimic'ing content nodes goes wrong, it's really a wreck because the core essentially have no idea what's going on (we see this in support cases and it's not pretty). Long term solution is making Doctypes much more flexible and introduce a concept of "subnodes". We're not they're yet (but we will be post v8). Until then we need to find a balance between what is sustainable and healthy for the core, while not preventing people from solving actual and current use-cases. There's two challenges here before I feel comfortable of including this in core:
Exciting times ahead. |
I think the concept of "subnodes" sounds a lot like EPiServer "blocks". Basically blocks of content that can live under a page (or in a global structure) and can be dragged into the pages properties to be displayed on the page. So the block will still exist even if you remove it from the page, and you can reuse it in multiple places. The prop editors also add a layer of "meta data" for blocks, so you can select a "display mode" for the block where it is inserted. This means that you could basically add the same block to the same property multiple times, with different display modes. Pretty neat. So that might function as inspiration for how this could be achieved. |
Hi everyone, After another productive discussion about this at HQ we would like to emphasize that we're most worried about point number 2 in Niels' response: having a consistent UX pattern for the "subnodes" concept. We've created a separate issue with specifications for those interested at taking a crack at that #2923. With a good UX pattern in place we could consider a little bit of black magic to emulate content nodes, that we can in a later version improve on. For now we're going to close this issue in anticipation of advancing the "subnodes" concept. This is not a rejection of the feature requested but an encouragement to make sure that it makes sense for where the Umbraco project wants to go with this. And remember, "no is temporary, yes is forever". Thanks everyone for the great constructive feedback! |
Adding a toggle button to Nested Content can be done right now with https://github.com/nathanwoulfe/NestingContently. This basically adds an on/off button (with additional UI styling) to the header icons, instead of having a checkbox on the nested content item. Until issue #2925 is fixed and we can override the value converter (example code is already provided in that issue), you will need to filter the |
Using NestingContently and the work-around from #2925 (comment), it's already possible to disable nested content using a toggle button 🎉 |
Given this blog post: https://umbraco.com/blog/a-new-take-on-the-umbraco-issue-tracker/
I am migrating this issue to this issue tracker: http://issues.umbraco.org/issue/U4-10422
Much discussion has happened around the issue and I think it's time for a reset to get everybody on the same page. Here is the actual request:
Add a toggle button to nested content items that allows the nested content items to be either enabled or disabled.
There are a bunch of ways of going about that. Here are my recommendations (gathered from the other ticket and from other places this issue was being discussed):
I understand you may not have the resources to implement this feature yourselves at Umbraco HQ. There are a ton of people interested in making this happen, so it's probably safe to assume you can get another pull request that implements this.
The text was updated successfully, but these errors were encountered: