[opencms-dev] OpenCmsVarLink: Problems with internal false for true

Deiverson Silveira deiverson at solutioncms.com
Mon May 27 15:06:07 CEST 2013


Hi List / Mathias,
I have some problem, I think custom OpenCmsVarLink for resolved this, if
field contains http or www, define internal with false... I go with this
way...
[opencms-dev] OpenCmsVarLink: always converts absolute url to relative
url*Mathias
Lin* mail at mathiaslin.com
<opencms-dev%40opencms.org?Subject=Re%3A%20%5Bopencms-dev%5D%20OpenCmsVarLink%3A%20always%20converts%20absolute%20url%20to%0A%09relative%20url&In-Reply-To=%3CCAJHXjFWL1juPz4bOg-XL%3DZQvJCTgTBcf4vWC_FH-39g-CukstQ%40mail.gmail.com%3E>
*Wed Jan 9 04:40:38 CET 2013*


   - Previous message: [opencms-dev] More Test: Possible bug in 8.0.4 for
   rename folder upper
case...<http://lists.opencms.org/pipermail/opencms-dev/2013q1/037832.html>
   - Next message: [opencms-dev] OAMP Survey
2.0.1<http://lists.opencms.org/pipermail/opencms-dev/2013q1/037833.html>
   - *Messages sorted by:* [ date
]<http://lists.opencms.org/pipermail/opencms-dev/2013q1/date.html#37830>
    [ thread ]<http://lists.opencms.org/pipermail/opencms-dev/2013q1/thread.html#37830>
    [ subject ]<http://lists.opencms.org/pipermail/opencms-dev/2013q1/subject.html#37830>
    [ author ]<http://lists.opencms.org/pipermail/opencms-dev/2013q1/author.html#37830>

------------------------------

In a structured content, I have a field of type OpenCmsVarLink.

When I edit an instance of it, I can enter absolute urls (from remote
servers) or relative urls into this field.

But I found that when I enter an absolute url that points to the same
OpenCms server/site, OpenCms will always convert the absolute url I entered
to a relative url.

How can this be avoided?

Because in some cases, I want to link to a pdf via absolute url and don't
want this pdf to be served the static export, while still I don't want to
disable static export for all pdfs in general.

Why does OpenCms do this conversion anyway? If I'd like to let it be
handled by OpenCms, I'd enter the relative url only and not an absolute url.

Anway way to force it via property?



-- 
*
www.solutioncms.com
The Brazilian
Official Provider OpenCms
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130527/83ba5608/attachment.htm>


More information about the opencms-dev mailing list