AW: [opencms-dev] URL of images are absolutes

Simon Wilks simon.wilks at silion.ch
Mon Feb 26 17:04:38 CET 2001


Hi,

There is the dangerous way and the safe way! I wrote a little search/replace
program that modifies the database contents directly.

The safer and probably best way would be to:

1) export the content using the Export tool in the Administration section
2) unzip the file
3) do a search and replace on the content/bodys directory with the string
you want to replace it with.
4) zip up the file again
5) copy the zip file to the export/build directory of your production system
6) on the production system create a project and do an import of the zip
file.

Regards,


Simon Wilks
Software Engineer
simon.wilks at silion.ch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
silion (switzerland) ag    software engineering
spinnereistrasse 8              9008 st. gallen
tel 0878 80 90 60             fax 0878 80 90 30
info at silion.ch                    www.silion.ch

a member of the Penta Group   www.pentagroup.ch



> -----Ursprüngliche Nachricht-----
> Von: owner-opencms-dev at www.opencms.com
> [mailto:owner-opencms-dev at www.opencms.com]Im Auftrag von Thiébaut
> CHAMPENIER
> Gesendet: Montag, 26. Februar 2001 10:38
> An: opencms-dev at www.opencms.com
> Betreff: [opencms-dev] URL of images are absolutes
>
>
> Hi,
>
> When I insert an image in a page using the drag&drop image chooser from
> the built-in html editor (BTW, how can I use FrontPage instead?) the URL
> og the image (<img src="...">) is absolute: when I'm sitting on the
> server, the url added is something like <img
> src="http://localhost/servlets/opencms/pics/images/my_logo.gif">.
>
> Then of course when you access the web site remotely this url is broken.
>
> Am I the only one with this problem? Is it a setup problem?
>
> regards.




More information about the opencms-dev mailing list