Using XWiki expressions and double quotes
Hello, I'm new on this list, so forgive me for asking this, as I'm sure it's answered before (but couldn't find it in FAQ). It took me a long time to figure out how to create a link to the registration form, but finally found it in one bug report: $xwiki.getURL("XWikiRegister", "register"). However, now if you put it in a href it works the first time after saving, but if you edit the same document in (in Wiki view) you see it's getting cut by the parser at the first double quote, like $xwiki.getURL(". Saving the document again understandably renders the link non-functional. Is there a proper way of doing this and/or is there a reason why I couldn't use single quotes instead of double quotes (as you would commonly circumvent the same problem in Javascript implementations). Kalle
Hi Kalle, On Feb 13, 2007, at 5:26 PM, Kalle Korhonen wrote:
Hello,
I'm new on this list, so forgive me for asking this, as I'm sure it's answered before (but couldn't find it in FAQ). It took me a long time to figure out how to create a link to the registration form, but finally found it in one bug report: $xwiki.getURL ("XWikiRegister", "register"). However, now if you put it in a href it works the first time after saving, but if you edit the same document in (in Wiki view) you see it's getting cut by the parser at the first double quote, like $xwiki.getURL(". Saving the document again understandably renders the link non-functional. Is there a proper way of doing this and/or is there a reason why I couldn't use single quotes instead of double quotes (as you would commonly circumvent the same problem in Javascript implementations).
Let me guess: you're using the WYSIWYG editor and you're using some "old" version of XWiki? :-) This bug should have been corrected in one of the betas. Using beta 3 (or beta 4 that we'll release tonight) should be alright (I couldn't reproduce your issue with it). Thanks -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
No, I'm using beta 3, a war install from scratch, and using the Wiki editor, though maybe the problem is it first opens the WYSIWYG mode and it already gets cut right there. I'll be updating to beta 4 as soon as it's available, thanks! Kalle On 2/13/07, Vincent Massol <[email protected]> wrote:
Hi Kalle,
On Feb 13, 2007, at 5:26 PM, Kalle Korhonen wrote:
Hello,
I'm new on this list, so forgive me for asking this, as I'm sure it's answered before (but couldn't find it in FAQ). It took me a long time to figure out how to create a link to the registration form, but finally found it in one bug report: $xwiki.getURL ("XWikiRegister", "register"). However, now if you put it in a href it works the first time after saving, but if you edit the same document in (in Wiki view) you see it's getting cut by the parser at the first double quote, like $xwiki.getURL(". Saving the document again understandably renders the link non-functional. Is there a proper way of doing this and/or is there a reason why I couldn't use single quotes instead of double quotes (as you would commonly circumvent the same problem in Javascript implementations).
Let me guess: you're using the WYSIWYG editor and you're using some "old" version of XWiki? :-)
This bug should have been corrected in one of the betas. Using beta 3 (or beta 4 that we'll release tonight) should be alright (I couldn't reproduce your issue with it).
Thanks -Vincent
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (2)
-
Kalle Korhonen -
Vincent Massol