+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Try to get related image all languages

Try to get related image all languages

2 posts, 0 answered
  1. Medy
    Medy avatar
    15 posts
    Registered:
    05 Oct 2015
    02 Mar
    Link to this post

    Hi,

    I am trying to get an image field from my page options. It is work with french language but not with the others.

     

    PageManager pageManager = PageManager.GetManager();
    PageNode node = pageManager.GetPageNode(pageNodeId);

    var pagesFacade = App.WorkWith().Pages();
    using (new ElevatedModeRegion(pagesFacade.GetManager()))
    {
              PageNode pageNode = pagesFacade
                          .Get()
                      .FirstOrDefault(p => p.PageId == node.PageId);

              MyImage = pageNode.GetValue<Telerik.Sitefinity.Libraries.Model.Image>("ImageField").Url;
    }

  2. Medy
    Medy avatar
    15 posts
    Registered:
    05 Oct 2015
    02 Mar
    Link to this post
    Resolved.
2 posts, 0 answered