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 ;)
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:
I've created new Action for menu by inheriting from IAction. It looks good but i can't understand where i should put javascript function for this action. Did you strugled with it?
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...
Content Editor Url
Hi everyone!
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 ;)
Thanks.
I've used the following to take users to the 'edit view' for a node in Umbraco 7:
/umbraco/#/content/content/edit/[nodeidtoedit]
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:
I've created new Action for menu by inheriting from IAction. It looks good but i can't understand where i should put javascript function for this action. Did you strugled with it?
Thanks,
Alexander.
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
Thanks Marc.
is working on a reply...