Copied to clipboard

Flag this post as spam?

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


  • Akeem 43 posts 198 karma points
    Mar 17, 2016 @ 15:08
    Akeem
    0

    Retrieve CurrentPage Properties in Another page - Is there anything close to recursive in doing this

    Please help : i need to show this in other page thats not currentPage properties . I was able to retrieve the event year because there RECURSIVE PROPERTY with umbraco field .

    Now i need to get the currentPage properties in another Page .

    enter image description here

  • Aristotelis Pitaridis 84 posts 402 karma points
    Mar 17, 2016 @ 17:59
    Aristotelis Pitaridis
    100

    You can get the page by using it's id. For example if the page has id equal to 1058 then you can get the page using the following command.

    var MyPage = Umbraco.Content(1058);
    

    A similar example to your code can be the following.

    @foreach (var item in Umbraco.Content(1058).eventDetails)
    {
        <div>@Html.Raw(item.Day)</div>
    }
    

    I did not convert your entire code but I hope you can understand how to do it. Inform me if you need further explanation.

  • Akeem 43 posts 198 karma points
    Mar 17, 2016 @ 18:17
    Akeem
    0

    OMG! you're the best Aristotelis . Its works like pan-cake . Thank you somuch

Please Sign in or register to post replies

Write your reply to:

Draft