For the first time I'm creating a custom action for a 4.5 tree and I want to do this in the prefered way. I need to open a page in the ContentFrame. Thought parent.UmbClientMgr.mainTree().changeContentFrameUrl might be usefull for this, but so far I get No errors and No page is loading. Below you find the source I wrote.
Does anybody knows what I'm doing wrong or does anybody knows where I can find some good info
returnstring.Format(".sprDummy' style='background: transparent url({0}) center center no-repeat", umbraco.GlobalSettings.Path + "/images/umbraco/settingDatatype.gif");
Massive thanks for your replies. I needed to post the NodeId also, so I went for a complete Javascript String instead of using the ClientTools. Got it working now using the following code:
Umbraco 4.5 Tree action open a document
Hi all,
For the first time I'm creating a custom action for a 4.5 tree and I want to do this in the prefered way. I need to open a page in the ContentFrame. Thought parent.UmbClientMgr.mainTree().changeContentFrameUrl might be usefull for this, but so far I get No errors and No page is loading. Below you find the source I wrote.
Does anybody knows what I'm doing wrong or does anybody knows where I can find some good info
Thanks,
Richard
Hi Richard,
I think the javascript function is just: parent.UmbClientMgr.contentFrame('/johndoe.aspx');
-Tom
FYI, I also found you can use the .NET wrapper of the API to do the same thing, which (might) be even more of a preferred way :)
HI Tom,
Massive thanks for your replies. I needed to post the NodeId also, so I went for a complete Javascript String instead of using the ClientTools. Got it working now using the following code:
Quick tip for anybody that wants to pass the Id of the menu node. You can retrieve this by UmbClientMgr.mainTree().getActionNode().nodeId
Thanks again,
Richard
is working on a reply...