You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to get the "true" current document when using this?
I have a navigation widget component that the editors add to "/masterpage/header" similar to the BaseLine project. For this widget I need the document that's calling the PartialWidgetPage.
Where MasterPagHeaderViewComponent is the same as your HeaderViewComponent in the BaseLine project.
If I'm on for example "/home" or "/about", it always returns the location of the nested page (eg "/masterpage/header").
I guess as a work around I would check if the current doc is of MasterPageHeader doc type and if so, try to retrieve the "true" current doc using the current url.
Thanks,
Rory
The text was updated successfully, but these errors were encountered:
Hi Trevor,
Is there any way to get the "true" current document when using this?
I have a navigation widget component that the editors add to "/masterpage/header" similar to the BaseLine project. For this widget I need the document that's calling the PartialWidgetPage.
Where
MasterPagHeaderViewComponent
is the same as yourHeaderViewComponent
in the BaseLine project.If I'm on for example "/home" or "/about", it always returns the location of the nested page (eg "/masterpage/header").
I guess as a work around I would check if the current doc is of MasterPageHeader doc type and if so, try to retrieve the "true" current doc using the current url.
Thanks,
Rory
The text was updated successfully, but these errors were encountered: