hello
if i wanna create a simple macro that shows an internal space link is this
correct? does not work:
//mymacros.vm
#macro(includeForm $doc.web)
AFAIK, a macro parameter is a variable, not an expression. So why not write:
#macro(includeForm $doc)
or
#macro(includeForm $space)
#set($space = $doc.web)
<a href="$!xwiki.getURL("${space}.WebHome")"
title="Home"
rel="home">Project Home Page</a>
#end
//calling into the page
#template("mymacros.vm")
This will only make the macro available in you page. To call it you'd have
to write:
#includeForm($someDoc)
or, following the second form
#includeForm("MySpace")
Hope this helps,
Marius
thanks
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users