Search code examples
asp.net-mvc-3mvcsitemapprovider

Use Resources in MVCSiteMapProvider in actions, controllers... within the node definition


I would like to use strings from resources to define the controllers and actions in my MVC.sitemap file, when it comes to use resources for the title there is no problem:

    <mvcSiteMapNode title="$resources:ResourcesTest,Testimonios" controller="Testimonios"  action="Index" />

But when i try to use resources as an the name of the action and controller it does not work:

    <mvcSiteMapNode title="$resources:ResourcesTest,Testimonios" controller="$resources:ControllersTests,Controller1Test"  action="Index" />

Is this a normal behaviour? I am doing something wrong? Is there any solution to my objective of using resources to define the action and controller names in the sitemap file?

Thanks¡¡


Solution

  • The Controller property is not localizable.

    Only the Title, Description, ImageUrl, and custom attributes are localizable properties.