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

Enable Custom Site definition on feature activation

$
0
0

Hi All,

I want to enable my custom site definition only on activating feature.

For example:

I have created new custom site definition called "SampleTemplate" under Sharepoint customization categories. Once it is deployed as Farm solution, the template is available for all Web application in entire farm server like team site template, publishing template,etc.

But my requirement is that I want to make my custom site definition to be available / visible under "Sharepoint customization" categorties only when I activate particular feature  in my site collection / web application.

I am unable to achieve through feature stapling, custom feature definition or event recievers ? Any one can suggest on this.

Thanks in advance!!!!

Regards,

Subbu


Viewing all articles
Browse latest Browse all 7589

Trending Articles