Sorry, Gregory. I should say "I tried Penkov's code and it is not correct."
I was careless yesterday, please ignore it.

regards,
Jason

-----邮件原件-----
发件人: [email protected] [mailto:[EMAIL PROTECTED]
发送时间: 2006年11月9日 16:54
收件人: [email protected]
主题: Re: [magnolia-user] external link incorrect in SamplesLinkParagraph
重要性: 低


On Nov 9, 2006, at 03:04 , Jason Wan/ICILSZX wrote:

> Hi Gregory,
>       I am afraid your answer is now correct because I tried your code
> and nothing changed.

How exactly did you try it ?



> 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.

Which is in essence what I did. Now if you want to avoid headaches to
everyone, try the following from command line:
svn diff > mydiff.patch
(any decent editor with svn support will do that for you, too)

Cheers,

greg

----------------------------------------------------------------
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