sitefinity , cms , localization ,

Sitefinity - Read localized resource labels in MVC widget

Abhith Rajan Abhith Rajan FollowDecember 07, 2017 · 1 min read · Last Updated:
Share this

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>
Abhith Rajan
Written by Abhith Rajan FollowBuy me a coffee
Abhith Rajan is an aspiring software engineer with more than 6 years of experience and proven successful track record of delivering technology-based products and services.

Related Posts