Feature Upgrading and Updating a Module containing Page Layouts

Hi,

I have a feature that deploys my page layouts via a Module. I want to add a new page layout to an already existing site collection that was created from my custom Web Template. I believe I should be able to do this using the FeatureUpgrading declarative approach. But I am not sure how to do this.

Do I...

  1. Add the new pagelayout.aspx to the Module in VS.
  2. This will then update the Elements.XML file in the module.
  3. Do  I then update the appropriate Feature.XML manifest and add the following
  <UpgradeActions>
    <VersionRange BeginVersion="0.0.0.0" EndVersion="1.0.0.0">
      <ApplyElementManifests>
        <ElementManifest Location="MOEnforcementsPageLayouts\Elements.xml" />
      </ApplyElementManifests>
    </VersionRange>
  </UpgradeActions>

And then run a PowerShell script to upgrade the Feature

Than

December 3rd, 2013 11:28am

Feature XML is the best manipulation for this I think.  StackExchange has a great post that you may find useful.  If you can check this out and then advise us how you fare, we can assist further.

http://sharepoint.stackexchange.com/questions/20162/how-to-update-custom-master-page-and-page-layout-which-is-already-deployed

Free Windows Admin Tool Kit Click here and download it now
December 4th, 2013 7:01am

Thanks Steven. But that is a programmatic approach and also refers I think to updating existing page layouts. I am wishing to deploy a new page layout as part of an Application Lifetime Management requirement. Feature Upgrading should be able to handle this as detailed here by Chris O'Brien; see An ApplyElementManifests element this is used to add new elements to an existing Feature. When the Feature is upgraded, any items (e.g. content types, modules etc.) will be provisioned according to the element manifest(s).

The trouble is Chris does not seem to  explain how to actually do this with a working example as far as I can see.

December 4th, 2013 7:09am

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

Other recent topics Other recent topics