Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Is it possible to switch off friendly URLs in SharePoint 2013 using onet.xml?

$
0
0

For various reasons we don't want to use friendly URLs in a particular site collection. I want to do one of the following:

A. Switch friendly URLs off at the root site of the site collection and let every subsite at all levels below inherit this setting.

or

B. Switch friendly URLs off using the onet.xml for each web template.

It's basically the "Create friendly URLs for new pages automatically" checkbox at Site Settings/Navigation I'd like to manipulate. We're creating subsites automatically, so we need to fix this using code. If onet.xml should do the trick, I think this is the easiest way.

If this is not possible using onet.xml, maybe a feature receiver is an option? In that case, some sample code would be deeply appreciated.

Thanks.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>