Page 1 of 1

Extension Builder - Property Substitution not working in WB20

Posted: Sat Dec 13, 2025 1:51 pm
by Rainbow1
I’m building a custom extension in Extension Builder for Web Builder 20.
I’ve defined a property (Name: FontSize, Variable: $FontSize$, Type: numeric, Default: 40).
In the HTML tab I reference it like this:
<div style="font-size:{FontSize}px;">Hello World</div>

When I publish a page with the extension, the output HTML still shows {FontSize} literally instead of 40px.
I’ve tried:
- Numeric, Boolean, and Combobox property types
- Fresh exports with new names/versions
- Installing via Extension Manager
- Publishing a new blank page
Even a minimal test (<div>{TestValue}</div>) still shows {TestValue} in the published source.
Is this a known issue with WB20 or Extension Builder? Could this be a version mismatch or install corruption?
What’s the correct way to ensure substitution works?

Re: Extension Builder - Property Substitution not working in WB20

Posted: Sat Dec 13, 2025 3:16 pm
by crispy68
It is not an issue with WB20.

Your code should be:

Code: Select all

<div style="font-size:$FontSize$px;">Hello World</div>
FYI: This is shown in the help file on page 8.

Re: Extension Builder - Property Substitution not working in WB20

Posted: Sat Dec 13, 2025 7:42 pm
by Rainbow1
What a 'Muppet' I totally missed it!! I did read it but just carried on writing my own code without reading it fully!! I rebuilt it so many times and got so frustrated when it failed. Thanks for the quick reply, and yes when I put the code example in it works just fine. Thanks for your polite reply.