[opencms-dev] Static Paths disappear in Template [OpenCMS 10.5.1]

Clement Wee clement at elixirtech.com
Fri Jun 2 12:07:39 CEST 2017


Hi all,

I have created a custom template with javascript references that look like
this:-

<script type="text/javascript" src="/static/scripts/charts.js" />
<script type="text/javascript" src="/static/scripts/map.js" />

I have created a static/scripts folder in my Tomcat webapps directory where
OpenCMS is also installed. However, when I do a static export, these lines
disappear from the exported template.

Can anyone explain why this is so?

Clement Wee
Singapore

On Sat, May 20, 2017 at 6:00 PM, <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. Context Menu Item (Patric Dosch)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 May 2017 05:59:42 -0700 (MST)
> From: Patric Dosch <patric.dosch at virtual-identity.com>
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Context Menu Item
> Message-ID: <1495198782418-26874.post at n3.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hey Tobias Herrmann, hey list,
>
> I found this answer for a context menu entry from 2013 ;)
> http://opencms.996256.n3.nabble.com/How-to-customize-
> ADE-menu-on-a-containerpage-tc23270.html#a23273
>
> But with this config in opencms-modules.xml for the exploretype
> containerpage
>
> <entry key="Assign module"
> name="org.opencms.gwt.client.ui.contextmenu.CmsContextMenuDialog"
> uri="commons/assign.jsp" params="dialogHeight=600|dialogWidth=800"
> rule="containerpage"/>
>
> I got the exception [Error reading resource from path "/null".].
>
>
>
> When adding the config for the exploretype xmlcontent in
> opencms-workplace.xml I got an display issue in the menu.
> <http://opencms.996256.n3.nabble.com/file/n26874/context-menu.png>
>
> And where can I add my key to translate the display name?
>
>
> Regards, Patric
>
>
>
>
> --
> View this message in context: http://opencms.996256.n3.
> nabble.com/Context-Menu-Item-tp26874.html
> Sent from the OpenCMS mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> _______________________________________________
> 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 289, Issue 2
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170602/0f32c888/attachment.htm>


More information about the opencms-dev mailing list