View Complete Post
I have defined feature with event receivers for my document library and for users List .
I try to activate my feature in onet.xml in section <WebFeatures>. After provisioning a new site from onet.xml all work fine and my feature is shown as activated, but event receivers doesn't fire. It fires only after reactivating my feature (deactivate,
then activate it again). But I need my feature works immediately after site provisioning without deactivating and activating it again. Who knows how to solve this problem?
part of ONET.xml
<!-- TeamCollab Feature -->
<!-- MobilityRedirect -->
<!--My EventReceivers Feature-->
<Feature ID ="41178843-A6A4-47c7-9EF9-B8A432E02B88"></Feature>
Im newbie in SharePoint, we have created an Application Page for Managing the WebPart Permissions. We need to add one link called "ManageWebParts" in the site settings Page so that
the admin can go the site settings and Navigate to the ManageWebpart.aspx Page using this link. How we can add the link through programatically using feature???
Thanks & regards
I am currently using the site url to get the site to create Features. Below is the sample code:
string strUrl =
using (SPSite site =
using (SPWeb web = site.OpenWeb())
I would like to generalize the function. Currently, i am passing the server url and site name in the code as string variable. So when i activate the feature, the feature is activated for the site alone.
Is it possible to make the site as a generalised one. while activating feature through stsadm command, the site name is provided. Can the site name be taken from here for the code. That is in the site, i want to pass only the server url as site. when doing
the activation, either way the site name will
I am trying to install a feature that creates an custom menu item.
When I run the stsadm command the following error comes :
Required tag 'http://schemas.microsoft.com/sharepoint/:Feature' is missing from XML file ...\12\Templates\Features\GoogleMenuItem\feature.xml'. found 'Feature' instead.
Kindly help me resolve this error...
one configuration --Template --is for Site collection site definition
second configuration --Template --is for subsite site definition
when subsite is created with second configuration receiver Feature
should be activated
I have associated feature as
<!-- BascBrandGroup -->
Any one knows of a utility that can tell me in which pages in 2007 site collection is a feature (wsp) used.
we are migrating a 2007 collection to a new farm of 2010 but want to eliminate all the dependencies on WSPs that we are not moving to 2010.
In SPsite definition,I have created one feature which activates when site is created.
Now i need to create second feature which should be activated after the first feature is activated
but I got the error
Dependency feature with id d43678b9-c58e-4902-9fd9-b9ced3f45049 for feature 'XSite' (id: 07a8588d-cfb5-46bd-a315-6fa80e31aaa6) is not installed.
where dependancies are specied in feature.xml of 'XSite'