Hi
So the title says it all, I guess.
In Umbraco 15 - How do i get the current node path (similar to editorState.getCurrent().path in AngularJS) inside a property editor?
Which context to consume?
What have you tried so far? I’m looking at the following thread:
That provide the current node key, so maybe there’s mor to be found by using UMB_DOCUMENT_WORKSPACE_CONTEXT
? As noted in that post, adding <umb-debug visible dialog></umb-debug>
might be helpful to dig a little deeper.
Well, I’ve actually decided to use “unique” aka. the current node guid to call a service to get the info I need I have no idea if information like a nodes path is available in one of these contexts?
Since the Info
context app is on the current node, it has access to the path information, I’d look at the source code of the info app:
The sources of it is here, and might give you some more ideas to work off:
Ah, thats could be a way to find what I need Thanks
Although, I must say that the documentation on the backoffice is quite poor at this point It could be nice with some easy understandable list of which context to use when your looking for something specific. Guess it will get better with time.
Any idea how to do something like navigationService.syncTree() from angularjs in v15?
We’re aware of documentation issues, and will be working on this for the rest of the year:
Anyway, the thing I just keep reminding myself is that all of the Umbraco backoffice is written as an extension., so every little bit that we do is something you should be able to do as well - with some limitations I guess as not all of the APIs are public, but if we’re missing something then maybe they should be.
One of the things that is probably not available yet is syncing the tree, I’ll ask around.
That makes sense and great to hear that you are working on it
Please, if any one knows how to sync the tree, that would be awesome
Would also love to know how to see if the node is saved or published yet.