<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Steve Bryan ha scritto:
<blockquote cite="mid:496f23b0.06ac420a.43b0.17fb@mx.google.com"
 type="cite">
  <pre wrap="">Hi

There is another solution, you can create external link/'pointer' objects
for the URLs you want to be unchanged (even if they are in fact internal),
then add those to your HTML using the editor.

OpenCms does not mess with those.
  </pre>
</blockquote>
That is a good point. The only ugliness with that is that if you use
static export, the external links will be written out as pages which
include a meta-redirect, instead of resolving the reference placing the
final link inside of the page. Nonetheless, it's a good suggestion.<br>
<blockquote cite="mid:496f23b0.06ac420a.43b0.17fb@mx.google.com"
 type="cite">
  <pre wrap="">
So
* create a link gallery called 'Internal Links'
* Create a link object as required, for '<a class="moz-txt-link-freetext" href="http://www.site1.com/blah">http://www.site1.com/blah</a>..' 
* In your html editor, insert that link object

When the HTML is rendered by OpenCms, it won't mess with the URL.

Note you can put relative links in the pointer objects, eg
'../../non-opencms-link-in-same-site.html' - this is useful if you want to
link to a non-opencms page in the same website (eg a struts or spring url).

Hope that helps
Steve


-----Original Message-----

Date: Wed, 14 Jan 2009 22:51:55 +0100
From: Christian Steinert <a class="moz-txt-link-rfc2396E" href="mailto:christian_steinert@web.de"><christian_steinert@web.de></a>
Subject: Re: [opencms-dev] overriding links as internal
To: The OpenCms mailing list <a class="moz-txt-link-rfc2396E" href="mailto:opencms-dev@opencms.org"><opencms-dev@opencms.org></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:1459553103@web.de"><1459553103@web.de></a>
Content-Type: text/plain; charset=iso-8859-15

Dear Jack

This has also hit me (but with links that I used in a regular html page - no
matter whether I used the fckeditor or edited the HTML source code).
The workaround that I used was to use a slightly different domain name for
links that should not be rewritten by opencms: instead of linking to
<a class="moz-txt-link-freetext" href="http://www.foo.com/bar/baz">http://www.foo.com/bar/baz</a> (with <a class="moz-txt-link-abbreviated" href="http://www.foo.com">www.foo.com</a> being the domain that is
configured with opencms), I linked to <a class="moz-txt-link-freetext" href="http://foo.com/bar/baz">http://foo.com/bar/baz</a>. That may be a
bit of a hack but keeps the link untouched, at least in the cms editor.

hth
best regards
Christian

  </pre>
  <blockquote type="cite">
    <pre wrap="">I am fetching an opencms html file for in an email body and don't want
<a class="moz-txt-link-freetext" href="http://www.site1.com/">http://www.site1.com/</a> replaced with /site1/ and don't want the link to
    </pre>
  </blockquote>
  <pre wrap=""><!---->have
  </pre>
  <blockquote type="cite">
    <pre wrap="">the attribute internal="true"

however, even after editing the controlcode directly to what I want, when
    </pre>
  </blockquote>
  <pre wrap=""><!---->I
  </pre>
  <blockquote type="cite">
    <pre wrap="">save it still happens, <a class="moz-txt-link-freetext" href="http://www.site1.com/">http://www.site1.com/</a> gets replaced with /site1/
    </pre>
  </blockquote>
  <pre wrap=""><!---->and
  </pre>
  <blockquote type="cite">
    <pre wrap="">the link attribute internal gets set to "true" 

is there a way of overriding this behavior so I can force an abolute
    </pre>
  </blockquote>
  <pre wrap=""><!---->instead
  </pre>
  <blockquote type="cite">
    <pre wrap="">of relative URL ?  



................
Jack Bakker


_______________________________________________
    </pre>
  </blockquote>
  <pre wrap=""><!---->*******************************************


_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a>

  </pre>
</blockquote>
<br>
</body>
</html>