SiteMapDataSource
-
Hello, I have a Web.sitemap file. I created a SiteMapDataSource. Every node on my Web.Sitemap have a property named Visible which is set to true or false. I need my SiteMapDataSource to get only the nodes from Web.Sitemap which has the property Visible="True". How can I do this? Thanks, Miguel
-
Hello, I have a Web.sitemap file. I created a SiteMapDataSource. Every node on my Web.Sitemap have a property named Visible which is set to true or false. I need my SiteMapDataSource to get only the nodes from Web.Sitemap which has the property Visible="True". How can I do this? Thanks, Miguel
You could turn on SecurityTrimming so that you can set which roles can see which items in the Sitemap, then set the ones you want invisible to a non existant role.
-
Hello, I have a Web.sitemap file. I created a SiteMapDataSource. Every node on my Web.Sitemap have a property named Visible which is set to true or false. I need my SiteMapDataSource to get only the nodes from Web.Sitemap which has the property Visible="True". How can I do this? Thanks, Miguel
Instead of having a sitemap with Visible property it's easier to have 2 sitemaps: 1. with visible nodes only 2. with all the nodes This will allow you to bind the menu control to the visible sitemap and to get other nodes from the other sitemap you can configure the names of the 2 sitemap providers in web.config see this msdn article to know how: http://msdn2.microsoft.com/en-us/library/ms178426.aspx[^]
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
-
You could turn on SecurityTrimming so that you can set which roles can see which items in the Sitemap, then set the ones you want invisible to a non existant role.
-
Instead of having a sitemap with Visible property it's easier to have 2 sitemaps: 1. with visible nodes only 2. with all the nodes This will allow you to bind the menu control to the visible sitemap and to get other nodes from the other sitemap you can configure the names of the 2 sitemap providers in web.config see this msdn article to know how: http://msdn2.microsoft.com/en-us/library/ms178426.aspx[^]
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
Hi, Are you talking about dependent site maps? I will explain my problem: My web site uses two different web site maps: 1. The full one which is used in the menu. 2. The most restricted one which is a part of (1) and that is used in footer links. 3. In both cases I need to have everything in two cultures: English and Portuguese. Could you give me your opinion of how to create this? Thanks, Miguel
-
Hi, Are you talking about dependent site maps? I will explain my problem: My web site uses two different web site maps: 1. The full one which is used in the menu. 2. The most restricted one which is a part of (1) and that is used in footer links. 3. In both cases I need to have everything in two cultures: English and Portuguese. Could you give me your opinion of how to create this? Thanks, Miguel
I'm not sure if you can create resource files for sitemaps to localize them. I had a similar problem before and I had to create a different copy of sitemap for each language. In your case you will need 4 sitemaps (2 for each langauge) and have some code to decide which sitemap that will be used according to the current culture.
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
-
I'm not sure if you can create resource files for sitemaps to localize them. I had a similar problem before and I had to create a different copy of sitemap for each language. In your case you will need 4 sitemaps (2 for each langauge) and have some code to decide which sitemap that will be used according to the current culture.
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
After searching the MSDN I found that you can have resouce files for sitemaps to localize them. check this page: http://msdn2.microsoft.com/en-us/library/ms178427.aspx[^]
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.