Copied to clipboard

Flag this post as spam?

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


  • jeff mayer 122 posts 200 karma points
    Apr 22, 2014 @ 15:20
    jeff mayer
    0

    Great work Jeavon on the converters, can I integrate with Archetype?

    Hello Jeavon,

    Trying to integrate your converter with Archetype. Any suggestions here on this?

    Here's a sample below of what I am trying to do

       @using OurUmbraco.PropertyConverters
         @{
        var typedRelatedLinksConverted = fieldset.GetPropertyValue<RelatedLinks>("BlockItemLink");
    
        if (typedRelatedLinksConverted.Any())
        {
            <ul class="relatedlinks">
                @foreach (var item in typedRelatedLinksConverted)
                {
                    var linkTarget = (item.NewWindow) ? "_blank" : null;
                    <li> <a href="@item.Link" target="@linkTarget"><button class="btn btn-default"> <i class="fa fa-  external-link-square"></i> @item.Caption</button></a></li>
                }
            </ul>
        }
    }    
    
  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    May 01, 2014 @ 12:47
    Jeavon Leopold
    0

    Hi Jeff,

    Sorry I missed this one, did you sort it out or should I take a look?

    Jeavon

  • 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