Last active
April 5, 2016 10:03
-
-
Save charlesroper/583d56f9de2061c4ce1a to your computer and use it in GitHub Desktop.
2016-03-23 A partial using ViewData arguments
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
@{ | |
var tag = ViewData["tag"].ToString(); | |
var klass = ViewData["klass"].ToString(); | |
} | |
<@tag class="@klass"> | |
@Umbraco.Field("pageNameOverride", altFieldAlias: "pageName") | |
</@tag> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment