.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Where in my site is the feature used

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :SharePoint
 

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. 


Ofer Gal


View Complete Post


More Related Resource Links

Why do the aks master pages not get applied if the feature is not activated on the top site collecti

  
Hi

I installed AKS 2.0 and activated AKS feature. The problem I found was the aks master pages do not get applied if the feature is not activated on the top site collection. why is so?

example: If i activate the feature on http://<servername>/sites/<sitename> and apply the master page, I dont see any changes.

              But if i activate the same aks feature on http://<servername/ then everything started working on all sites.

              The reason i found is the CSS reference in the aks master pages.

              It reference should be given as follows:

                 for http://<servername>/sites/<sitename> ->  <link rel="stylesheet" type="text/css" href="../../Style%20Library/AKS/Aks_Band_Blueband.css"/>

                 for http://<servername>/ -><link rel="stylesheet" type="text/css" href="/Style%20Library/AKS/Aks_Band_Blueband.css"/>

So my question is, am i missing anything? am i supposed to activate the AKS feature on top level site collection at any cost? if yes, why is so? 

And after applying aks master pages, i see differnece in font sizes. Why the font size is getting changed?

Also

Why feature with event receiver doesn't activate properly after site provisioning?

  

Hi!

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

 

      <WebFeatures>

        <Feature ID="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5"/>

        <!-- TeamCollab Feature -->

        <Feature ID="F41CC668-37E5-4743-B4A8-74D1DB3FD8A4"/>

        <!-- MobilityRedirect -->

        <!--My EventReceivers Feature-->

        <Feature ID ="41178843-A6A4-47c7-9EF9-B8A432E02B88"></Feature>

      </WebFeatures>

 


Feature.xml

<

feature stapling done against site definition breaks when saving site as a template?

  
Hi, we have a bunch of feature stapling done against some of our site definitions on a solution we are working on. This feature staple has a bunch of feature dependancies which all work in a variety of ways. One of these dependancies then uses a feature receiver class to do some post provisioning setting up of web part connections and the like. This all works very well when creating a new site from a site definition etc etc. The problem arises when a user opts to provision a site in this way, and then uses the 'save as template' function within sharepoint. (BTW this is WSS 3.0 / MOSS). The site template saves correctly, but now the feature receiver never runs. I'm assuming this is because the associated feature staple doesnt run either? I've looked around and seen some reference to feature stapling not working against templates. Is this true? 

Retract custom master page feature and all site pages stop working

  
There is a requirement to apply custom branding on personal sites in a SP 2010 project. For this I have created a feature which uploads and applies the custom master page on creation of any new personal sites.   I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on a team site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master.   Any help on this is appreciated. Regards, Neha

Retract custom master page feature and all site pages stop working

  
I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on the root site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master. Any help on this is appreciated. Regards, Neha    

Office Sharepoint Server Publishing Infrastructure is missing in site collection feature SharePoint

  
I was trying to activate the Office Sharepoint Server Publishing Infrastructure feature in the site collection features but the feature is simply not there. Is this option not available in SharePoint Foundation 2010?

content Type at site collection level using feature.

  
I m planning to create a feature to install the content type and site colomun at site collection level. Now my doubt is? 1. what will happen when i de activate a feature with documents already there? 2. what will happen when i de activate a feature without documents? What are points i need to take care? 

Running code after site definition site creation in a event receiver or feature receiver

  
Hi guys I've got a site definition which is pretty much based on STS.This is it's own sharepoint project. Let's call this project SiteDefProj. Next in another SharePoint project (same solution though). Let's call this CustomListProject. In this project I've got a feature which provisions a bunch of lists based on custom content types - this feature is a site scoped. Let's call this feature: CustomListInstances. I have added a feature receiver to this feature to execute some custom code on the lists themselves (under feature activated) In my ONET.XML (part of the SiteDefProj) I have CustomListInstances feature ID as part of my <sitefeatures>. When I do a create site I can actually step through the code and see it actually being executed but after the site is created the list instances are created but it's like the code never run or did anything. The weird part is that stepping through the code while creating a site collection using my SiteDefProj the code runs great with no errors. All lists are there and the code runs smooth. If I manually create a STS site and activate my feature everything works and the code does actually run and the effects are visible after the feature is created. Again I can actually step through it in debug. My suspicion is that there's some sort of a race condition in the CREATE SITE functionality where maybe the web or site collection hol

SharePoint how does it know to use a feature default.aspx deployed instead of site definition defaul

  
I have created a feature which deploys a custom default.aspx page. The deployed file goes to the template\features{featureName} directory. How does SharePoint know to use this default.aspx page instead of the one that is located in SiteTemplates{Site Def name} directory?dave

Site Collection Reporting Feature?

  
Hi I'm wondering if anyone knows or has seen Microsoft documentation on what activating the "Reporting" feature within the Site Collection Features page will do?  The reason I ask is I thought that activating it at the site collection level was required in order to use site collection usage and site usage reports.  That's what MS's site says here:  http://technet.microsoft.com/en-us/library/cc262541(office.12).aspx  However I have one farm where those usage reports are available, but this site collection feature has not been activated.  Usage logging was enabled through CA for the farm and usage reporting was enabled through CA for the SSP). This is a MOSS 2007 environment.  

Feature with wsp for creating specific groups on any site creation

  
hi, i need to create a sharepoint feature for wss 3.0 with .wsp (wsp for easy deployment) which do folowing funtionality: Ability to run some custom code for creating specific custom groups on every site creation. Feature needs to be activated when deployed so when user create new site it creates groups based on our custom code( i have custom code for creating gorups just need to know how to attached it to feature which works on every site creation event) Any workable example is very helpful for me because i am very confuse and already did reasearch on that. i guess feature stapling is not the solution in my case. Thanks in advanced shaheen

programatically add link in site settings page through feature

  

Hi folks,

          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???

 

Your thoughts??

 

 

Thanks & regards

Pulikkan


accessing site name through feature activation.

  

HI,

I am currently using the site url to get the site to create Features. Below is the sample code:

[CODE]

  string strUrl = http://localhost:8099/sitename;

    using (SPSite site = new SPSite(strUrl))

    {

        using (SPWeb web = site.OpenWeb())

        {

}

}

[/CODE]

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

Error while installing a feature on sharepoint site

  

Hi everyone,

  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...

 

Thank you


Feature association in site definition( for site and subsite)

  

Hi

in Onet.xml

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 -->
       <

FeatureSiteTemplateAssociation Id="AE6860A5-B140-47BB-8FF4-D971FB93D682"
                                                                       TemplateName="BASICWCM#0"/>

Feature Id and template name is verified.
but feature is not getting activated.

Please suggest better approaches or if sample code for site collection
site def and ( site and subsite) def is available ,pls provide the link

Feature Stappling -Stappling multiple site features

  

Hi,

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'

 


Deploying the feature to a site (not globally) using WSPBuilder

  

Hi,

    I have developed an event handler for the task list as a feature, which overrides the ItemAdding,ItemDeleting and ItemUpdating event.
 I have even deployed the same on the server using the  WSPBuilder.

In the process of using the WSPBuilders, on creating the deployment folder I got a folder called "deploy"  in the "bin" folder.The deploy folder contains a folder, which again contains the deployment files like deploywithstsadm.bat, deploywithstsadmnocontenturls.bat, deploywithwspbuilder.bat  ......

For my project i used the deploywithstsadmnocontenturls.bat file, and deployed it. It gets deployed sucessfully.

The problem here is that the feature is getting deployed "Globally", how can i deploy it to a particular site like "ww.testsharepoint.com". ??????

 

With regards


Biju Software Engineer,MCP
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend