Hi Gregory,
        I am afraid your answer is now correct because I tried your code and 
nothing changed. Here I give out my answer, hope it helps.
Go to templates/samples/paragraphs and edit link.jsp:

At line 28, change "if (html.indexOf("://")==-1)" to "if 
(link.indexOf("://")==-1)".

At line 32, change "html.append(link+"\" target=\"_blank\">")" 
to"html.append("\" target=\"_blank\">")"

The external link will be shown correctly now.
-----邮件原件-----
发件人: [email protected] [mailto:[EMAIL PROTECTED]
发送时间: 2006年11月8日 18:44
收件人: [email protected]
主题: Re: [magnolia-user] external link incorrect in SamplesLinkParagraph

Yes. This problem can be fixed easily. But still it is a small bug.
I have posted it in JIRA.

regards,
Jason

-----邮件原件-----
发件人: [email protected] [mailto:[EMAIL PROTECTED]
发送时间: 2006年11月8日 18:40
收件人: [email protected]
主题: Re: [magnolia-user] external link incorrect in SamplesLinkParagraph

In /magnoliaAuthor.war/templates/samples/paragraphs/link.jsp

there is a code like this (line 28):
------------------------------
if (html.indexOf("://")==-1) {
    html.append("http://";);
}
------------------------------


change it to
------------------------------
if (link.indexOf("://") < 0) {
    html.append("http://";);
}
------------------------------

It's so lazy to register in JIRA... :)
I'll appreciate if you'll post this for me

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to