November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You can try with
var routeHelper = ServiceLocator.Current.GetInstance<ContentRouteHelper>();
var currentPageLink = routeHelper.ContentLink;
GP This is in an edit gadget in the asset pane. So the code that you sugested only returned null. Thank you though.
trying a different rout and using dojo to try and get the current context but still geting the same result. the context is the same every time.
define("epi-cms/component/PageVersions", [ "epi/shell/_ContextMixin" ], function (_ContextMixin) { return dojo.declare("epi.cms.component.PageVersions", [_ContextMixin], { constructor: function () { dojo.when(this.getCurrentContext(), function (context) { var passedData = { context: context.toString() } $.ajax({ url: "/LoremIpsum/CreateLoremIpsum/", method: "post", data: passedData, datatype: "text", success: function (data) { if (data) { reload(data); } }, complete: function () { self.fetchingNewPage = false; } }); }); } }); }); }
I am trying to get the current page from an IFrameComponent "Gadget" for editing pages. I need to get the curent page in my controler so that i can maipulate the propeties on the page. I have tried
But that only returns the start page every time. I need the current page that is being edited. Any help or direction wold help. Thanks,