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 548 posts 1840 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 548 posts 1840 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 712 posts 4570 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 548 posts 1840 karma points MVP 4x c-trib
    Jan 24, 2017 @ 09:35
    Frans de Jong
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft