AW: Re: [opencms-dev] Static export without RFS-prefix doesn't work

Ulrich Rueth lists at rueth.info
Fri Jan 21 18:48:14 CET 2005


Michael, stop!!! Was my own mistake!!! Sorry!!! OpenCms does everything like
it should!!!

Regards
Ulrich


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Ulrich Rueth
Gesendet: Freitag, 21. Januar 2005 18:38
An: The OpenCms mailing list; m.moossen at alkacon.com
Betreff: AW: Re: [opencms-dev] Static export without RFS-prefix doesn't
work


Michael,

thanks, it now works. There is only one more problem with this method, which
I think is really a bug now. I have some pure folder links, e.g. in the
source file on OpenCms href="/sites/software/latex/", which should be
translated to say href="../../latex/" during static export with relative
links enabled. But OpenCms does not write any link there, it comes out as
href="".

Of course I can work-around this problem by modifying my sources and always
adding "index.html" if there is a pure folder link, so that the above link
would be href="/sites/software/latex/index.html" in OpenCms, this works then
in static export, it is correctly displayed as
href="../../latex/index.html". But is this supposed to be like this? I don't
think so.

Thanks again for your help!
Regards
Ulrich

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Michael Emmerich
Gesendet: Freitag, 21. Januar 2005 17:59
An: 'The OpenCms mailing list'
Betreff: AW: Re: [opencms-dev] Static export without RFS-prefix doesn't
work


Hello Ulrich,

the static export must be done to a folder that is within your webaplication
folder in tomcat.

So you might add some rewriting rules to your apache that it will access the
files to the export folder.

One possible way to get rid of the /opencms/opencms/ in the path of the
exported resources:

Add a "exportpath" property to your "/sites/default/ folder (assuming that
you are working in the default site) and set it to "/"
-> the effect is that you have no "/sites/default/ in path anymore

In the "opencms-importexport.xml set the note

<userelativelinks>true</userelativelinks>

to true.

-> the effect is that all the linking between the exported resources is done
with relative links and you have no /opencms/opencms/ in them anymore.
Those files will then be usable completely without OpenCms and could be
transferred to a bitterent server, a CD or whatever.

Regards,
Michael Emmerich
Alkacon Software



-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Ulrich Rueth
Gesendet: Freitag, 21. Januar 2005 17:41
An: The OpenCms mailing list; m.moossen at alkacon.com
Betreff: AW: Re: [opencms-dev] Static export without RFS-prefix doesn't work

Hi Michael,

sorry to bother you again, but this is still not what I need to achieve.
Maybe I should summarise quickly:

I want to export my resources on a WinXP box to a path like F:/webroot/,
which is the root directory of my Apache HTTP server. So I set

<exportpath>F:/webroot</exportpath>

Tim seems to want the same thing only on a Linux box, so he would set
something like

<exportpath>/var/www/html/</exportpath>

Now, as this is the Apache HTTP webserver root, we both need to achieve that
the links in our exported resouces have no leading "/opencms/opencms".
Therefore I set

<rfs-prefix/>

Exactly this configuration leads to a 404 error when exporting template
resources, i.e. resources with links. Exporting non-template resources (e.g.
images) works fine, because no cms:link functionality is needed.

This behaviour is what I think is a bug in OpenCms alpha 3.

I wish you nevertheless a nice weekend!

Regards
Ulrich

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Michael Moossen
Gesendet: Freitag, 21. Januar 2005 15:11
An: 'The OpenCms mailing list'
Betreff: AW: Re: [opencms-dev] Static export without RFS-prefix doesn't
work


Sorry, i had a lapsus...

Here is my conf for exporting to the root of the tomcat webapp context:
<exportpath>.</exportpath>
...
<rfs-prefix>${CONTEXT_NAME}</rfs-prefix>

I hope it helps

>> Are you going through an apache server?
--
Alkacon Software
Michael Moossen

An der Wachsfabrik 13
50996 Köln, DE

Tel: +49 (0)2236 3826-0
Fax: +49 (0)2236 3826-20
Email: m.moossen at alkacon.com
http://www.alkacon.com



-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von lists at rueth.info
Gesendet: Freitag, 21. Januar 2005 12:40
An: The OpenCms mailing list
Betreff: Re: Re: [opencms-dev] Static export without RFS-prefix doesn't
work



No, I tried this already, also leads to a 404 error... :-(

Tim <tcs777 at gmail.com> schrieb am 21.01.2005, 10:32:34:
> Just wondering, what would be the effect of /?
>
> I'll check this out myself next week..
>
>
> On Thu, 20 Jan 2005 21:52:27 +0100, Ulrich Rueth  wrote:
> > Hi all,
> >
> > I recently posted quite a lot here on static export problems. I
> > always got a 404 error when trying to export template resources,
> > while the non-template resources export worked fine. I am one step
> > further now.
> >
> > Because I wanted to export to the server root directory, I left the

> > element in the opencms-importexport.xml file empty. This seems not
> > to work. As soon as I write any string in this element (e.g.
> > exporttest), the static export of template resources works. Of
> > course, then all links have the "exporttest" prefix, which I don't
> > want.
> >
> > Is this a bug in OpenCms alpha 3? How can I achieve to have no
> > prefix when exporting template resources?
> >
> > Thanks and regards
> > Ulrich
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list To change

> > your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >


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



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



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



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



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




More information about the opencms-dev mailing list