Created
August 8, 2017 15:00
-
-
Save kgiszewski/13029e31bae8f994c7d802905cb44723 to your computer and use it in GitHub Desktop.
Powerful Vorto + Archetype combination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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