Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-18 Thread Thomas Mortagne
On Fri, Dec 14, 2012 at 12:48 PM, Eduard Moraru wrote: > Hi, > > Here is an example that illustrates your problem, in a simplified case > (using an 'AppWithinMinutes.String' object): > > {{velocity}} > This is done with a displayer: > {{{ > $doc.getObject('AppWithinMinutes.String').shortText > }}}

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-14 Thread crocket
Thanks for your advise. It now works. On Fri, Dec 14, 2012 at 8:48 PM, Eduard Moraru wrote: > Hi, > > Here is an example that illustrates your problem, in a simplified case > (using an 'AppWithinMinutes.String' object): > > {{velocity}} > This is done with a displayer: > {{{ > $doc.getObject('A

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-14 Thread Eduard Moraru
Hi, Here is an example that illustrates your problem, in a simplified case (using an 'AppWithinMinutes.String' object): {{velocity}} This is done with a displayer: {{{ $doc.getObject('AppWithinMinutes.String').shortText }}} This is the raw value of the property: $doc.getObject('AppWithinMinutes.

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread crocket
Below is the velocity macro that displays the XWiki link syntax in a variable literally. $n.description contains a link, and it is not displayed as a link but displayed literally in the XWiki syntax. {{velocity}} #set($nsrv=$doc.getObjects("Private.NetworkServices")) #if($nsrv) $services.objectso

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread Sergiu Dumitriu
On 12/13/2012 04:39 AM, Jeremie BOUSQUET wrote: > I just tried on XE 4.1, syntax 2.1, and as expected link is correctly > displayed as a link ... ? > > Only reason why you would get that IMO would be if you had wiki syntax not > interpreted inside velocity macro, so you could try: Those are not t

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread Jeremie BOUSQUET
I just tried on XE 4.1, syntax 2.1, and as expected link is correctly displayed as a link ... ? Only reason why you would get that IMO would be if you had wiki syntax not interpreted inside velocity macro, so you could try: {{velocity wiki="true"}} #set($str="[[label>>Space.Page]]") Here is the l

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-13 Thread crocket
I already tried, but [[label>>Space.Page]] was displayed literally. On Wed, Dec 12, 2012 at 7:44 PM, Eduard Moraru wrote: > Hi, > > Why not just try it out and see if it works? > > {{velocity}} > #set($str="[[label>>Space.Page]]") > Here is the link: $str > {{/velocity}} > > Thanks, > Eduard >

Re: [xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-12 Thread Eduard Moraru
Hi, Why not just try it out and see if it works? {{velocity}} #set($str="[[label>>Space.Page]]") Here is the link: $str {{/velocity}} Thanks, Eduard On Sun, Dec 9, 2012 at 11:36 AM, crocket wrote: > #set($str="[[label>>Space.Page]]") > ___ users mai

[xwiki-users] How do I evaluate a Velocity variable in XWiki syntax?

2012-12-09 Thread crocket
Suppose str is set by #set($str="[[label>>Space.Page]]") How do I render $str as a link in a Velocity macro? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users