I have just upgraded an Umbraco 6.1.2 site to Umbraco 7.2.8.
The upgrade worked ok but I am now having a problem when Umbraco Content properties are empty.
We have a number of User Controls set up as Macros, which the content passed into them. The User Controls have default values (defined in the constructor) for all of their public properties. The properties are then created on the Doc Types to give the content editors the option to override the default text or settings if required.
So in Umbraco 6 (and below) when the content was left blank in the back office the User Control used the default value, but since upgrading these empty values are being passed into the User Controls, overriding the defaults and leaving the site with empty spaces where previously there was text. As well as some other, more serious issues, such as trying to do a jquery load of an empty string causing the page to get into an endless loading loop.
Has anyone else encountered this issue? Is there a setting somewhere in the Umbraco Settings which can make Umbraco 7 behave in the same way as Umbraco 6?
Empty Macro Parameters
Hi,
I have just upgraded an Umbraco 6.1.2 site to Umbraco 7.2.8.
The upgrade worked ok but I am now having a problem when Umbraco Content properties are empty.
We have a number of User Controls set up as Macros, which the content passed into them. The User Controls have default values (defined in the constructor) for all of their public properties. The properties are then created on the Doc Types to give the content editors the option to override the default text or settings if required.
So in Umbraco 6 (and below) when the content was left blank in the back office the User Control used the default value, but since upgrading these empty values are being passed into the User Controls, overriding the defaults and leaving the site with empty spaces where previously there was text. As well as some other, more serious issues, such as trying to do a jquery load of an empty string causing the page to get into an endless loading loop.
Has anyone else encountered this issue? Is there a setting somewhere in the Umbraco Settings which can make Umbraco 7 behave in the same way as Umbraco 6?
Thanks for any help,
Iain
is working on a reply...