Copied to clipboard

Flag this post as spam?

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


  • lele 107 posts 444 karma points
    Apr 14, 2015 @ 16:41
    lele
    0

    How to GetVortoValue from a dynamic child item

    If I try to get the vorto value from a dynamic child item I become following: 

    I know that Vorto is only works on TypedContent. I cast it to IPublishedContent...
    Thanks for your help!
  • lele 107 posts 444 karma points
    Apr 14, 2015 @ 16:44
    lele
    100

    it works now! here my solution:

    @foreach (var item in selection)

            {

    IPublishedContent sitem= (IPublishedContent)item;

    if(@sitem.HasVortoValue("title"))

    {

               <li><a href="@item.Url">@sitem.GetVortoValue("title")</a></li>

    }

            }

Please Sign in or register to post replies

Write your reply to:

Draft