AaronSadlerUK / Our.Umbraco.UmbNav

Drag and drop menu editor for Umbraco V8, V9 and V10+
MIT License
10 stars 15 forks source link

Allow labels to show child nodes of a page #15

Closed tzbarkan closed 3 years ago

tzbarkan commented 3 years ago

There are situations where we want a label with dynamic children. But the only way to do that is with a link. It would be helpful if there were a way to have a label that could show child nodes of a specific page.

AaronSadlerUK commented 3 years ago

I'll need to have a think on this one, so it may not make v1.0.0-rc.11

If you have something in mind, please do work on it and submit a PR 😇

tzbarkan commented 3 years ago

Understood. Thinking about it, maybe a checkbox in advanced configuration for links would do the trick: "Display as label"...

AaronSadlerUK commented 3 years ago

I think that idea will work, the issue with the flow is a label is stored as a text item, and as such has no "children" as it's not a content item.

I will add the checkbox for display as label, this will simply toggle the itemtype to be label which in return will null the relevant parts on the c# side.