template: ad_above_contentWhat do you mean?
Why would you do something like that? enableResponsive is simply a style property, its not an indication of width or anything else.template: ad_above_content
<xen:if is="@enableResponsive">
html code for a Banner: 360 width
<xen:else />
html code for a Banner: 728 width
</xen:if>
Thank you for this basic knowledge I lacked. Got hyped over nothing lol.Why would you do something like that? enableResponsive is simply a style property, its not an indication of width or anything else.
If your idea is to serve different content depending on width, you are doing it wrong. It is impossible to put such conditional statements in templates because templates are parsed on server side and browser window width is not known. Width detection is done on client side via ether JavaScript or CSS, which happens after templates have been rendered and sent to client.
Thank you for this basic knowledge I lacked. Got hyped over nothing lol.
We use essential cookies to make this site work, and optional cookies to enhance your experience.