Pnpframework: Support Tokens in Page Mapping

Created on 5 Apr 2020  路  2Comments  路  Source: pnp/pnpframework

Category

[ ] Bug
[X] Enhancement

Problem Area

[ ] Page Transformation: Error during the setup/use of the Page Transformation UI solution (did you check our troubleshooting guide?)
[X] Page Transformation: Error during the use of page transformation from PnP PowerShell
[ ] Page Transformation: Error during the use of page transformation from .Net
[ ] Page Transformation: Page is not looking correct after transformation
[ ] Modernization Scanner: something went wrong...

Expected or Desired Behavior

Consider adding tokenization to the mapping file to populate properties like Header type in PowerShell before passing the mapping file into ConvertTo-PnPClientSidePage.

A mechanism much like the properties you can pass to PnP Provisioning that replace values prior to processing the file.

This would reduce the number of duplicate mapping files for variants of a transformation based on criteria, see ref pnp/sp-dev-modernization#459 for details of a recent scenario example.

page transformation 馃 backlog

Most helpful comment

I will be starting this one next, sorry missed June release.

All 2 comments

@pkbullock , @mbice,

Simple token support (non nested simple tokens in webpartmapping.xml and your page layout mapping files) in combination with having an option to pass them along on the PS commandline shouldn't be hard to build. I'm OOF until April 20th, but will assign this to the May release for now.

I will be starting this one next, sorry missed June release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gautamdsheth picture gautamdsheth  路  6Comments

kevmcdonk picture kevmcdonk  路  7Comments

MattiaBonanni picture MattiaBonanni  路  4Comments

derhallim picture derhallim  路  5Comments

mohammadamer picture mohammadamer  路  3Comments