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
Hi,
Is there a way to get the id of the page a grid editor is placed on?
Frans
I also see that the parent is empty, Maybe we can store the currentpage as IPublishedContent in there?
You can use this in razor: @UmbracoContext.Current.PublishedContentRequest.PublishedContent.Id
I forgot all about the context... Thanks!!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get the Id of the page where I place the grid editor
Hi,
Is there a way to get the id of the page a grid editor is placed on?
Frans
I also see that the parent is empty, Maybe we can store the currentpage as IPublishedContent in there?
You can use this in razor: @UmbracoContext.Current.PublishedContentRequest.PublishedContent.Id
I forgot all about the context... Thanks!!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.