[opencms-dev] overriding links as internal
Christian Steinert
christian_steinert at web.de
Thu Jan 15 13:51:23 CET 2009
Steve Bryan ha scritto:
> 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.
>
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.
> So
> * create a link gallery called 'Internal Links'
> * Create a link object as required, for 'http://www.site1.com/blah..'
> * 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 <christian_steinert at web.de>
> Subject: Re: [opencms-dev] overriding links as internal
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <1459553103 at web.de>
> 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
> http://www.foo.com/bar/baz (with www.foo.com being the domain that is
> configured with opencms), I linked to http://foo.com/bar/baz. That may be a
> bit of a hack but keeps the link untouched, at least in the cms editor.
>
> hth
> best regards
> Christian
>
>
>> I am fetching an opencms html file for in an email body and don't want
>> http://www.site1.com/ replaced with /site1/ and don't want the link to
>>
> have
>
>> the attribute internal="true"
>>
>> however, even after editing the controlcode directly to what I want, when
>>
> I
>
>> save it still happens, http://www.site1.com/ gets replaced with /site1/
>>
> and
>
>> the link attribute internal gets set to "true"
>>
>> is there a way of overriding this behavior so I can force an abolute
>>
> instead
>
>> of relative URL ?
>>
>>
>>
>> ................
>> Jack Bakker
>>
>>
>> _______________________________________________
>>
> *******************************************
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090115/e0e9f019/attachment.htm>
More information about the opencms-dev
mailing list