Created
January 23, 2013 14:08
-
-
Save jhauge/4606016 to your computer and use it in GitHub Desktop.
Usage of macroscripts without using a macro registered in Umbraco backend
This file contains hidden or 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
@inherits umbraco.MacroEngines.DynamicNodeContext | |
@if (Parameter.MyCustomParameter == "showThisNotThat") | |
{ | |
<div>@Model.MyProperty</div> | |
} |
This file contains hidden or 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
<!-- Other masterpage stuff --> | |
<!-- Insert macro --> | |
<umbraco:Macro runat="server" FileLocation="~/macroscripts/CommentTrack.cshtml" MyCustomParameter="showThisNotThat" /> | |
<!-- Other masterpage stuff --> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment