Migration
This page lists required migration steps when upgrading to a new version of the extension.
Version 1.1.0
Wrapped current values
Non-stringable values resolved by
HBS_*
content objects are now
provided as current value wrapped in a
Current object provided by
EXT:handlebars. This applies to stdWrap as well as to
if.. Arrays still resolve to a comma-separated list of
their scalar values (now including stringable objects), and all other
non-stringable values resolve to an empty string.
Within
std, non-stringable objects previously resulted in a
null
current value (within
if., they caused
errors instead). Since they are now wrapped, checks for
null
values such
as
if or
if. no longer apply
to them. Use checks for empty values instead, e.g.
if or
if..
Custom PHP code reading
Content (e.g. user
functions) receives the wrapper and must unwrap the value, see
stdWrap support.
In addition, stringable values (scalar values and stringable objects such as
Safe) are no longer converted to strings before being provided as
current value within
std. TypoScript is not affected by this,
but custom PHP code reading
Content now
receives the original value, e.g.
true
instead of
'1'
or
42
instead of
'42'
.