protected area in xwiki page ?
I am an absolute beginner concerning xwiki. I read some of the documentation and find it very confusing. I wrote a java program to create xwiki pages. The upper part of each page is a text that should be editable by the user, the lower part contains a groovy statement which should NOT be editable by the reader. Is there a possibility to protect the groovy code? Regards, Dieter -- View this message in context: http://www.nabble.com/protected-area-in-xwiki-page---tf4048551.html#a1149971... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Dieter, On Jul 10, 2007, at 3:11 PM, anodenblech wrote:
I am an absolute beginner concerning xwiki. I read some of the documentation and find it very confusing.
Could you please let us know what exact documentation you're talking about and what you find confusing? Maybe you could also help us improve it so that it's less confusing for others who come after you?
I wrote a java program to create xwiki pages. The upper part of each page is a text that should be editable by the user, the lower part contains a groovy statement which should NOT be editable by the reader.
Is there a possibility to protect the groovy code?
Yes, move the groovy code on a second page and include it from the first page. You can do that using the #includeInContext macro for macro (http://www.xwiki.org/xwiki/bin/view/Code/ IncludeInContextMacro) or by creating a groovy class in another page (http://www.xwiki.org/xwiki/bin/view/DevGuide/ GroovyClassHelloWorldTutorial) Hope it helps, -Vincent
Hi Vincent, Thank you for your answer. I think the documentation is so confusing because there is no explanation (something like an overview) on how all the different parts of xwiki work together. Every item is described separately but there are no connections. I also miss answers (or I do not find them) to simple questions, e. g. how to use macros. I tried to use the #includeInContext("MyPage") macro but all I got as output was "#includeInContext("MyPage")". I also tried the #warning("Hello World") and got the output "#warning("Hello World")". ??? Regards, Dieter
participants (3)
-
anodenblech -
Dieter Strecker -
Vincent Massol