XF 2.3 How to use an image with variations as a background image

Kirby

Well-known member
I might be missing smth, but it seems like I am unable to figure out how to use an image with variations (like publicLogoUrl) as a background image.

Smth. like
Code:
#myid
{
    background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'default'});
   
    .m-colorScheme(dark {
        background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'alternate'});
    });
}
might work, but that seems pretty complicated (and kinda inefficient) - there must be a simpler way to do this?
 
That is the way to do it.

 
Back
Top Bottom