<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: "Cambria Math"; } @font-face { font-family: Calibri; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; } p.msonormal0, li.msonormal0, div.msonormal0 { margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; } span.StylE-mailovZprvy18 { font-family: Calibri, sans-serif; color: windowtext; } span.StylE-mailovZprvy19 { font-family: Calibri, sans-serif; color: windowtext; } .MsoChpDefault { font-size: 10pt; } @page WordSection1 { margin: 70.85pt; } div.WordSection1 { }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello Filip,</p>
<p>you are right. Unfortunately, there are some libraries/components (ie lightgallery.js) which won't work properly unless placed in the page header.</p>
<p><br>
</p>
<p>Jan Knezik<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Od:</b> opencms-dev-bounces@opencms.org <opencms-dev-bounces@opencms.org> za uživatele Filip Kratochvil <filip.kratochvil@nelasoft.cz><br>
<b>Odesláno:</b> 22. prosince 2017 17:50<br>
<b>Komu:</b> 'The OpenCms mailing list'<br>
<b>Předmět:</b> Re: [opencms-dev] Condition for headincludes tag</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hello Jan,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">no, you can‘t use any condition.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But if you will include css/js using formatter’s configuration described here:</p>
<p class="MsoNormal"><a href="http://documentation.opencms.org/opencms-documentation/content-in-opencms/formatters-and-their-configuration/index.html">http://documentation.opencms.org/opencms-documentation/content-in-opencms/formatters-and-their-configuration/index.html</a></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">you can make more than one formatter for one resource type. One formatter will include css/js, second will not include css/js.</p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:12.0pt; color:black; background:white">--<br>
S pozdravem / </span><span lang="EN-US" style="font-size:12.0pt; color:black; background:white">Kind regards</span><span lang="EN-GB" style="font-size:12.0pt; color:black; background:white"><br>
Filip Kratochvil<br>
<br>
</span><span lang="EN-GB" style=""></span></p>
</div>
<p class="MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="">Od:</span></b><span style=""> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>za uživatele </b>Knezik Jan<br>
<b>Odesláno:</b> 22 December 2017 17:20<br>
<b>Komu:</b> opencms-dev@opencms.org<br>
<b>Předmět:</b> [opencms-dev] Condition for headincludes tag</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">Hello,</span></p>
<p class="MsoNormal"><span lang="EN-US">I need a condition for including js and css files in xsd file (I am using headincludes tag). Is something like this available in OpenCMS?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you very much,</span></p>
<p class="MsoNormal"><span lang="EN-US">Jan Knezik</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
</div>
</div>
</body>
</html>