The other way to do it is to write your velocity code on a page,
...view/MySpace/MyPageWithVelocity for instance, and then write
#includeInContext($MySpace.MyPageWithVelocity)
in your actual page.
Quite similar to Vitantonio solution though maybe quicker...
Guillaume
On 19/12/2007, Vitantonio Messa <vitantonio.messa(a)coss.fi> wrote:
mattia_temp-newsgroup(a)yahoo.it wrote:
Hi Sergiu,
Thank you for the answer. I thought i could set them automatically...
Anyway, regarding the opportunity to use some velocity scripts to do
it, I've found that if i open a page with WYSIWYG editor i lost all
velocity scripts in it. Is there a way to solve this issue (avoiding
to use only the wiki editor?
You can write a macro that contains the velocity
script and then include
the macro in the wiki-page. That will work for sure, I had a kind of
similar problem and I solved it like that.
Hope it helps!
Vito
Thanks
Mattia
----- Messaggio originale -----
Da: Sergiu Dumitriu <sergiu(a)xwiki.com>
A: XWiki Users <users(a)xwiki.org>
Inviato: Mercoledì 19 dicembre 2007, 9:20:09
Oggetto: Re: [xwiki-users] Permission Rights and Parent pages
mattia_temp-newsgroup(a)yahoo.it <mailto:mattia_temp-newsgroup@yahoo.it>
wrote:
> Hi everybody,
>
> I'm trying to set some rights on some pages, and i'd like to have
those
permissions setted automatically on some other pages. I've setted on
one
and i've set for the other the first one as
the parent. This isn't
working :(
How can i solve it??
Thank you!!!!!
Rights aren't inherited from the parent.
You can either use space rights, template rights, or use some velocity
scripts to set the rights.
Sergiu
_______________________________________________
users mailing list
users(a)xwiki.org <mailto:users@xwikiorg>
http://lists.xwiki.org/mailman/listinfo/users
------------------------------------------------------------------------
------------------------------------------------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo!
Mail
<
http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/*http://i…
------------------------------------------------------------------------
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Vitantonio Messa
+358 46 889 48 49 - vitantonio.messa(a)coss.fi
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users