-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes the bredcrumbs is not shown. #331
Comments
If by "region" you mean MVC areas, you can make a SiteMap per area as shown in that post. If you mean you want to localize a single SiteMap, there is no need to use multiple XML files. You just need to use the syntax described in the MSDN documentation. You will need to use a resource file in the App_GlobalResources folder of the application (with a matching name, of course). For an example of localization, you can analyze the [MvcMusicStore demo]. Note that implicit localization is supported, but currently requires the use of an external DI container (see issue #228), so I would recommend using explicit localization. If each culture has a slightly different menu, you can use visibility providers to control which nodes are shown for specific cultures. However, if each culture has a completely different menu structure, another option you have is to use multiple SiteMaps in a single application, making a separate SiteMap per culture (and in that case, you could use separate XML files if you need to). |
@NightOwl888 sorry,this region is the other projects。so,I want to merge the Mvc.sitemap files to my website from other project 。 now, My idea is to get SiteMapNode by XmlSiteMapNodeProvider, then assembled。Do you have any other suggestions or ideas? |
If you need to customize the source that the nodes are loaded from more than what is provided, you can always implement ISiteMapNodeProvider yourself and use an external DI container to inject your own implementation. |
thanks! ------------------ 原始邮件 ------------------ If you need to customize the source that the nodes are loaded from more than what is provided, you can always implement ISiteMapNodeProvider yourself and use an external DI container to inject your own implementation. — |
I under each region establish a Mvc.sitemap file, and then merge the Mvc.sitemap files in my website, is it even possible?
The text was updated successfully, but these errors were encountered: