Sitefinity : Read localized resource labels in MVC widget

In your Razor View,


In the above code, replace ResourceLabel with the key and ResourceName with the type, you used to create the label in the Sitefinity CMS. Make sure Telerik.Sitefinity.Frontend.Mvc.Helpers namespace is imported in the view. i.e

@using Telerik.Sitefinity.Frontend.Mvc.Helpers;

Sample usage

<li> <a href="/">@Html.Resource("Home""PageResources")</a></li>

comments powered by Disqus

About the author

  • Abhith Rajan

    Abhith Rajan

    Abhith Rajan is a full-stack developer, consultant, Sysberries employee, and biker. Who passionate about C# and JavaScript. Works on his blog, his personal finance web app and its react native mobile app in his free time.

    Buy me a coffeeBuy me a coffee