Fixed Can't enable variations for custom logo style property

Kirby

Well-known member
Affected version
2.3.0 Beta 1
XenForo uses the same logo image for wide and narrow screens.

This might not be ideal, epsecially if the logo ist not a vector image.

We have therefor added another style property to define a logo image for narrow screenst to support style variations we need to specifiy an alternate image.

But when editing the style property checkbox Enable variations is not being shown

1711025131617.webp

1711025161414.webp

Edit
Okay ... this is probably working as designed - entity method canHaveVariations is checked.
I am not sure if I like this, what if designers need a image style property with variations - are they expected to also ship an Add-on just to enable this?

Edit2
This is really confusing ...
Even without overriding the method (to allow other style properties than the hardcoded ones) I can a a new Value - String - Asset property and set Enable variations.
The style property then has variations, but if I edit it again the chebox is not being shown and after saving the style property has lost its variation capability.
 
Last edited:
Top Bottom