Advertisement
Guest User

Umbraco "magic" macro parameters

a guest
May 24th, 2011
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // In your template:
  2. <umbraco:macro filelocation="~/macroScripts/Default/MetaTags.cshtml" fixedtitle="Site Name" runat="server" />
  3.  
  4. // Usage of the "fixedtitle" parameter in Razor:
  5. <title>@(!string.IsNullOrWhiteSpace(Model.MetaTitle) ? Model.MetaTitle : Model.Name) | @Parameter.fixedtitle</title>
  6.  
  7. <meta name="description" content="@Model.MetaDescription" />
  8. <meta name="keywords" content="@Model.MetaKeywords" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement