Skip to content
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

Closed
EvanGood opened this issue Jul 1, 2014 · 4 comments
Closed

Sometimes the bredcrumbs is not shown. #331

EvanGood opened this issue Jul 1, 2014 · 4 comments

Comments

@EvanGood
Copy link

EvanGood commented Jul 1, 2014

I under each region establish a Mvc.sitemap file, and then merge the Mvc.sitemap files in my website, is it even possible?

@NightOwl888
Copy link
Collaborator

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).

@EvanGood EvanGood closed this as completed Jul 3, 2014
@EvanGood EvanGood reopened this Jul 3, 2014
@EvanGood
Copy link
Author

EvanGood commented Jul 3, 2014

@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?

@NightOwl888
Copy link
Collaborator

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.

@EvanGood
Copy link
Author

EvanGood commented Jul 9, 2014

thanks!

------------------ 原始邮件 ------------------
发件人: "NightOwl888";[email protected];
发送时间: 2014年7月9日(星期三) 晚上7:19
收件人: "maartenba/MvcSiteMapProvider"[email protected];
抄送: "Man。Dream■°"[email protected];
主题: Re: [MvcSiteMapProvider] Sometimes the bredcrumbs is not shown. (#331)

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.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants