<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=CS link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>scripts were included in to the head in previous versions of opencms. But it is better to place them before the closing body tag in this time.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe they should update documentation (if there is bad information) and rename JSTL tag.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You can check this JSP, tag is included at the bottom:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/system/modules/org.opencms.apollo.template.formatters/templates/apollo-page.jsp<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Calibri","sans-serif";color:black'>--<br>S pozdravem / </span><span lang=EN-US style='font-family:"Calibri","sans-serif";color:black'>Kind regards</span><span style='font-family:"Calibri","sans-serif";color:black'><br>Filip Kratochvil<br>------------------------------------------------<br>NELASOFT Technologies, s.r.o.</span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><br></span><span style='font-family:"Calibri","sans-serif";color:black'>E-mail: </span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a><br></span><span style='font-family:"Calibri","sans-serif";color:black'>Web:</span><span style='font-family:"Calibri","sans-serif";color:#1F497D'> <a href="http://www.nelasoft.cz/" target="_blank">www.nelasoft.cz</a></span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:black'>Twitter: </span><span style='color:#1F497D'><a href="https://twitter.com/NELASOFT" target="_blank">@NELASOFT</a></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Clement Wee<br><b>Sent:</b> Thursday, March 2, 2017 12:15 PM<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> Re: [opencms-dev] Headincludes not working in Apollo Template<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p>Hi Filip,<o:p></o:p></p><p>But I noticed that the template has a <cms:headincludes> tag. According to the documentation, that should force all formatter includes into the head?<o:p></o:p></p><p>Clement<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 2 Mar 2017 19:00, <<a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.org</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Send opencms-dev mailing list submissions to<br> <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:opencms-dev-owner@opencms.org">opencms-dev-owner@opencms.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of opencms-dev digest..."<br><br><br>Today's Topics:<br><br> 1. Head Includes Not Working in Apollo Template (Clement Wee)<br> 2. Re: Head Includes Not Working in Apollo Template<br> (Filip Kratochvil)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 2 Mar 2017 16:19:10 +0800<br>From: Clement Wee <<a href="mailto:clement@elixirtech.com">clement@elixirtech.com</a>><br>To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>Subject: [opencms-dev] Head Includes Not Working in Apollo Template<br>Message-ID:<br> <CAM8TMLAq=g1HZau++70yVgPRNb4kf7=<a href="mailto:pOhZg72JYBPzpgVeA7w@mail.gmail.com">pOhZg72JYBPzpgVeA7w@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi Dev Team,<br><br>I am using OpenCMS 10.5.1.<br><br>I have created a new resource-type and added the necessary head includes to<br>the formatter. The head includes are necessary as the middle of the<br>formatter includes a script that calls one of the included methods.<br><br>However, when I drag it onto an Apollo Template Container Page, the head<br>includes don't show up at the head; instead they show up at the tail end of<br>the body. As a result, my script fails to run.<br><br>Is there some extra configuration for the Apollo Template?<br><br>Regards,<br>Clement<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/6dd107b6/attachment-0001.html" target="_blank">http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/6dd107b6/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 2 Mar 2017 09:43:31 +0100<br>From: "Filip Kratochvil" <<a href="mailto:filip.kratochvil@nelasoft.cz">filip.kratochvil@nelasoft.cz</a>><br>To: "'The OpenCms mailing list'" <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>Subject: Re: [opencms-dev] Head Includes Not Working in Apollo<br> Template<br>Message-ID: <003401d29331$1303c360$390b4a20$@<a href="http://nelasoft.cz" target="_blank">nelasoft.cz</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi Clement,<br><br><br><br>formatter includes are placed at the bottom of the page (before ending </body> tag; check apollo-page.jsp). So, you are probably calling a script (in your formatter) that isn?t actually placed on the page.<br><br>--<br>S pozdravem / Kind regards<br>Filip Kratochvil<br>------------------------------------------------<br>NELASOFT Technologies, s.r.o.<br>E-mail: <mailto:<a href="mailto:filip.kratochvil@nelasoft.cz">filip.kratochvil@nelasoft.cz</a>> <a href="mailto:filip.kratochvil@nelasoft.cz">filip.kratochvil@nelasoft.cz</a><br>Web: <<a href="http://www.nelasoft.cz/" target="_blank">http://www.nelasoft.cz/</a>> <a href="http://www.nelasoft.cz" target="_blank">www.nelasoft.cz</a><br><br>Twitter: <<a href="https://twitter.com/NELASOFT" target="_blank">https://twitter.com/NELASOFT</a>> @NELASOFT<br><br><br><br>From: <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>] On Behalf Of Clement Wee<br>Sent: Thursday, March 2, 2017 9:19 AM<br>To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>Subject: [opencms-dev] Head Includes Not Working in Apollo Template<br><br><br><br>Hi Dev Team,<br><br>I am using OpenCMS 10.5.1.<br><br><br><br>I have created a new resource-type and added the necessary head includes to the formatter. The head includes are necessary as the middle of the formatter includes a script that calls one of the included methods.<br><br>However, when I drag it onto an Apollo Template Container Page, the head includes don't show up at the head; instead they show up at the tail end of the body. As a result, my script fails to run.<br><br><br><br>Is there some extra configuration for the Apollo Template?<br><br><br><br>Regards,<br><br>Clement<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/2e20ddf8/attachment-0001.html" target="_blank">http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/2e20ddf8/attachment-0001.html</a>><br><br>------------------------------<br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br>End of opencms-dev Digest, Vol 278, Issue 3<br>*******************************************<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>