Getting All Publishing Pages into Output Xml format

%3CLINGO-SUB%20id%3D%22lingo-sub-722422%22%20slang%3D%22en-US%22%3EGetting%20All%20Publishing%20Pages%20into%20Output%20Xml%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722422%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20issue%20the%20following%20command%20against%20a%20Publishing%20Site%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EGet-PnPProvisioningTemplate%20-Handlers%20Pages%2CPageContents%2CPublishing%2CWebPart%20-PersistPublishingFiles%20-IncludeNativePublishingFiles%20-Verbose%20-Force%20-Debug%20-Out%20%24recent%2FMySitePagesTemplate2-Search.xml%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Output%20only%20returns%20the%20File%20content%20for%20default.aspx%2C%20it%20does%20not%20return%20ANY%20other%20file%20located%20in%20the%20Search%20Center%20Pages%20folder.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120740iBB0EB97E0F01C98A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-06-26_13-18-37.png%22%20title%3D%222019-06-26_13-18-37.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20several%20pages%2C%20results.aspx%2C%20videresults.aspx%2C%20that%20are%20not%20generated%20in%20the%20output.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120739i623F3F7DDDAE04F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-06-26_13-14-00.png%22%20title%3D%222019-06-26_13-14-00.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIs%20a%20custom%20handler%20needed%3F%26nbsp%3B%20How%20do%20I%20get%20it%20to%20recognize%20the%20other%20pages.%26nbsp%3B%20I%20am%20willing%20to%20develop%20the%20code.%26nbsp%3B%20First%2C%20I%20would%20need%20some%20guidance%20for%20the%20best%20means%20to%20setup%20a%20test%20case%20in%20the%20PnP%20PowerShell%20library%20and%20then%20work%20out%20the%20code%20issues%20as%20required.%20Any%20help%20or%20guidance%20is%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-722422%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPublishing%20Pages%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Senior Member

When I issue the following command against a Publishing Site:

 

Get-PnPProvisioningTemplate -Handlers Pages,PageContents,Publishing,WebPart -PersistPublishingFiles -IncludeNativePublishingFiles -Verbose -Force -Debug -Out $recent/MySitePagesTemplate2-Search.xml

 

The Output only returns the File content for default.aspx, it does not return ANY other file located in the Search Center Pages folder.

2019-06-26_13-18-37.png

 

 

There are several pages, results.aspx, videresults.aspx, that are not generated in the output.

2019-06-26_13-14-00.png

Is a custom handler needed?  How do I get it to recognize the other pages.  I am willing to develop the code.  First, I would need some guidance for the best means to setup a test case in the PnP PowerShell library and then work out the code issues as required. Any help or guidance is greatly appreciated.

 

 

 

 

 

 

 

0 Replies