[xwiki-users] protected area in xwiki page ?

Vincent Massol vincent at massol.net
Tue Jul 10 15:34:11 CEST 2007


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




More information about the users mailing list