[xwiki-users] Printing section?

2007-11-05 Thread Vitantonio Messa
Hi all,

I would like to have the possibility to print only one section of a 
page. I've seen that it is possible to edit one section (passing the 
parameter section= in the URL).

I tried to do the same with the printing (editing the top menu bar), but 
it seems to me that the print is not recognizing the "section" parameter.

Is it possible to print just a section or not?
Thanks!

-- 
Vitantonio Messa
+358 46 889 48 49 - [EMAIL PROTECTED]
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread V. Harikrishnan Nair

That's perfect ! Thanks, Vito, I should've noticed that...



Vitantonio Messa wrote:
> 
> V. Harikrishnan Nair wrote:
>> Thanks for the help, Ricardo. Here's the code -
>> ---
>> #panelheader('Quick Links')
>> * [Home>Amrita IIS.WebHome]
>> * [PMT Discussions>Amrita IIS.PMT_Discussions]
>> * [Class Editor>XWiki.XWikiClasses]
>> * [PMT>PMT.PMTemplateTestClass]
>> * [PMT Test form>Amrita IIS.Form_PMT_Test]
>> 
>> #if ($xwiki.hasAdminRights())
>> For Admins:
>> * [Admin Center>XWiki.WebHome]
>> * [What's New>Main.Dashboard]  $xwiki.getURL( 
>> $xwiki.getSkinFile('icons/black-rss-mini3.png')  
>> #end
>> 
>> #set($user = $xwiki.getUser())
>> #if($user.isUserInGroup("XWiki.Editors"))
>> Editor Group
>> * [Editor's page>Amrita IIS.Editor]
>> #end 
>> 
>> 
>>  $xwiki.getDocument( (Edit
>> this panel) 
>> #end
>> #panelfooter()
>> 
>> ---
>> 
>> 
>> Ricardo Rodríguez wrote:
>>> V. Harikrishnan Nair wrote:
 hi Vito, 
 hi Ricardo,

  I implemented the code as :
   
 #set($user = $xwiki.getUser())
 #if($user.isUserInGroup('XWiki.Editors'))
 Editor Group
 * [Editor's page>Amrita IIS.Editor]
 #end  

 But I got a really weird error -

 Error number 4001 in 4: Error while parsing velocity page
 Panels.QuickLinks
 Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
 Panels.QuickLinks
 Was expecting one of:
  
 "(" …
  …
  …
  …
 "##" …
 "\" …
 "
 " …
  …
 "#" …
 "#" …
  …
  …
  …
  …
  …
  …
  …
  …
  …
 "{" …
 "}" ...

 I checked everything but it simply would not work...


 - Harikrishnan
>>> Hi Harikrishnan,
>>>
>>> I've tried your code here and it works without a glitch.
>>>
>>> The error you get is at line 26, so it is not possible for us to know if 
>>> one of the five code lines included in your message is the offending
>>> one.
>>>
>>> Please, could you post here your whole Panels.QuickLinks to see if it is 
>>> possible for us to reproduce the error?
>>>
>>> Best,
>>>
>>> -- 
>>> Ricardo Rodríguez
>>> Your XEN ICT Team
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>>
>> 
> 
> Hi Harikrishnan,
> 
> the problem is in the last "#end": there no "#if" related to it.
> Try to delete it and the panel should work fine.
> 
> Vito
> 
> 
> -- 
> Vitantonio Messa
> +358 46 889 48 49 - [EMAIL PROTECTED]
> COSS - The Finnish Centre for Open Source Solutions
> @ Technology Centre Hermia Ltd.
> Hermiankatu 1, FIN-33720 Tampere, FINLAND
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13601636
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread Vitantonio Messa
V. Harikrishnan Nair wrote:
> Thanks for the help, Ricardo. Here's the code -
> ---
> #panelheader('Quick Links')
> * [Home>Amrita IIS.WebHome]
> * [PMT Discussions>Amrita IIS.PMT_Discussions]
> * [Class Editor>XWiki.XWikiClasses]
> * [PMT>PMT.PMTemplateTestClass]
> * [PMT Test form>Amrita IIS.Form_PMT_Test]
> 
> #if ($xwiki.hasAdminRights())
> For Admins:
> * [Admin Center>XWiki.WebHome]
> * [What's New>Main.Dashboard]  $xwiki.getURL( 
> $xwiki.getSkinFile('icons/black-rss-mini3.png')  
> #end
> 
> #set($user = $xwiki.getUser())
> #if($user.isUserInGroup("XWiki.Editors"))
> Editor Group
> * [Editor's page>Amrita IIS.Editor]
> #end 
> 
> 
>  $xwiki.getDocument( (Edit
> this panel) 
> #end
> #panelfooter()
> 
> ---
> 
> 
> Ricardo Rodríguez wrote:
>> V. Harikrishnan Nair wrote:
>>> hi Vito, 
>>> hi Ricardo,
>>>
>>>  I implemented the code as :
>>>   
>>> #set($user = $xwiki.getUser())
>>> #if($user.isUserInGroup('XWiki.Editors'))
>>> Editor Group
>>> * [Editor's page>Amrita IIS.Editor]
>>> #end  
>>>
>>> But I got a really weird error -
>>>
>>> Error number 4001 in 4: Error while parsing velocity page
>>> Panels.QuickLinks
>>> Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
>>> Panels.QuickLinks
>>> Was expecting one of:
>>>  
>>> "(" …
>>>  …
>>>  …
>>>  …
>>> "##" …
>>> "\" …
>>> "
>>> " …
>>>  …
>>> "#" …
>>> "#" …
>>>  …
>>>  …
>>>  …
>>>  …
>>>  …
>>>  …
>>>  …
>>>  …
>>>  …
>>> "{" …
>>> "}" ...
>>>
>>> I checked everything but it simply would not work...
>>>
>>>
>>> - Harikrishnan
>> Hi Harikrishnan,
>>
>> I've tried your code here and it works without a glitch.
>>
>> The error you get is at line 26, so it is not possible for us to know if 
>> one of the five code lines included in your message is the offending one.
>>
>> Please, could you post here your whole Panels.QuickLinks to see if it is 
>> possible for us to reproduce the error?
>>
>> Best,
>>
>> -- 
>> Ricardo Rodríguez
>> Your XEN ICT Team
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
> 

Hi Harikrishnan,

the problem is in the last "#end": there no "#if" related to it.
Try to delete it and the panel should work fine.

Vito


-- 
Vitantonio Messa
+358 46 889 48 49 - [EMAIL PROTECTED]
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Programming rights

2007-11-05 Thread Vitantonio Messa
Vincent Massol wrote:
> On Nov 5, 2007, at 3:58 PM, Vitantonio Messa wrote:
> 
>> Hi all,
>>
>> I have give to myself programming right on my xwiki (from the global
>> rights section), but still, when I write $doc.hasProgrammingRights()  
>> or
>> $context.hasProgrammingRights() I got "false" as response instead of  
>> true.
>>
>> Does anyone know where is my mistake?
> 
> is your wiki in a virtual setup?
> 
> If so, I think only users created on the main wiki can have  
> programming rights.

Hi Vincent,

you're right, I'using a virtual setup. And I was trying to give 
programming right to the user not on the main wiki.

Thanks for your answer!

Vito


-- 
Vitantonio Messa
+358 46 889 48 49 - [EMAIL PROTECTED]
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Panels off

2007-11-05 Thread V. Harikrishnan Nair

Hi...
 
   I usually never like to 'reopen cases' but this is also what I am looking
for...

   I've tried to hide the panel for the starting page by using
#set($showLeftPanels = "0") and then again bringing it back to
#set($showLeftPanels = "1") wherever I wanted it (I agree, it was a stupid
idea). 

   I was wondering, can I make a new xwiki variable, $showPageLeftPanels,
and use it in the .vm files ?  

Harikrishnan


vmassol wrote:
> 
> Hi Gunter,
> 
> On May 21, 2007, at 7:14 PM, Gunter Leeb wrote:
> 
>> Hi,
>>
>> Is there a simple way to turn the panels off for a particular page?
>>
>> I know this is possible, by creating the page in a new space and
>> configuring the new space not to show the panels. Is there another  
>> way?
> 
> No, this feature doesn't exist AFAIK. We could have imagine that  
> passing showColumns=0 in the url would have done the trick but it's  
> not there. So there are several "hacks" possible:
> 
> 1) modify startpage.vm so that it look in the url if you pass some  
> parameter to hide columns
> 2) use css/javascript in the page that you wish to hide so that it  
> hides the panel(s)
> 
> -Vincent
> 
> 
> 
> --
> You receive this message as a subscriber of the [EMAIL PROTECTED]
> mailing list.
> To unsubscribe: mailto:[EMAIL PROTECTED]
> For general help: mailto:[EMAIL PROTECTED]
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Panels-off-tf3794648.html#a13601453
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error when creating Classes

2007-11-05 Thread V. Harikrishnan Nair

You're in the wrong thread, Tim... I think you should send this as a new
post.



Campbell, Timothy D wrote:
> 
> Hi, 
> Has anyone experienced this problem or does anyone know what could be
> wrong when creating classes? I need to create 2 classes 1 for a virtual
> instance and 1 for a second blog in my xwiki. I'm getting this error which
> I am posting at the bottom. 
>  
> Thank you in advance,
> Tim
> 
>  
> 
>  
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13600912
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] CAPTCHA for comments and registration

2007-11-05 Thread Paul Armstrong
On Mon, Nov 05, 2007 at 03:52:16PM -0800, marlon hendred wrote:
> Hi, can someone help me with setting up CAPTCHA with the albatross skin for
> registration and comments? Is there some example code I could look at? Or if
> someone has this working could they give some guidence? I have the captcha
> plugin enabled but I'm kinda stuck on what to do next. Thanks in advance.
 
Look in the dodo skin files.
Particularly:
captcha.vm
comments.vm
edit.vm
wysiwyg.vm

Paul

-- 
End dual-measurement, let's finish going metric!
http://gometric.us/
http://www.metric.org/

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error when creating Classes

2007-11-05 Thread Campbell, Timothy D
I forgot to paste the error. 
 
Error number 4001 in 4: Error while parsing velocity page XWiki.BlogArticle
Wrapped Exception: Invocation of method 'substring' in  class java.lang.String 
threw exception java.lang.StringIndexOutOfBoundsException: String index out of 
range: -1 @ XWiki.BlogArticle4,26? 

 
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing 
velocity page XWiki.BlogArticle
Wrapped Exception: Invocation of method 'substring' in  class java.lang.String 
threw exception java.lang.StringIndexOutOfBoundsException: String index out of 
range: -1 @ XWiki.BlogArticle4,26? 

 
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347)
at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.

[xwiki-users] Error when creating Classes

2007-11-05 Thread Campbell, Timothy D
Hi, 
Has anyone experienced this problem or does anyone know what could be wrong 
when creating classes? I need to create 2 classes 1 for a virtual instance and 
1 for a second blog in my xwiki. I'm getting this error which I am posting at 
the bottom. 
 
Thank you in advance,
Tim

 
<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread V. Harikrishnan Nair

Thanks for the help, Ricardo. Here's the code -
---
#panelheader('Quick Links')
* [Home>Amrita IIS.WebHome]
* [PMT Discussions>Amrita IIS.PMT_Discussions]
* [Class Editor>XWiki.XWikiClasses]
* [PMT>PMT.PMTemplateTestClass]
* [PMT Test form>Amrita IIS.Form_PMT_Test]

#if ($xwiki.hasAdminRights())
For Admins:
* [Admin Center>XWiki.WebHome]
* [What's New>Main.Dashboard]  $xwiki.getURL( 
$xwiki.getSkinFile('icons/black-rss-mini3.png')  
#end

#set($user = $xwiki.getUser())
#if($user.isUserInGroup("XWiki.Editors"))
Editor Group
* [Editor's page>Amrita IIS.Editor]
#end 


 $xwiki.getDocument( (Edit
this panel) 
#end
#panelfooter()

---


Ricardo Rodríguez wrote:
> 
> V. Harikrishnan Nair wrote:
>> hi Vito, 
>> hi Ricardo,
>>
>>  I implemented the code as :
>>   
>> #set($user = $xwiki.getUser())
>> #if($user.isUserInGroup('XWiki.Editors'))
>> Editor Group
>> * [Editor's page>Amrita IIS.Editor]
>> #end  
>>
>> But I got a really weird error -
>>
>> Error number 4001 in 4: Error while parsing velocity page
>> Panels.QuickLinks
>> Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
>> Panels.QuickLinks
>> Was expecting one of:
>>  
>> "(" …
>>  …
>>  …
>>  …
>> "##" …
>> "\" …
>> "
>> " …
>>  …
>> "#" …
>> "#" …
>>  …
>>  …
>>  …
>>  …
>>  …
>>  …
>>  …
>>  …
>>  …
>> "{" …
>> "}" ...
>>
>> I checked everything but it simply would not work...
>>
>>
>> - Harikrishnan
> 
> Hi Harikrishnan,
> 
> I've tried your code here and it works without a glitch.
> 
> The error you get is at line 26, so it is not possible for us to know if 
> one of the five code lines included in your message is the offending one.
> 
> Please, could you post here your whole Panels.QuickLinks to see if it is 
> possible for us to reproduce the error?
> 
> Best,
> 
> -- 
> Ricardo Rodríguez
> Your XEN ICT Team
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13600550
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez
V. Harikrishnan Nair wrote:
> hi Vito, 
> hi Ricardo,
>
>  I implemented the code as :
>   
> #set($user = $xwiki.getUser())
> #if($user.isUserInGroup('XWiki.Editors'))
> Editor Group
> * [Editor's page>Amrita IIS.Editor]
> #end  
>
> But I got a really weird error -
>
> Error number 4001 in 4: Error while parsing velocity page Panels.QuickLinks
> Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
> Panels.QuickLinks
> Was expecting one of:
>  
> "(" …
>  …
>  …
>  …
> "##" …
> "\" …
> "
> " …
>  …
> "#" …
> "#" …
>  …
>  …
>  …
>  …
>  …
>  …
>  …
>  …
>  …
> "{" …
> "}" ...
>
> I checked everything but it simply would not work...
>
>
> - Harikrishnan

Hi Harikrishnan,

I've tried your code here and it works without a glitch.

The error you get is at line 26, so it is not possible for us to know if 
one of the five code lines included in your message is the offending one.

Please, could you post here your whole Panels.QuickLinks to see if it is 
possible for us to reproduce the error?

Best,

-- 
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] CAPTCHA for comments and registration

2007-11-05 Thread marlon hendred
Hi, can someone help me with setting up CAPTCHA with the albatross skin for
registration and comments? Is there some example code I could look at? Or if
someone has this working could they give some guidence? I have the captcha
plugin enabled but I'm kinda stuck on what to do next. Thanks in advance.

-Marlon
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] (no subject)

2007-11-05 Thread Whisler, Dave
Anyone having problems adding attachments to an existing page on XWiki?
I have a page that has 3 files attached.  When I try to add a new
attachment (the 4th one), it does not return any errors and appears to
work, however, when after the page refreshes, it still only shows that
it has 3 attachments.   According to the doc's it supports an unlimited
number of attachments.   On other pages, I was able to attach more than
3 without any problems.  

 

I'm running XWiki 1.1.1 using Jetty and MySQL 5.45.

 

Dave

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread V. Harikrishnan Nair

hi Vito, 
hi Ricardo,

 I implemented the code as :
  
#set($user = $xwiki.getUser())
#if($user.isUserInGroup('XWiki.Editors'))
Editor Group
* [Editor's page>Amrita IIS.Editor]
#end  

But I got a really weird error -

Error number 4001 in 4: Error while parsing velocity page Panels.QuickLinks
Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
Panels.QuickLinks
Was expecting one of:
 
"(" …
 …
 …
 …
"##" …
"\" …
"
" …
 …
"#" …
"#" …
 …
 …
 …
 …
 …
 …
 …
 …
 …
"{" …
"}" ...

I checked everything but it simply would not work...


- Harikrishnan


Ricardo Rodríguez wrote:
> 
> Vitantonio Messa wrote:
>> Hi,
>>
>> it is possible. Instead of checking if the current user has 
>> administrator rights, you can check if he is in the group you want.
>>
>> There was a discussion about that some days ago on the mailing list. 
>> Look for it, if I remember right there was also the code you need.
>>
>> Vito
>>
>>
>>
>> V. Harikrishnan Nair wrote:
>>   
>>> Hi.
>>>
>>>   It is seen that Panel items can be hidden from users other than the
>>> Admins
>>> using this statement -> #if ($xwiki.hasAdminRights()), right ? 
>>>
>>>   Is it possible to be able to display certain Panel items to certain
>>> user
>>> groups ? If so, how ?
>>>
>>> Harikrishnan
>>> 
>>
>>   
> Just to ease the task. To show/hide a panel for the current user:
> 
> #set ($user = $xwiki.getUser())
> #if($user.isUserInGroup("XWiki.YourGroup"))
> ...
> #end
> 
> HTH,
> 
> -- 
> Ricardo Rodríguez
> Your XEN ICT Team
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13592796
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez

Vincent Massol wrote:
I think what's missing is what I'm working on: a new xwiki.org that  
clearly separates the Platform from the products (XE, XEM, Watch, etc)  
and that explains what each does.


This new xwiki.org should be up within 1 month.

  


This XWiki stuff is doing me to enjoy computing for the first time in 
years! It will be great to see a new xwiki.org thing in a month time!

Coming back ASAP with news on the translation issue.



Cool

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

  


As for the translation issue. Please, consider this behaviour:

Once created a new document in a multilingual installation, the 
translation seems to work fine. What I've not clear is what language 
must be used as default. If you are reading an English document and 
create a new one, it will be created in English. But if you are reading 
its Spanish release and create a new one, it will be created in Spanish 
whatever the Default Language is set to. I don't know if this is the 
expected behaviour, but perhaps I would prefer the create new document 
button always creates documents in the default language. This way we can 
warn users: "this is XWiki site using English as default language, 
please, use the Translations menu if you intend to create a page in a 
different language"


Does it make sense for you? Is it worth to move this to a JIRA Issue? 
Thanks!


By the way, I've only play a bit with the new release, but I've gone to 
the XWiki/XWikiPreferences page and find this content:


To edit preferences, please use the edit preferences item from the "More 
Actions" menu.


Please, where is the "More Actions" menu? The previous 1.2M1 reads:

To edit preferences, please use the Administration page

Thanks again!

Cheers,

--
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez
Mathieu Dupuis wrote:
> What I changed is the language hidden field in the edit page. 
> http://localhost:8080/xwiki/bin/edit/Main/WebHome?editor=wysiwyg&language=fr
>
> 
>  value="/xwiki/bin/edit/Main/WebHome?editor=wysiwyg"/>
> 
> 
>
> I change the value="en" to wathever new translation I want. (fr for my test)
>
> Mathieu


Thanks, Mathieu,

1.2-SNAPSHOT.5607 seems to work fine, have you tried it? (please, see my 
previous post in this thread). Let's see what Vicent and others think 
about how the default language is used.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Porblem Installing w/Oracle

2007-11-05 Thread Fye Kan
I decided to start from scratch on the off chance that maybe we missed some
minor detail. The good news is that we're getting different error messages
now. Looking at the xwiki log the first error is the following:

10:23:16,311 [http-129.147.132.30-80-1] ERROR store.XWikiHibernateBaseStore
- Failed updating schema: ORA-01918: user 'XWIKI' does not exist

After that are a ton of errors regarding missing tables (which would make
sense). We're not using an "XWIKI" user for our oracle config, instead we
specify our our user/password in the hibernate config file. Could this
"XWIKI" ID be hardcoded in the code some where?

Craig

On 11/5/07, Fye Kan <[EMAIL PROTECTED]> wrote:
>
> Sorry for the slow response. We downloaded 1.1.1 of the war file (latest
> stable version). We followed all the directions regarding the configuration
> files that was up on the site. One point that might be in question is if our
> user actually has all the permissions necessary for the database. Currently
> the account can create/drop tables, insert/delete, etc. Also, the oracle HBM
> file is referenced in the hibernate config file. Any other thoughts?
>
> Craig
>
> On 11/2/07, Vincent Massol <[EMAIL PROTECTED]> wrote:
> >
> > Hi Craig,
> >
> > Have you followed the instructions on
> > http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOracle
> >   and especially the part about the oracle HBM file?
> >
> > Also what version of xwiki are you installing?
> >
> > Thanks
> > -Vincent
> >
> > On Nov 2, 2007, at 12:59 AM, Fye Kan wrote:
> >
> > > Hello,
> > >
> > > We're investingating a few wiki options and were trying to use Xwiki
> > > with Tomcat 6 and Oracle 10g using the war installation process.
> > > We've modified all of the config files per the instructions on the
> > > site but are getting the following errors when trying to access the
> > > default page:
> > >
> > > 17:25:31,106 [http-129.147.132.30-80-1] ERROR
> > > store.XWikiHibernateBaseStore   - Failed updating schema: 2
> > > 17:25:31,213 [http-129.147.132.30-80-1] ERROR
> > > store.XWikiHibernateBaseStore- While executing query: update
> > > xwikidoc set xwd_translation=0 where xwd_translati on is null
> > > 17:25:31,213 [http-129.147.132.30-80-1] ERROR
> > > store.XWikiHibernateBaseStore   - Failed updating schema: ORA-00942:
> > > table or view does not exist
> > >
> > > followed by a lot more errors. This is a brand new install so no
> > > tables exist yet. The user account we have for the DB has access to
> > > create/modify/remove tables so we're at a bit of a loss as to what
> > > the problem is. Does anyone out there have any suggestions as to
> > > what the problem could be? Do we need to create the tables a head of
> > > time? Is there a script to do so? Any help would be appreciated,
> > > thanks!
> > >
> > > Craig
> > > 
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Porblem Installing w/Oracle

2007-11-05 Thread Fye Kan
Sorry for the slow response. We downloaded 1.1.1 of the war file (latest
stable version). We followed all the directions regarding the configuration
files that was up on the site. One point that might be in question is if our
user actually has all the permissions necessary for the database. Currently
the account can create/drop tables, insert/delete, etc. Also, the oracle HBM
file is referenced in the hibernate config file. Any other thoughts?

Craig

On 11/2/07, Vincent Massol <[EMAIL PROTECTED]> wrote:
>
> Hi Craig,
>
> Have you followed the instructions on
> http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOracle
>   and especially the part about the oracle HBM file?
>
> Also what version of xwiki are you installing?
>
> Thanks
> -Vincent
>
> On Nov 2, 2007, at 12:59 AM, Fye Kan wrote:
>
> > Hello,
> >
> > We're investingating a few wiki options and were trying to use Xwiki
> > with Tomcat 6 and Oracle 10g using the war installation process.
> > We've modified all of the config files per the instructions on the
> > site but are getting the following errors when trying to access the
> > default page:
> >
> > 17:25:31,106 [http-129.147.132.30-80-1] ERROR
> > store.XWikiHibernateBaseStore   - Failed updating schema: 2
> > 17:25:31,213 [http-129.147.132.30-80-1] ERROR
> > store.XWikiHibernateBaseStore   - While executing query: update
> > xwikidoc set xwd_translation=0 where xwd_translati on is null
> > 17:25:31,213 [http-129.147.132.30-80-1] ERROR
> > store.XWikiHibernateBaseStore   - Failed updating schema: ORA-00942:
> > table or view does not exist
> >
> > followed by a lot more errors. This is a brand new install so no
> > tables exist yet. The user account we have for the DB has access to
> > create/modify/remove tables so we're at a bit of a loss as to what
> > the problem is. Does anyone out there have any suggestions as to
> > what the problem could be? Do we need to create the tables a head of
> > time? Is there a script to do so? Any help would be appreciated,
> > thanks!
> >
> > Craig
> > 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Programming rights

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez
Vitantonio Messa wrote:
> Hi all,
>
> I have give to myself programming right on my xwiki (from the global 
> rights section), but still, when I write $doc.hasProgrammingRights() or 
> $context.hasProgrammingRights() I got "false" as response instead of true.
>
> Does anyone know where is my mistake?
> Thanks!
>
>
>   
Hi, Vitantonio

I'd not tried this until you have posted this message, but I've been 
seeing some Groovy (at least) related issues while working with 
1.2-milestone-1.5235 (some scripts didn't work at all, some syntaxes 
didn't work). I'm now using 1.2-SNAPSHOT.5607 and it looks like this was 
already solved. So, I've no answer to your question, but it is like this 
problem was solved in the path to the coming 1.2 release.

Let's see what others say!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Mathieu Dupuis

I have test the last daily build and it's now working.

Thanks,

Mathieu


vmassol wrote:
> 
> 
> On Nov 5, 2007, at 2:06 PM, Your XEN ICT Team - Ricardo Rodriguez wrote:
> 
>> Vincent Massol wrote:
>>> I was fearing that the instructions would be too generic but I'm
>>> curious to know what you were not able to understand so that I can  
>>> add
>>> it to the instructions.
>>>
>>> If you go in
>>> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/
>>> you'll find 2 directories, one called 1.1-SNAPSHOT and one called
>>> 1.2-SNAPSHOT. They correspond to the versions being built. Then once
>>> you're in one of these directories you have direct access to the WAR
>>> files, named with the date.
>>>
>>> The last version that was uploaded is this one (I found this by
>>> looking at the dates):
>>> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/1.2-SNAPSHOT/xwiki-web-standard-1.2-20071102.133137-12.war
>>>
>>> Just realized the build is currently failing because one maven plugin
>>> cannot be downloaded anymore from a remote repo. Need to fix this.
>>>
>>> Thanks
>>> -Vincent
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/user
>>>
>>
>> Thanks, Vincent,
>>
>> I was simply looking for the file in the wrong location (I was here
>> http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise/
>> instead of here the right platform place)
>>
>> I thought it was clear to me how downloadable files are organized, but
>> the new #info frame has stressed my lack of understanding. Or could it
>> be possible that the first entry in the Download TOC, XWiki  
>> Enterprise,
>> and the the first in the #info frame, XWiki Enterprise files, are a  
>> bit
>> confusing. Wouldn't you expect to find the Platform Standard WAR under
>> XWiki Enterprise files?
>>
>> It is for sure that for any developer this is clear enough, but I am  
>> not
>> so sure for simple users like me myself. (Of course, it is pretty
>> advisable that such an user keeps away nightly builds! :-)
> 
> I think what's missing is what I'm working on: a new xwiki.org that  
> clearly separates the Platform from the products (XE, XEM, Watch, etc)  
> and that explains what each does.
> 
> This new xwiki.org should be up within 1 month.
> 
>> Coming back ASAP with news on the translation issue.
> 
> Cool
> 
> Thanks
> -Vincent
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cannot-translate-page-in-xwiki-1.1.1-tf4645706.html#a13589914
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Programming rights

2007-11-05 Thread Vincent Massol

On Nov 5, 2007, at 3:58 PM, Vitantonio Messa wrote:

> Hi all,
>
> I have give to myself programming right on my xwiki (from the global
> rights section), but still, when I write $doc.hasProgrammingRights()  
> or
> $context.hasProgrammingRights() I got "false" as response instead of  
> true.
>
> Does anyone know where is my mistake?

is your wiki in a virtual setup?

If so, I think only users created on the main wiki can have  
programming rights.

-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Mathieu Dupuis

What I changed is the language hidden field in the edit page. 
http://localhost:8080/xwiki/bin/edit/Main/WebHome?editor=wysiwyg&language=fr






I change the value="en" to wathever new translation I want. (fr for my test)

Mathieu


Ricardo Rodríguez wrote:
> 
> Mathieu Dupuis wrote:
>> I have the same problem,
>>
>> I think I have found the problem. If you change the hidden field
>> 'language'
>> en the form 'edit' to the language you want. Everything goes well.
>>
>> The way I am doing it is with firebug on Firefox. I can probably download
>> the source code and submit a patch but it could take a while for me to
>> understand to source code.
>>
>> I have create a JIRA bug at http://jira.xwiki.org/jira/browse/XEM-63
>>
>> I hope this help
>>
>> Mathieu
> Hi, Mathieu,
> 
> I am trying to do the same while working with XWiki 1.2-milestone-1.5235 
> and I keep getting the default page modified instead of a new translated 
> version.
> 
> Even more: although I've set up a language other than English as default 
> language, any new document I create as it were in English.
> 
> Please, what fields' value do you modified and where? 
>  and 
> http://www.w3.org/1999/xhtml";>?
> 
> Thanks!
> 
> Cheers,
> 
> -- 
> Ricardo Rodríguez
> Your XEN ICT Team
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cannot-translate-page-in-xwiki-1.1.1-tf4645706.html#a13588541
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Programming rights

2007-11-05 Thread Vitantonio Messa
Hi all,

I have give to myself programming right on my xwiki (from the global 
rights section), but still, when I write $doc.hasProgrammingRights() or 
$context.hasProgrammingRights() I got "false" as response instead of true.

Does anyone know where is my mistake?
Thanks!


-- 
Vitantonio Messa
+358 46 889 48 49 - [EMAIL PROTECTED]
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Vincent Massol

On Nov 5, 2007, at 2:06 PM, Your XEN ICT Team - Ricardo Rodriguez wrote:

> Vincent Massol wrote:
>> I was fearing that the instructions would be too generic but I'm
>> curious to know what you were not able to understand so that I can  
>> add
>> it to the instructions.
>>
>> If you go in 
>> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/
>> you'll find 2 directories, one called 1.1-SNAPSHOT and one called
>> 1.2-SNAPSHOT. They correspond to the versions being built. Then once
>> you're in one of these directories you have direct access to the WAR
>> files, named with the date.
>>
>> The last version that was uploaded is this one (I found this by
>> looking at the dates):
>> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/1.2-SNAPSHOT/xwiki-web-standard-1.2-20071102.133137-12.war
>>
>> Just realized the build is currently failing because one maven plugin
>> cannot be downloaded anymore from a remote repo. Need to fix this.
>>
>> Thanks
>> -Vincent
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/user
>>
>
> Thanks, Vincent,
>
> I was simply looking for the file in the wrong location (I was here
> http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise/
> instead of here the right platform place)
>
> I thought it was clear to me how downloadable files are organized, but
> the new #info frame has stressed my lack of understanding. Or could it
> be possible that the first entry in the Download TOC, XWiki  
> Enterprise,
> and the the first in the #info frame, XWiki Enterprise files, are a  
> bit
> confusing. Wouldn't you expect to find the Platform Standard WAR under
> XWiki Enterprise files?
>
> It is for sure that for any developer this is clear enough, but I am  
> not
> so sure for simple users like me myself. (Of course, it is pretty
> advisable that such an user keeps away nightly builds! :-)

I think what's missing is what I'm working on: a new xwiki.org that  
clearly separates the Platform from the products (XE, XEM, Watch, etc)  
and that explains what each does.

This new xwiki.org should be up within 1 month.

> Coming back ASAP with news on the translation issue.

Cool

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Cannot translate page in xwiki-1.1.1

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez
Vincent Massol wrote:
> I was fearing that the instructions would be too generic but I'm  
> curious to know what you were not able to understand so that I can add  
> it to the instructions.
>
> If you go in 
> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/ 
>   you'll find 2 directories, one called 1.1-SNAPSHOT and one called  
> 1.2-SNAPSHOT. They correspond to the versions being built. Then once  
> you're in one of these directories you have direct access to the WAR  
> files, named with the date.
>
> The last version that was uploaded is this one (I found this by  
> looking at the dates):
> http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-web-standard/1.2-SNAPSHOT/xwiki-web-standard-1.2-20071102.133137-12.war
>
> Just realized the build is currently failing because one maven plugin  
> cannot be downloaded anymore from a remote repo. Need to fix this.
>
> Thanks
> -Vincent
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/user
>   

Thanks, Vincent,

I was simply looking for the file in the wrong location (I was here 
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise/ 
instead of here the right platform place)

I thought it was clear to me how downloadable files are organized, but 
the new #info frame has stressed my lack of understanding. Or could it 
be possible that the first entry in the Download TOC, XWiki Enterprise, 
and the the first in the #info frame, XWiki Enterprise files, are a bit 
confusing. Wouldn't you expect to find the Platform Standard WAR under 
XWiki Enterprise files?

It is for sure that for any developer this is clear enough, but I am not 
so sure for simple users like me myself. (Of course, it is pretty 
advisable that such an user keeps away nightly builds! :-)

Coming back ASAP with news on the translation issue.

Cheers,

-- 
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Deleting users and groups

2007-11-05 Thread Sergiu Dumitriu
[EMAIL PROTECTED] wrote:
> Hi
>
> After attaching XWiki to ldap, I'd like to completely wipe out my old
> users and groups. There are not many of them, so I can do that manually.
>
> The question is: Is it enough to go to each user page and delete the page,
> then go to each group page (except allusers and admins, I have those
> mapped to ldap groups), and delete the page?
>
> Thanks
>
>   
Hi,

Yes, that would be enough. However, you might still have some old 
usernames in the access rights, and document authors/creator names, but 
they won't affect the wiki in any way.

Sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Disable and hide comments

2007-11-05 Thread Marie Sauvage [EBM WebSourcing]




it worked perfectly, I
disabled the attachments too, as they are only for included images.
thank you very much !
Marie.

Sergiu Dumitriu a écrit :

  Marie Sauvage [EBM WebSourcing] wrote:
  
  
Hi all !

I'm trying to disable comments from all users (guests and logged 
users) and then to hide the useless comments zone at bottom of pages.
I've seen there is some options in the wiki.cfg file but I'm not the 
server admin. Is there a way to do that without having to modify the 
config file and reboot xwiki ? I don't find anything in the 
administration space.
I've thought to change the layout and remove this zone but I don't 
find it's a "clean" way to do, and maybe later we'll want to 
reactivate comments...

thanks for your help,
Marie.

  
  
Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to /xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to 
/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences 
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments, 
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property 
named showattachments.

Sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1)
AntiSpam:  SpamAssassin 3.1.4
by Markus Madlener @ http://www.copfilter.org

  




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Disable and hide comments

2007-11-05 Thread Sergiu Dumitriu
Marie Sauvage [EBM WebSourcing] wrote:
> Hi all !
>
> I'm trying to disable comments from all users (guests and logged 
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the 
> server admin. Is there a way to do that without having to modify the 
> config file and reboot xwiki ? I don't find anything in the 
> administration space.
> I've thought to change the layout and remove this zone but I don't 
> find it's a "clean" way to do, and maybe later we'll want to 
> reactivate comments...
>
> thanks for your help,
> Marie.

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to /xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to 
/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences
 
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments, 
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property 
named showattachments.

Sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Displaying Panel items

2007-11-05 Thread Your XEN ICT Team - Ricardo Rodriguez
Vitantonio Messa wrote:
> Hi,
>
> it is possible. Instead of checking if the current user has 
> administrator rights, you can check if he is in the group you want.
>
> There was a discussion about that some days ago on the mailing list. 
> Look for it, if I remember right there was also the code you need.
>
> Vito
>
>
>
> V. Harikrishnan Nair wrote:
>   
>> Hi.
>>
>>   It is seen that Panel items can be hidden from users other than the Admins
>> using this statement -> #if ($xwiki.hasAdminRights()), right ? 
>>
>>   Is it possible to be able to display certain Panel items to certain user
>> groups ? If so, how ?
>>
>> Harikrishnan
>> 
>
>   
Just to ease the task. To show/hide a panel for the current user:

#set ($user = $xwiki.getUser())
#if($user.isUserInGroup("XWiki.YourGroup"))
...
#end

HTH,

-- 
Ricardo Rodríguez
Your XEN ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Disable and hide comments

2007-11-05 Thread Marie Sauvage [EBM WebSourcing]




Hi all !

I'm trying to disable comments from all users (guests and logged users)
and then to hide the useless comments zone at bottom of pages.
I've seen there is some options in the wiki.cfg file but I'm not the
server admin. Is there a way to do that without having to modify the
config file and reboot xwiki ? I don't find anything in the
administration space.
I've thought to change the layout and remove this zone but I don't find
it's a "clean" way to do, and maybe later we'll want to reactivate
comments...

thanks for your help,
Marie.




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Deleting users and groups

2007-11-05 Thread pentaho
Hi

After attaching XWiki to ldap, I'd like to completely wipe out my old
users and groups. There are not many of them, so I can do that manually.

The question is: Is it enough to go to each user page and delete the page,
then go to each group page (except allusers and admins, I have those
mapped to ldap groups), and delete the page?

Thanks

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users