MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How to configure sitemap.ashx?  (Mono Support )

8923 put(a) pogledan, 2 odgovor(a) 15.11.2012. 13:57:26Kreirao(la) developer
developer

developer

15.11.2012. 13:57:26
Hello,

how can I setup, which pages will be included into sitemap? I want to restrict sitemap item only for public pages, but deny for pages from customer's zone and for user profile pages (/profile/admin/, /profile/user1/, /profile/user2/,...).

Thanks for answer.
Ovaj sadržaj još nije ocijenjen. 
165 Reputacija 19 Ukupno objava
denis

denis

15.11.2012. 15:00:10
Hi,
You will have to write a bit of code to do that. You should inherit from MonoSoftware.MonoX.SiteMap.SiteMap, and you can change the behavior of any of its methods. In your case, you can just override the OnGetUserProfileUrls method and leave it empty. Be sure to update the web.config file to point to your SiteMap handler.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava