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.objectsort.getInstance().sortByProps($nsrv, ["firewalled:desc", "port"]) |=Firewalled|=Port|=Protocol|=Service|=Application|=Description #foreach ( $n in $nsrv ) |$n.firewalled|$n.port|$n.protocol|$n.service|$n.application|$n.description #end #else There is no network service defined. #end {{/velocity}} On Sun, Dec 9, 2012 at 6:36 PM, crocket <[email protected]> wrote:
Suppose str is set by #set($str="[[label>>Space.Page]]")
How do I render $str as a link in a Velocity macro?