DISQUS

SharePoint Magazine: Introduction to SharePoint Feature Stapling

  • Vinay · 11 months ago
    Hi Paul,

    This is Vinay. I have looked at the post and it was very useful for me.
    But could you please tell me how is the feature being stapled getting activaed in the new site that is created.
    I have followed the steps above but I could see the sites created only when the feature is activated manually in the new site created. Please advise
  • anujahnavi · 7 months ago
    Hi Vinay,
    Are you able to solve the problem. I am also facin ghte same thing. What else i have to do to activate teh feature automatically when a new team site is created. What am i doing wrong. I ahve done the same process what is mentioned inthis article. Did you achive this at any case?

    Please help me. give me a idea what could be go wrong.
    Thanks in advance.

    Regards,
    Anu
  • Paul Liebrand · 10 months ago
    Vinay,

    If the feature has been stapled correctly, it should activate when the site has been created and not require manual activation. It seems that something is not stapled correctly. What site template are you selecting when you are creating a new site?

    Thanks,

    Paul
  • Sunil · 10 months ago
    Hi Paul,
    Nice article!
    I would like to know how to use feature stapling to change the welcome page of the subsite to one of the custome page and create few fresh pages using predefied custome page layouts from the root site.

    Can u please elobrate and provide one example for doing the same.
  • dahlbyk · 9 months ago
    In the receiver, none of web, site or rootWeb should be disposed (wrapped in using).
  • Paul Liebrand · 8 months ago
    Thank you for the feedback. I'll be working with SharePoint Magazine to get the code examples updated to appropriate reflect this.
  • anujahnavi · 7 months ago
    Hi Paul,
    I am unable to activate the feature automatically when a new team site is created. Where could be the wrong step that i have taken? why the feature is not stappled correctly?

    Please help me. give me a idea what could be gone wrong.
    Thanks in advance.

    Regards,
    Anu
  • Senthil · 7 months ago
    Hi Anu,

    Make sure that the Liebrand Sample Stapler is installed in your Farm. If you are doing

    Thanks & Regards
    Senthil
  • chrislovesdana · 3 months ago
    Nice post. Right to the point. I used your example to create a template for Visual Studio.
  • sarangasl · 1 month ago
    Nice !!!!!!!!

    Create Custom SharePoint Features, it is simple.
    Try this too,
    Custom SharePoint Features