deploying new page layout from an existing WSP solution?

Hi All,

I added a new page layout to an existing WSP solution. How can I deploy this page layout? If I perform an "update-spsolution", the site does not pick up the new layout. Do I need to remove the existing solution and add it as new or can I deactivate the existing feature that deploys the layout and activate it? What is the correct way?

If I remove the solution and add it again will there be any "side effects"?

Please let me know.

Thank you!

August 28th, 2015 5:39pm

hi there..

you need to remove your old solution and deploy new wsp file and activate the feature to complete the operation...

hope this will help......

Mark as answer if it is helpful....

Free Windows Admin Tool Kit Click here and download it now
August 29th, 2015 12:46am

Hi,

You can use "feature upgrade".

You need to edit the manifest of the feature that contain the new page layout, then using powershell update-solution and upgrade the feature.

Take a look to this article

http://www.sharepointnutsandbolts.com/2010/06/feature-upgrade-part-1-fundamentals.html

August 30th, 2015 1:54pm

Hi,

Deactivate and activate your feature after post deployment.


Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 1:37am

I got three different replies. Which approach should I use? What is the best practice and most widely used approach?

1. remove and add
2. deactivate and activate
3. feature upgrade

Which approach does Microsoft recommend?

August 31st, 2015 3:58pm

Hi,

As far as I know, The best and recommended approach is based on the elements specified in the manifest.xml, scope of the feature and feature dependencies.

In your scenario you are adding a new page layout to existing wsp. i.e. you are not modifying any properties of the existing elements (page layouts, content types and fields). So you update solution and check for the new page layout available in the master page gallery. If it is not available deactivate and activate the feature. Or create new features for the new elements that are needs to provisioned.

For example if you are adding new fields to your existing content types or updating/Adding any elements provisioned to site. Follow the Feature upgrade  explained in http://www.sharepointnutsandbolts.com/2010/06/feature-upgrade-part-1-fundamentals.html  

Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 2:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics