[opencms-dev] link modified after editing
Brabenetz, Harald
harald.brabenetz at infonova.com
Wed Mar 3 08:10:37 CET 2010
You can also define aliases:
<site server="http://www.mysite.com" uri="/sites/mysite">
<alias server="http://www.mysite.de" />
<alias server="http://localhost:8080" />
</site>
You can find the xml document type definitions (dtd) in
"opencms.jar\org\opencms\configuration\"
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christoph P. Kukulies
Sent: Dienstag, 02. März 2010 19:03
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] link modified after editing
On Mon, Mar 01, 2010 at 05:24:13PM +0100, Christoph P. Kukulies wrote:
> On Mon, Mar 01, 2010 at 05:16:19PM +0100, Christoph P. Kukulies wrote:
> > I'm experiencing a funny behaviour of the page editor in OpenCms (7.0.5
> > in this case). On a multi-site (www.mysite.de, www.mysite.com)
> > I'm editing an anchor tag with a href="http://www.mysite.com"
> > and change that to href="http://www.mysite.de" in the page editor (no
> > way whether as source edit or page edit. As soon as I press the
> > store button (either the crossed floppy icon or the simple floppy
> > icon), the text changes back to .com again. No way to get it stored as
> > .de.
> >
> > I'm stumped.
> >
> > Is that tidy perhaps or what mechanism?
>
>
> I found in the control code that OpenCMS inserts a %(link0) in this
> place and link0 is this:
>
> <link name="link0" internal="true" type="A">
> <target><![CDATA[/sites/mysite/]]></target>
> <uuid>f1884e98-4c78-12de-88d5-0095f20c1671</uuid>
> </link>
>
> >
>
> When I delete this %(link0) and insert the absolute url in the
> controlcode, OpenCMS automatically generates a new
> <link name="link0"...
> after saving the code.
Solved (!)
Probably, the reason was:
In my opencms-system.xml I had (among other entries):
<sites>
<site server="http://www.mysite.de" uri="/sites/mysite" /site>
<site server="http://www.mysite.com" uri="/sites/mysite" /site>
</sites>
I changed the order of the above lines to be www.mysite.de the last one.
It solved the one case that was bugging me. But if it breaks things in
other places, not sure at the moment.
Wasn't there some serveralias syntax in this area?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
_______________________________________________
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/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list