Has Anyone having problems passing parameters into PAge Extensions ?

Iron Contributor

Hi

 

I have been following the example of adding headers and Footers as extensions into Modern pages :- https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-exte...

 

It all works well but ir does not seem to be taking parameters from elements.xml.

 

I keep getting "Bottom Property was not defined" in the footer which means that this.properties.Bottom is undefined.

elements.xml -> 

<?xml version="1.0" encoding="utf-8"?>
<CustomAction
Title="HelloWorld"
Location="ClientSideExtension.ApplicationCustomizer"
ClientSideComponentId="8dbc0fce-348b-4e93-adfa-9bf5fa310f9e"
ClientSideComponentProperties="{&quot;Top&quot;:&quot;Top area of the page&quot;,&quot;Bottom&quot;:&quot;CopyRight XXXX 2017&quot;}">
</CustomAction>
</Elements>
 
Thanks
 
Nigel

 

PS after a bit of debugging type logging I find that the value of  this.Properties is testMessage with a value of "Test Message".  The only place I can find this in my solution is serve.json adding an additional property "Bottom" to this serve.json does nothing.  So where is my application picking testMessage up from ? @VesaJuvonen

 

0 Replies