Copied to clipboard

Flag this post as spam?

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


  • Raja 21 posts 90 karma points notactivated
    Mar 31, 2016 @ 14:29
    Raja
    0

    Archetype

    Hi I created Archetype field called the imagetext from there i added the two sets of datatype properties one for image and another for text, but in view i called like @Umbraco.Field("imagetext").but it displays like Archetype.Models.ArchetypeModel i didn't get what i expecting , is there any possibility to get that Archetype,(I mean is there any property to call directly Archetype values Let me know Please )

    Note:I am Using Normal web application i useally used to cal Alias names(by reference of Umbraco site) by way i got the result.let me know is there any posiibility to cal directly Archetype values.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 9x admin c-trib
    Mar 31, 2016 @ 17:19
    Alex Skrypnyk
    0

    Hi Raja,

    Welcome to our forum! Read more info abut great package Archetype - https://github.com/kgiszewski/ArchetypeManual

    You have to use helpers like :

    @foreach(var fieldset in Model.Content.GetPropertyValue<ArchetypeModel>("myProperty"))
    {
        <h1>@fieldset.GetValue("headlineProperty")</h1>
    }
    

    Thanks, Alex

  • 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