[xwiki-users] Code Box Content Changes in WYSIWYG Editor
Hi I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} will turn into this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} Any ideas why and how to workaround this problem. Cheers Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] -- View this message in context: http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor. Thanks, Marius Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
Well, the XWiki 1.0 syntax came up by default so I ran with that so far. Unfortunately I was not able to find the Wiki Syntax Help site for 2.0 and I did not want to go without. Any ideas where I can find that? Thanks Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
_______________________________________________ users mailing list users@... http://lists.xwiki.org/mailman/listinfo/users
This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... You can reply by email or by visting the link above.
-- View this message in context: http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... Sent from the XWiki- Users mailing list archive at Nabble.com.
I found these: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax http://code.xwiki.org/xwiki/bin/view/Macros/ Hope this helps, Marius Andreas Schaefer wrote:
Well, the XWiki 1.0 syntax came up by default so I ran with that so far. Unfortunately I was not able to find the Wiki Syntax Help site for 2.0 and I did not want to go without.
Any ideas where I can find that?
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
_______________________________________________ users mailing list users@... http://lists.xwiki.org/mailman/listinfo/users
This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... You can reply by email or by visting the link above.
On Apr 13, 2009, at 7:10 AM, Andreas Schaefer wrote:
Well, the XWiki 1.0 syntax came up by default so I ran with that so far. Unfortunately I was not able to find the Wiki Syntax Help site for 2.0 and I did not want to go without.
Any ideas where I can find that?
The syntax help is also now bundled in the internal help panel when you edit a page in XE 1.8.1. Thanks -Vincent
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
_______________________________________________ users mailing list users@... http://lists.xwiki.org/mailman/listinfo/users
This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... You can reply by email or by visting the link above.
-- View this message in context: http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
So, how would I upgrade a page to version 2.0 or do I need to rewrite the entire page? Sorry to ask but I could not find the answer. Thanks Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
_______________________________________________ users mailing list users@... http://lists.xwiki.org/mailman/listinfo/users
This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... You can reply by email or by visting the link above.
-- View this message in context: http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p26... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Andreas, On Apr 13, 2009, at 7:40 PM, Andreas Schaefer wrote:
So, how would I upgrade a page to version 2.0 or do I need to rewrite the entire page?
Just change the page's syntax to XWiki Syntax 2.0. You'll get a dialog box asking you whether to convert to 2.0 syntax. -Vincent
Sorry to ask but I could not find the answer.
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
Thanks. Finally I saw it (stupid me) but now the info/warning/error macros are failing on my. I use XWiki Enterprise 1.8.17790 and it just ignores the macro using: #warning("This is my warning to you") Is there a way to fix that because I used that a lot so far. On another note I could not find the Wiki Syntax help on my installation. The link on Wiki Editor 'Help on XWiki Syntax' is displaying the old 1.0 syntax. How to I change that to 2.0. I tried to find a panel that would contain and I found one but could not figure out how to change it. Thanks Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] On Apr 13, 2009, at 12:02 PM, Vincent Massol wrote:
Hi Andreas,
On Apr 13, 2009, at 7:40 PM, Andreas Schaefer wrote:
So, how would I upgrade a page to version 2.0 or do I need to rewrite the entire page?
Just change the page's syntax to XWiki Syntax 2.0. You'll get a dialog box asking you whether to convert to 2.0 syntax.
-Vincent
Sorry to ask but I could not find the answer.
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Andreas Schaefer wrote:
Thanks. Finally I saw it (stupid me) but now the info/warning/error macros are failing on my. I use XWiki Enterprise 1.8.17790 and it just ignores the macro using:
#warning("This is my warning to you")
Is there a way to fix that because I used that a lot so far.
http://code.xwiki.org/xwiki/bin/view/Macros/WarningMacro Read the comments. I don't know what's the status regarding the XWiki 2.0 macro equivalents for info/warning/error. You can also try to use: {{box cssClass="warningmessage"}}This is my warning to you{{/box}}
On another note I could not find the Wiki Syntax help on my installation. The link on Wiki Editor 'Help on XWiki Syntax' is displaying the old 1.0 syntax. How to I change that to 2.0. I tried to find a panel that would contain and I found one but could not figure out how to change it.
I just downloaded XE 1.8.1.18545 from http://tinyurl.com/daxjqy and the link "Help on XWiki Syntax" opens up the right documentation which includes examples in both XWiki 1.0 and XWiki 2.0 syntaxes. You should try XE 1.8.1 (you have 1.8). Thanks, Marius
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 13, 2009, at 12:02 PM, Vincent Massol wrote:
Hi Andreas,
On Apr 13, 2009, at 7:40 PM, Andreas Schaefer wrote:
So, how would I upgrade a page to version 2.0 or do I need to rewrite the entire page? Just change the page's syntax to XWiki Syntax 2.0. You'll get a dialog box asking you whether to convert to 2.0 syntax.
-Vincent
Sorry to ask but I could not find the answer.
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. andreas.schaefer@... schaefera@...
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Andreas, On Apr 14, 2009, at 1:04 AM, Andreas Schaefer wrote:
Thanks. Finally I saw it (stupid me) but now the info/warning/error macros are failing on my. I use XWiki Enterprise 1.8.17790 and it just ignores the macro using:
#warning("This is my warning to you")
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write: {{html}}{{velocity}}#warning("This is my warning to you"){{/velocity}} {{/html}} Note that we're working on automatically adding the html macro wrapping for XE 1.8.2 so you only need to do that temporarily. Thanks -Vincent
Is there a way to fix that because I used that a lot so far.
On another note I could not find the Wiki Syntax help on my installation. The link on Wiki Editor 'Help on XWiki Syntax' is displaying the old 1.0 syntax. How to I change that to 2.0. I tried to find a panel that would contain and I found one but could not figure out how to change it.
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 13, 2009, at 12:02 PM, Vincent Massol wrote:
Hi Andreas,
On Apr 13, 2009, at 7:40 PM, Andreas Schaefer wrote:
So, how would I upgrade a page to version 2.0 or do I need to rewrite the entire page?
Just change the page's syntax to XWiki Syntax 2.0. You'll get a dialog box asking you whether to convert to 2.0 syntax.
-Vincent
Sorry to ask but I could not find the answer.
Thanks
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote:
Hi,
I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor.
Thanks, Marius
Andreas Schaefer wrote:
Hi
I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
will turn into this:
{code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; }
{code}
Any ideas why and how to workaround this problem.
Cheers
Andreas Schaefer
Hi Vincent I am still not able to work this out. I have this Wiki Snippet on a page: {{html}}{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}{{/html}} and it generates this HTML code: <!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}--><p><p><div class="infomessage">The IBOutlet classifier can be moved to the property definition if you like</div></p></p><!--stopmacro--> which leads to entire text inside the paragraph to be printed out (including the div). I upgraded to 1.8.1 yesterday by just replacing the WAR file. Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write:
{{html}}{{velocity}}#warning("This is my warning to you"){{/velocity}} {{/html}}
On Tue, Apr 14, 2009 at 17:47, Andreas Schaefer <[email protected]> wrote:
Hi Vincent
I am still not able to work this out. I have this Wiki Snippet on a page:
{{html}}{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}{{/html}}
Actually you should use {{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/html}}{{/velocity}} to execute velocity code before html. By defaut {{html}} only expect html content so it will not execute wiki content likes macros?
and it generates this HTML code:
<!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}--><p><p><div class="infomessage">The IBOutlet classifier can be moved to the property definition if you like</div></p></p><!--stopmacro-->
which leads to entire text inside the paragraph to be printed out (including the div).
I upgraded to 1.8.1 yesterday by just replacing the WAR file.
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write:
{{html}}{{velocity}}#warning("This is my warning to you"){{/velocity}} {{/html}}
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Switching the velocity and html tag seems to do the trick: {{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/html}}{{/velocity}} BTW I would love to add a comment or edit the Macro description on http://code.xwiki.org/xwiki/bin/view/Macros/InfoMacro#Comments but I cannot figure out how to register. Cheers Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected] On Apr 14, 2009, at 8:47 AM, Andreas Schaefer wrote:
Hi Vincent
I am still not able to work this out. I have this Wiki Snippet on a page:
{{html}}{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}{{/html}}
and it generates this HTML code:
<!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}--><p><p><div class="infomessage">The IBOutlet classifier can be moved to the property definition if you like</div></p></p><!--stopmacro-->
which leads to entire text inside the paragraph to be printed out (including the div).
I upgraded to 1.8.1 yesterday by just replacing the WAR file.
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write:
{{html}}{{velocity}}#warning("This is my warning to you"){{/ velocity}} {{/html}}
Hi, On Tue, Apr 14, 2009 at 6:01 PM, Andreas Schaefer <[email protected]> wrote:
Switching the velocity and html tag seems to do the trick:
{{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/html}}{{/velocity}}
BTW I would love to add a comment or edit the Macro description on http://code.xwiki.org/xwiki/bin/view/Macros/InfoMacro#Comments but I cannot figure out how to register.
You can register an account on XWiki.org here : http://www.xwiki.org/xwiki/bin/register/XWiki/Register It will work on all the XWiki.org sites. Guillaume
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 14, 2009, at 8:47 AM, Andreas Schaefer wrote:
Hi Vincent
I am still not able to work this out. I have this Wiki Snippet on a page:
{{html}}{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}{{/html}}
and it generates this HTML code:
<!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}--><p><p><div class="infomessage">The IBOutlet classifier can be moved to the property definition if you like</div></p></p><!--stopmacro-->
which leads to entire text inside the paragraph to be printed out (including the div).
I upgraded to 1.8.1 yesterday by just replacing the WAR file.
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write:
{{html}}{{velocity}}#warning("This is my warning to you"){{/ velocity}} {{/html}}
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
On Apr 14, 2009, at 5:55 PM, Thomas Mortagne wrote:
On Tue, Apr 14, 2009 at 17:47, Andreas Schaefer <[email protected]> wrote:
Hi Vincent
I am still not able to work this out. I have this Wiki Snippet on a page:
{{html}}{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}{{/html}}
Actually you should use {{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/html}}{{/velocity}} to execute velocity code before html.
Right my mistake... I guess users will make this mistake quite often too ;) The outer macro is always executed first. Thanks -Vincent
By defaut {{html}} only expect html content so it will not execute wiki content likes macros?
and it generates this HTML code:
<!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The IBOutlet classifier can be moved to the property definition if you like"){{/velocity}}--><p><p><div class="infomessage">The IBOutlet classifier can be moved to the property definition if you like</div></p></p><!--stopmacro-->
which leads to entire text inside the paragraph to be printed out (including the div).
I upgraded to 1.8.1 yesterday by just replacing the WAR file.
Andreas Schaefer CEO of Madplanet.com Inc. [email protected] [email protected]
On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
The velocity macros that were working for XWiki Syntax 1.0 still work for XWiki syntax 2.0 (provided you use them inside the {{velocity}} macro). However most of them output HTML and in XWiki Syntax 2.0 you need to surround any HTML block by the {{html}} macro so basically you'll need to write:
{{html}}{{velocity}}#warning("This is my warning to you"){{/ velocity}} {{/html}}
____________________
participants (5)
-
Andreas Schaefer -
Guillaume Lerouge -
Marius Dumitru Florea -
Thomas Mortagne -
Vincent Massol