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?
Extension Builder - Property Substitution not working in WB20
Forum rules
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
This forum section can be used to submit suggestions for Extension Builder.
Note that this section is not monitored for support.
-
Rainbow1
-

- Posts: 21
- Joined: Sun Jan 28, 2018 9:50 pm
- crispy68
-

- Posts: 3146
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Extension Builder - Property Substitution not working in WB20
It is not an issue with WB20.
Your code should be:
FYI: This is shown in the help file on page 8.
Your code should be:
Code: Select all
<div style="font-size:$FontSize$px;">Hello World</div>-
Rainbow1
-

- Posts: 21
- Joined: Sun Jan 28, 2018 9:50 pm
Re: Extension Builder - Property Substitution not working in WB20
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.