Sitefinity - Read localized resource labels in MVC widget

Explains how to get localized labels in Sitefinity MVC widgets.

commit 90f3c9c · authored · 1 min read

Sitefinity - Read localized resource labels in MVC widget

In your Razor View,

@Html.Resource("ResourceLabel", "ResourceName")

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>

local graph · open full graph

"Sitefinity - Read localized resource labels in MVC widget" is connected to the topics Sitefinity, CMS, Localization and related to 6 other entries. Sitefinity Development - Problems and Solutions Sitefinity Development - Pr… Sitefinity - Caching issue for pages with NO CACHING profile Sitefinity - Caching issue … Sitefinity Rookie Guide : Get Users in a Custom Role Sitefinity Rookie Guide : G… Check if string is Arabic - C# Check if string is Arabic -… Best Umbraco Packages Best Umbraco Packages Umbraco Get Current Page in Partial View Umbraco Get Current Page in… Sitefinity #sitefinity CMS #cms Localization #localization Sitefinity - Read localized resou…

comments

loading discussion…