Copied to clipboard

Flag this post as spam?

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


  • lori ryan 199 posts 529 karma points
    Feb 20, 2020 @ 16:11
    lori ryan
    0

    Grid Editor pulling information from a central location.

    Hi Unsure if this is possible, I would like to create a grid editor for google maps, I pretty much have this already however I would like to set some properties i.e. map name, zoom level, central lat long in the grid editor properties (that bits ok) but I would also like to pull other information that is managed from a central spot i.e. the website configuration section in my content tree.

    I would usually do some like

    var settings = Model.Root().Siblings().FirstOrDefault(x => x.ContentType.Alias == "websiteConfiguration");
    var items = settings.Value<IEnumerable<IPublishedElement>>("myItems");
    

    Error : does not contain a definition for 'Root'

    How can I do the above in a grid editor??

    Am probably thinking about this wrong but any help would be much appreciated.

  • 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