Still unable to create a correct Groovy macro :(
It would be great if someone could help me on this.
Thanks!
Luís Braga
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Dynamically-set-rights-over-document-tp6060830p6154420.html
Sent from the XWiki- Users mailing list
I think this will do what you want:
{{velocity}}
#foreach($subdoc in $xwiki.getSpaceDocsName($doc.space))
#set($docum = $xwiki.getDocument($subdoc))
#if($docum.name != 'WebHome' $docum.name != 'WebPreferences')
* [[${subdoc}]]
#end
#end
{{/velocity}}
The if clause only removes the
Hi,
I'm trying to set rights over a document automatically.
In my wiki i have the Publication concept. Each Publication has one or
more authors. Each author is an Researcher that is directly related to an
XWikiUser. What I want to do is to set editing rights only for the authors
of that
Hi,
Sorry for digging up this thread, but I'm facing the same problem.
I want to have a template page that allows the creation of other pages. For
example, I want to have a template page (ResearcherTemplate) that allow the
creation of Researchers.
What I tried to do was create a new page