Copied to clipboard

Flag this post as spam?

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


  • Thomas Brinegar 84 posts 162 karma points
    Aug 08, 2014 @ 16:22
    Thomas Brinegar
    0

    Archetype - Rendering a series of Rich Content Editors

    I am a bit new to using Razor script and am trying to make use of the Archetype package. I am trying to iterate through a list of rich content editors using some code snippets I have found around the web after Googling Archetype code samples... The following saves without issue, but generates an error when viewing it on a page:

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @using Archetype.Models;
    @using Archetype.Extensions;
    
    @foreach (var fieldset in Model.Content.GetPropertyValue<ArchetypeModel>("slide").Fieldsets)
    {    
        @Html.Raw(fieldset.GetValue("slideContent"))
    }
    

    Am I missing something?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 08, 2014 @ 16:23
    Jeroen Breuer
    0

    Hello,

    What error do you get and what version of Archetype are you using?

    1.4.1 has some fixes for the RTE: https://github.com/imulus/Archetype/issues/185

    Jeroen

  • Thomas Brinegar 84 posts 162 karma points
    Aug 08, 2014 @ 16:29
    Thomas Brinegar
    0

    Error loading MacroEngine script (file: HomeShowcase.cshtml)

  • Thomas Brinegar 84 posts 162 karma points
    Aug 08, 2014 @ 17:00
    Thomas Brinegar
    0

    I've got the latest 1.4.1 version.

  • Thomas Brinegar 84 posts 162 karma points
    Aug 08, 2014 @ 21:31
    Thomas Brinegar
    0

    I am just going to forget this package due to a lack of documentation.

Please Sign in or register to post replies

Write your reply to:

Draft