1

despite placing the following code in my onet.xml, the publishing feature is not activated.

<Feature ID="A392DA98-270B-4e85-9769-04C0FDE267AA">
<!-- PublishingPrerequisites -->
</Feature>

<Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4">
<!-- ViewFormPagesLockDown -->
</Feature>

<Feature ID="AEBC918D-B20F-4a11-A1DB-9ED84D79C87E">
<!-- PublishingResources -->
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="AllowRss" Value="false"/>
<Property Key="SimplePublishing" Value="false" />
</Properties>
</Feature>

<!-- Publishing Infrastructure Feature --> 
<Feature ID="F6924D36-2FA8-4f0b-B16D-06B7250180FA"/>

I need this feature to be activated, because I have a feature-receiver which executes some code dependent on the feature.

  • what SharePoint version you are using? What error you getting when activating the publishing feature? – Waqas Sarwar MVP Jan 8 '14 at 14:42
  • Try and place it at the top and see what happens. – user2536 Jan 8 '14 at 14:44
  • SharePoint 2010, when activating the publishing feature theres isn't error. I can activate the feature in Site Collection Administration : Features – user615993 Jan 8 '14 at 14:47
0

I believe you are experiencing a combination of issues:

  • the actual Publishing features are many for each Web, which must all properly be activated, as Web features (is this the section where you have the GUID added?). But the only one you need to actually add in the WebFeatures is SharePoint Server Publishing (94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb) as the others are hidden, and normally activated automatically.
  • You need to ensure that in the SiteFeatures you have the SharePoint Server Publishing Infrastructure (f6924d36-2fa8-4f0b-b16d-06b7250180fa) - do you have this here?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.