Skip to content

Instantly share code, notes, and snippets.

@kgiszewski
Created August 8, 2017 15:00
Show Gist options
  • Save kgiszewski/13029e31bae8f994c7d802905cb44723 to your computer and use it in GitHub Desktop.
Save kgiszewski/13029e31bae8f994c7d802905cb44723 to your computer and use it in GitHub Desktop.
Powerful Vorto + Archetype combination
@if (Model.Content.HasVortoValue("content"))
{
var vortoContent = Model.Content.GetVortoValue("content");
var archetypeModel = vortoContent as ArchetypeModel;
if (archetypeModel != null)
{
@Html.RenderArchetypePartials(archetypeModel, "~/Views/Partials/Archetype/")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment