Sometimes you may find a need to activate some feature from code, programmatically.In my case I needed to do that inside the WebProvisioned event. First you will want to check if the feature is already activated. And then if not – add the feature. Simple and clean solution goes like this: 123456789101112131415161718 […]
Continue reading »Tag: Features
Change quicklaunch navigation in custom template onet.xml and WebProvisioned event (SharePoint 2010)
At some point I needed to create a custom onet.xml definition. There was a need to change the quicklaunch navigation with custom links while creating the site from that definition. At first I tried to write a Web-scoped feature which would access current web and do needed stuff. But it actually failed […]
Continue reading »