[opencms-dev] Project Deployment Path

Thomas März thomasmaerz at gmx.de
Mon Apr 7 21:55:02 CEST 2003


From: Thomas Maerz <thomasmaerz at gmx.de>
Subject: Re: [opencms-dev] Project Deployment Path
To: opencms-dev at opencms.org
Gcc: nnml:mail.archive.sent.ever nnml:mail.archive.sent.tmp

Hello Steven,

> could I somehow change the path to
> http://localhost:8080/project/index.html instead.  

,----[ WEB-INF/config/opencms.properties ]
| # Prefix variables. The export prefix defines where to find the static reources.
| # The http prefix defines the way to the dynamic resources in OpenCms. The https and
| # the servername are used only for ssl. (If you use ssl you have to set the values like:
| # https://server.de/${WEB_APP_NAME}/opencms for the https prefix and http://server.de
| # for the servername)
| # The String ${WEB_APP_NAME} will be replaced by the name of
| # the webapplication. These variables can also be used in the rulesets.
| url_prefix_export=
| url_prefix_http=/${WEB_APP_NAME}/opencms
| url_prefix_https=
| url_prefix_servername=
`----

By setting url_prefix_export= (see six lines above; empty value) your
exported resources wont't have /${WEB_APP_NAME}/opencms as link prefixes
(see next quote).

> I am asking this because the link tool in WYSIWYG editor doesn't
> append the /opencms/opencms to the path automatically 

,----[ OpenCms Documentation Version 4.6 ]
| 9.4. What have I to do?
| OpenCms needs your help to adjust all links between resources. Therefore you have to
| mark all links in the templates (mastertemplates, frametemplates, contenttemplates and
| elements) with the tag <link>. In this link tag you define the link to another resource
| within the OpenCms system (No scheme, server name, port or webapplication name is
| allowed). You can add url parameters to the link, if you need:
| href="]]><link>/index.html</link><![CDATA["
| href="]]><link>/news.html?newsid=7</link><![CDATA["
| src="]]><link>/pics/logo.gif</link><![CDATA["
| An editor can use the HTML edit control. OpenCms will take care about links added
| with the control. Therefore it uses the JTidy library to find all ”a href” and ”img src” tags
| and inserts the needed OpenCms link tag.
`----

Best Regards,
Thomas März



More information about the opencms-dev mailing list