Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frans de Jong 550 posts 1862 karma points MVP 4x c-trib
    Jan 24, 2017 @ 08:00
    Frans de Jong
    0

    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

  • Frans de Jong 550 posts 1862 karma points MVP 4x c-trib
    Jan 24, 2017 @ 08:16
    Frans de Jong
    0

    I also see that the parent is empty, Maybe we can store the currentpage as IPublishedContent in there?

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Jan 24, 2017 @ 08:43
    Søren Kottal
    101

    You can use this in razor: @UmbracoContext.Current.PublishedContentRequest.PublishedContent.Id

  • Frans de Jong 550 posts 1862 karma points MVP 4x c-trib
    Jan 24, 2017 @ 09:35
    Frans de Jong
    0

    I forgot all about the context... Thanks!!

  • 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.

Please Sign in or register to post replies