none
site template visible only within the site RRS feed

  • Question

  • Hi,

    is it possible to create template visible only within the site and not visible for other sites (except for own subsite) ?

    Thanks,

    Michel

    Friday, August 16, 2013 6:22 PM

Answers

  • Hi Michel,

    This is possible if you create a web template as a feature. This is introduced in SharePoint 2010. You can create a Site/Web -Scoped feature for web template.

    The feature conatins onet.xml file detailing the base template being used.

    Refer this link for more details and example http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx


    Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile

    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Monday, August 19, 2013 10:36 AM
  • If you add a site template as an STP file to the site collection it will obviously only be available within that site collection. Further to that you can specify the templates available to sites and subsites. Beyond that you can also specify the OOB templates available.

    This blog shows how to set the subsites available to a site: http://praveenbattula.blogspot.co.uk/2010/02/sharepoint-2010-site-templates-not.html

    There's automated processes to manage this, Gary Lapointe has a good blog post on this but it is from 2007 so you might need to tweak it: http://blog.falchionconsulting.com/index.php/2007/08/set-available-site-templates/

    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Friday, August 16, 2013 9:10 PM
  • Hi,

       If you save a site as a template then it will be saved at the root level and will be available to the subsites in that site collection. So, you can not hide site templates from others sites.

    On the other hand, to fulfill to requirements, you can create another site collection and upload the saved site template in that site collection.

    Regards,

    Malkeet Singh

    • Proposed as answer by tracycaiModerator Monday, August 19, 2013 2:22 AM
    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Sunday, August 18, 2013 4:05 AM
  • Hi Michel,

    You can add an Web provisioned event receiver and in that event receiver you can check for the current web template if it is same as your custom web template then you can hide all web templates but other than your own.

    Here is the link how you can show/hide web templates. The code in below link is written on a feature receiver but you should write it on your Web provisioned event receiver.

    http://www.sharemuch.com/2010/11/30/hiding-sharepoint-2010-web-templates-programmatically/

    Kindly let me know in case you face any issues in achieving this. :)


    #RoHsTr


    Monday, August 19, 2013 6:54 AM

All replies

  • If you add a site template as an STP file to the site collection it will obviously only be available within that site collection. Further to that you can specify the templates available to sites and subsites. Beyond that you can also specify the OOB templates available.

    This blog shows how to set the subsites available to a site: http://praveenbattula.blogspot.co.uk/2010/02/sharepoint-2010-site-templates-not.html

    There's automated processes to manage this, Gary Lapointe has a good blog post on this but it is from 2007 so you might need to tweak it: http://blog.falchionconsulting.com/index.php/2007/08/set-available-site-templates/

    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Friday, August 16, 2013 9:10 PM
  • I'm not sure, that I described the case enough clearly. Actually I would like to hide my own templates for other sites.

    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    • Unmarked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Saturday, August 17, 2013 8:32 PM
  • Hi,

       If you save a site as a template then it will be saved at the root level and will be available to the subsites in that site collection. So, you can not hide site templates from others sites.

    On the other hand, to fulfill to requirements, you can create another site collection and upload the saved site template in that site collection.

    Regards,

    Malkeet Singh

    • Proposed as answer by tracycaiModerator Monday, August 19, 2013 2:22 AM
    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Sunday, August 18, 2013 4:05 AM
  • Hi Michel,

    You can add an Web provisioned event receiver and in that event receiver you can check for the current web template if it is same as your custom web template then you can hide all web templates but other than your own.

    Here is the link how you can show/hide web templates. The code in below link is written on a feature receiver but you should write it on your Web provisioned event receiver.

    http://www.sharemuch.com/2010/11/30/hiding-sharepoint-2010-web-templates-programmatically/

    Kindly let me know in case you face any issues in achieving this. :)


    #RoHsTr


    Monday, August 19, 2013 6:54 AM
  • Hi Michel,

    This is possible if you create a web template as a feature. This is introduced in SharePoint 2010. You can create a Site/Web -Scoped feature for web template.

    The feature conatins onet.xml file detailing the base template being used.

    Refer this link for more details and example http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx


    Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile

    • Marked as answer by Michel777 Monday, August 19, 2013 6:53 PM
    Monday, August 19, 2013 10:36 AM