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 )

Viewed 5772 time(s), 2 post(s) 11/15/2012 1:57:26 PMby developer
developer

developer

11/15/2012 1:57:26 PM
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.
This content has not been rated yet. 
165 Reputation 19 Total posts
denis

denis

11/15/2012 3:00:10 PM
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.
This content has not been rated yet. 
7207 Reputation 956 Total posts