[opencms-dev] Condition for headincludes tag

Knezik Jan jan.knezik at vsb.cz
Mon Jan 1 12:47:14 CET 2018


Hello Filip,

you are right. Unfortunately, there are some libraries/components (ie lightgallery.js) which won't work properly unless placed in the page header.

?

Jan Knezik?


________________________________
Od: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> za uživatele Filip Kratochvil <filip.kratochvil at nelasoft.cz>
Odesláno: 22. prosince 2017 17:50
Komu: 'The OpenCms mailing list'
Předmět: Re: [opencms-dev] Condition for headincludes tag

Hello Jan,

no, you can't use any condition.

But if you will include css/js using formatter's configuration described here:
http://documentation.opencms.org/opencms-documentation/content-in-opencms/formatters-and-their-configuration/index.html

you can make more than one formatter for one resource type. One formatter will include css/js, second will not include css/js.

--
S pozdravem / Kind regards
Filip Kratochvil


Od: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] za uživatele Knezik Jan
Odesláno: 22 December 2017 17:20
Komu: opencms-dev at opencms.org
Předmět: [opencms-dev] Condition for headincludes tag

Hello,
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?

Thank you very much,
Jan Knezik


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180101/e38b3470/attachment.htm>


More information about the opencms-dev mailing list