Zone rendering issue #11474
Replies: 1 comment
-
Yes, i noticed this behavior recently using net5.0, in my case I just tried it with the existing Didn't try it but maybe it was already working with Liquid tags as used in TheBlogTheme, you could try it. But just re-tried with the last dev, so using net6.0, and it works, that said it also renders extra widget html div which is not good in the page Head section. So anyway you have better to use a Liquid widget in any other layout zone, e.g. the Head layout zone (not the page Head section) and then in your widget use Liquid Tags, those dedicated for injecting resources at the right locations.
With more optional parameters
Or if all defined in a ResourceManifestOptionsConfiguration.cs, just specify the resource name.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I developed a layout for a them as following:
where
GdprBanner
is a zone created with custom recipe and it contains the following Liquid snippet:@await RenderSectionAsync("GdprBanner", required: false)
always renders inside<body>
instead in<head>
.Where should I move such code in order to render inside ''?
Beta Was this translation helpful? Give feedback.
All reactions