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'v developing custom backoffice section via inheriting from BaseTree class. When user click on the node in the tree I use function UmbClientMgr.contentFrame('url'); to open appropriate page from surface controller in right section (iframe). There I have another buttons which I need to redirect user to content edit page (in iframe ofcourse). Does anyone know how to get url to content edit page? Ofcourse I have node Id in code ;)
I've used the following to take users to the 'edit view' for a node in Umbraco 7:
if that's what your are after ?
Thanks for your response Mark!
Ye, it's what i'm looking for. But I suppose that umbraco should have way to get it dynamically. Did you use just static hardcode?
Also have one more question:
Also if we use hardcoded value(/umbraco/#/content/content/edit/[nodeidtoedit]) to redirect it will provoke page to reload. We can just reload iframe on the right side - it will be the most perfect solution, but I don't know how ;)
I've just used the url to redirect into the backend from the frontend page for an 'edit this' link for logged in back office users; so it's not the same as what you are looking to do; I think when you implement IAction, you can also implement properties JsFunctionName and JsSource, where JsSource is an "~/ umbraco" relative path to a js file that contains the code...
There is quite a good article by Markus Johansson, (if you haven't seen it) regarding creating custom trees in Umbraco 7 that might be of interest, http://www.enkelmedia.se/blogg/2013/11/22/creating-custom-sections-in-umbraco-7-part-1.aspx
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted