[opencms-dev] link modified after editing

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Tue Mar 2 19:03:10 CET 2010


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



More information about the opencms-dev mailing list