Answered by:
Site collection feature dependency on Project Server 2010?

Question
-
I have a site collection feature that should only be activated on a PWA site collection. Is there any Project Server feature I can make my feature depend on?
Or is there some other way to check if a site collection is a PWA site collection?
Thursday, November 4, 2010 11:19 PM
Answers
-
Hi rve123,
Not sure exactly what your feature needs to do - but generally PWA can be thought of as the web rather than the site collection. So features such as PWAPages (Feature Id="9B8AA61F-52A0-4ecb-A1B4-E400404BFA4F") would belong to the web http://server/pwa rather than the site http://server/pwa - if that makes sense. I guess you could iterate through the webs in a site to see if any were PWA 'webs'. Hope this helps.
Best regards,
Brian.
Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Proposed as answer by Christophe FiessingerMicrosoft employee Sunday, November 7, 2010 5:32 PM
- Marked as answer by Alexander.Burton Saturday, March 26, 2011 7:15 AM
Friday, November 5, 2010 3:15 PM
All replies
-
Hi,
I don't have a 2010 PWA instance handy, but from memory there is a site collection feature fcalled 'Project Web App Ribbon' that is installed and activated on the PWA Site Collection. You may be able to make your feature dependent on this.
Alex Burton
www.epmsource.com | Twitter
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product PageFriday, November 5, 2010 1:28 AM -
Thanks for the reply. I did notice that feature (as well as a couple others that come with Project Server) however they all are able to be activated even on non-pwa site collections. So while those features come with project server it doesn't appear that they depend on project server (at least for activation sake).Friday, November 5, 2010 3:27 AM
-
Hi rve123,
Not sure exactly what your feature needs to do - but generally PWA can be thought of as the web rather than the site collection. So features such as PWAPages (Feature Id="9B8AA61F-52A0-4ecb-A1B4-E400404BFA4F") would belong to the web http://server/pwa rather than the site http://server/pwa - if that makes sense. I guess you could iterate through the webs in a site to see if any were PWA 'webs'. Hope this helps.
Best regards,
Brian.
Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Proposed as answer by Christophe FiessingerMicrosoft employee Sunday, November 7, 2010 5:32 PM
- Marked as answer by Alexander.Burton Saturday, March 26, 2011 7:15 AM
Friday, November 5, 2010 3:15 PM