Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a custom drop down property to load all my category. In each Umbraco page I am displaying it to select a category for that page. So if i add a page under another one then i should show only its child categories in the drop down.(or if the parent page selects top level category, then child page should select its child categories) for this, I am trying to pass the node id and level id along with my current category Id in order to filter the category names for the next level menus.
I have tried using $routeParams, editorState.current but both giving other information except the level id. Could some one help me how to get the level id in Umbraco back office custom property editor?
There's probably a better way but you could work it out from the path like this:
var level = editorState.current.path.split(',').length - 1;
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted