[opencms-dev] Headincludes not working in Apollo Template

Filip Kratochvil filip.kratochvil at nelasoft.cz
Thu Mar 2 13:22:58 CET 2017


Hi,

 

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.

 

Maybe they should update documentation (if there is bad information) and rename JSTL tag.

 

You can check this JSP, tag is included at the bottom:

/system/modules/org.opencms.apollo.template.formatters/templates/apollo-page.jsp

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz <http://www.nelasoft.cz/> 

Twitter: @NELASOFT <https://twitter.com/NELASOFT> 

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Clement Wee
Sent: Thursday, March 2, 2017 12:15 PM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Headincludes not working in Apollo Template

 

Hi Filip,

But I noticed that the template has a <cms:headincludes> tag. According to the documentation, that should force all formatter includes into the head?

Clement

 

On 2 Mar 2017 19:00, <opencms-dev-request at opencms.org> wrote:

Send opencms-dev mailing list submissions to
        opencms-dev at opencms.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
        opencms-dev-request at opencms.org

You can reach the person managing the list at
        opencms-dev-owner at opencms.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of opencms-dev digest..."


Today's Topics:

   1. Head Includes Not Working in Apollo Template (Clement Wee)
   2. Re: Head Includes Not Working in Apollo Template
      (Filip Kratochvil)


----------------------------------------------------------------------

Message: 1
Date: Thu, 2 Mar 2017 16:19:10 +0800
From: Clement Wee <clement at elixirtech.com>
To: opencms-dev at opencms.org
Subject: [opencms-dev] Head Includes Not Working in Apollo Template
Message-ID:
        <CAM8TMLAq=g1HZau++70yVgPRNb4kf7=pOhZg72JYBPzpgVeA7w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Dev Team,

I am using OpenCMS 10.5.1.

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.

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.

Is there some extra configuration for the Apollo Template?

Regards,
Clement
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/6dd107b6/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 2 Mar 2017 09:43:31 +0100
From: "Filip Kratochvil" <filip.kratochvil at nelasoft.cz>
To: "'The OpenCms mailing list'" <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] Head Includes Not Working in Apollo
        Template
Message-ID: <003401d29331$1303c360$390b4a20$@nelasoft.cz>
Content-Type: text/plain; charset="utf-8"

Hi Clement,



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.

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail:  <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web:  <http://www.nelasoft.cz/> www.nelasoft.cz

Twitter:  <https://twitter.com/NELASOFT> @NELASOFT



From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Clement Wee
Sent: Thursday, March 2, 2017 9:19 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Head Includes Not Working in Apollo Template



Hi Dev Team,

I am using OpenCMS 10.5.1.



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.

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.



Is there some extra configuration for the Apollo Template?



Regards,

Clement

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170302/2e20ddf8/attachment-0001.html>

------------------------------

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 278, Issue 3
*******************************************

 

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


More information about the opencms-dev mailing list