Re: [xwiki-users] How to get XWiki Class Name with velocity/xwiki API ?

2015-04-03 Thread Pascal BASTIEN
Finally, I found this nice snippet:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+Static+List+Elements
to obtain all values from my Database List properties. :-)


En date de : Jeu 2.4.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr a écrit :

 Objet: [xwiki-users] How to get XWiki Class Name with velocity/xwiki API 
?
 À: XWiki Users users@xwiki.org
 Date: Jeudi 2 avril 2015, 18h42
 
 Hello,
 
 I have a Class with multiple properties. In my velocity
 script I can loop over all properties to get their name and
 pretty name.
 I have some properties with Database List type and I want
 to get:
 - especially XWiki Class Name
 - Id Field Name 
 - and Value Field Name 
 Is it possible?
 I didn't found documentation section.
 
 Thxs
 Pascal BASTIEN
 
 ___
 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] A way to add some tags on saved page with class

2015-04-03 Thread Marius Dumitru Florea
On Thu, Apr 2, 2015 at 5:51 PM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote:
 Hello,

 I'm looking for advice about a way to add some tags on saved page with class.
 What I have:
 - a sheet page with an object Class ( with an object class + properties) + a 
 template page
 - a velocity code in a page AddMyTag to add some tags on  some page with this 
 URL parameters:
 $!request.PageSource, $!request.ClassName

 What I'm trying to do, is: when a user save a page, a tag is added. The tag 
 to add is coming from a properties value (last character on property name is 
 _Tag).
 If I call my 'AddMyTag' page, tags are correctly added on PageSource.

 To resume:
 - the user save HisPage
 - HisPage add tags from a properties value (name xxx_Tag)

 My problem is how can I launch automaticelly my 'AddMyTag' page when a user 
 record PageSource?
 I tried with Ajax with
 document.observe(xwiki:actions:save, function(event){ 
 (http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HActionevents28actionButtons.js29)
  but the problem is: sometime  xxx_Tag property value is updated after my 
 AJAX call (and the old tag is attached on page).

 A the moment, I'm looking for another way, I read 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module
 But documentation indicate: The goal is to listen ... DocumentUpdatingEvent 
 events (note that these events are fired before the page is saved and thus 
 our code doesn't need to perform the save itself ...

 Then I can not use this method either because I must add tag from new value 
 from my _Tag properties.

It doesn't say the document doesn't have the changes. But that the
event is fired before the changes are saved. So if you listen to this
event you should be able to get the new property value and add the
tag. Just don't call save() in the event handled because this is done
automatically after the event is passed to all handlers (including
yours).

Hope this helps,
Marius


 How can I launch a velocity script on a document after document is saved (to 
 add some tag from the document itself)?

 Thxs for any help

 Pascal B




 ___
 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] Advice on upgrade and testing

2015-04-03 Thread vinc...@massol.net
Hi Mahomed,

2 things:  

1) if you pressed “later” XWiki will not ask you again until it’s restarted  
2) if you don’t upgrade now you are going to risk having stuff in your wiki 
that don’t work so it’s important you upgrade ASAP. Having a reminder at each 
XWiki restart is a good thing and bypassing that is not such a brilliant idea 
IMO :)

Thanks  
-Vincent

On 3 Apr 2015 at 13:01:10, Mahomed Hussein 
(maho...@custodiandc.com(mailto:maho...@custodiandc.com)) wrote:  
 Hi
  
 This is brilliant and just what I needed. Thank you very much!
  
  
 Kind regards,
  
 Mahomed
  
  
  
  
 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru 
 Florea
 Sent: 03 April 2015 11:37
 To: XWiki Users
 Subject: Re: [xwiki-users] Advice on upgrade and testing
  
 On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
 wrote:
  On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
  wrote:
  Hi
 
  I wonder if anyone could be kind enough to provide me with some advice and 
  pointers. I’ve noticed that XWiki runs its distribution upgrade wizard 
  automatically when a new version is detected, but even though I pressed 
  “Later” it still went ahead and upgraded. Or at least it appeared to have 
  upgraded part of the system as the core version at the bottom showed 6.4.3 
  when the extensions etc. were still for 6.4.2. We started with 6.4.2 
  (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:
 
 
  · How do I stop Xwiki from automatically upgrading. I just want it to 
  notify me then I can plan the upgrade
 
  You are mixing two different things. The upgrade wizard is only about
  part of XWiki (the standard wiki pages) and it's been triggered
  because you upgraded the WAR probably using apt-get upgrade. If you
  don't want XWiki to be upgraded by apt-get you need to look at apt-get
  configuration.
  
  As far as I know you can indicate a list of packages to
  not be taken into account automatically by apt-get upgrade.
  
 I successfully 'blocked' upgrades for XWiki by creating the file
  
 /etc/apt/preferences.d/xwiki
  
 with this content:
  
 Package: xwiki-*
 Pin: version 6.2.7
 Pin-Priority: 1001
  
 See https://help.ubuntu.com/community/PinningHowto
  
 Hope this helps,
 Marius
  
 
 
  · How do you perform a controlled upgrade and test (I appreciate that this 
  is a rather in-depth question)? What I need to be able to do is to do an 
  upgrade and then be able to fairly easily test that the new version 
  doesn’t break any of our documents or functionality that we depend on. 
  Would the only way to do this be to keep a list of my changes and check 
  them with every upgrade?
 
  The safest for this is usually to have a test server which is a clone
  of the production server on which you do the upgrade and test it
  before doing it on the production server.
 
 
  Thanks in advance for your time and help.
 
 
  Kind regards,
 
 
 
 
  Mahomed Hussein
  Senior NOC Engineer
 
  P.S. We are finalists for Data Centre Colocation Supplier of the year, 
  please help us to win and VOTE for us here
 
  Tel: +44 (0)1622 230382
 
  | Email: maho...@custodiandc.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
Finally I added some CSS Id on my inline form (in my Sheet) and getProperty 
value with JS and document.observe(xwiki:actions:save).
I call my   TagUpdater Page with AJAX
var request=$.ajax({method: POST,
  url: Url,
  data: UrlParams,
  dataType: html,
  async: false});
My Ajax requests are sent synchronous if not sometimes my page is recorded 
before Tag added, and sometimes not, ...
I know it is ugly way but I haven't choice.

(Anyway, I will schedule some batch to fix my tags)


En date de : Jeu 2.4.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr a écrit :

 Objet: [xwiki-users] A way to add some tags on saved page with class
 À: XWiki Users users@xwiki.org
 Date: Jeudi 2 avril 2015, 15h51
 
 Hello,
 
 I'm looking for advice about a way to add some tags on saved
 page with class.
 What I have:
 - a sheet page with an object Class ( with an object class +
 properties) + a template page
 - a velocity code in a page AddMyTag to add some tags
 on  some page with this URL parameters:
 $!request.PageSource, $!request.ClassName
 
 What I'm trying to do, is: when a user save a page, a tag is
 added. The tag to add is coming from a properties value
 (last character on property name is _Tag).
 If I call my 'AddMyTag' page, tags are correctly added on
 PageSource.
 
 To resume:
 - the user save HisPage
 - HisPage add tags from a properties value (name xxx_Tag) 
 
 My problem is how can I launch automaticelly my 'AddMyTag'
 page when a user record PageSource?
 I tried with Ajax with
 document.observe(xwiki:actions:save, function(event){ 
(http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HActionevents28actionButtons.js29)
 but the problem is: sometime  xxx_Tag property value is
 updated after my AJAX call (and the old tag is attached on
 page).
 
 A the moment, I'm looking for another way, I read 
http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module
 But documentation indicate: The goal is to listen ...
 DocumentUpdatingEvent events (note that these events are
 fired before the page is saved and thus our code doesn't
 need to perform the save itself ...
 Then I can not use this method either because I must add tag
 from new value from my _Tag properties.
 
 How can I launch a velocity script on a document after
 document is saved (to add some tag from the document
 itself)?
 
 Thxs for any help
 
 Pascal B
 
 ___
 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] Advice on upgrade and testing

2015-04-03 Thread Mahomed Hussein
Hi

This is brilliant and just what I needed. Thank you very much!


Kind regards,

Mahomed




-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea
Sent: 03 April 2015 11:37
To: XWiki Users
Subject: Re: [xwiki-users] Advice on upgrade and testing

On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
 maho...@custodiandc.com wrote:
 Hi

 I wonder if anyone could be kind enough to provide me with some advice and 
 pointers. I’ve noticed that XWiki runs its distribution upgrade wizard 
 automatically when a new version is detected, but even though I pressed 
 “Later” it still went ahead and upgraded. Or at least it appeared to have 
 upgraded part of the system as the core version at the bottom showed 6.4.3 
 when the extensions etc. were still for 6.4.2. We started with 6.4.2 
 (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:


 · How do I stop Xwiki from automatically upgrading. I just want it 
 to notify me then I can plan the upgrade

 You are mixing two different things. The upgrade wizard is only about
 part of XWiki (the standard wiki pages) and it's been triggered
 because you upgraded the WAR probably using apt-get upgrade. If you
 don't want XWiki to be upgraded by apt-get you need to look at apt-get
 configuration.

 As far as I know you can indicate a list of packages to
 not be taken into account automatically by apt-get upgrade.

I successfully 'blocked' upgrades for XWiki by creating the file

/etc/apt/preferences.d/xwiki

with this content:

Package: xwiki-*
Pin: version 6.2.7
Pin-Priority: 1001

See https://help.ubuntu.com/community/PinningHowto

Hope this helps,
Marius



 · How do you perform a controlled upgrade and test (I appreciate 
 that this is a rather in-depth question)? What I need to be able to do is to 
 do an upgrade and then be able to fairly easily test that the new version 
 doesn’t break any of our documents or functionality that we depend on. Would 
 the only way to do this be to keep a list of my changes and check them with 
 every upgrade?

 The safest for this is usually to have a test server which is a clone
 of the production server on which you do the upgrade and test it
 before doing it on the production server.


 Thanks in advance for your time and help.


 Kind regards,




 Mahomed Hussein
 Senior NOC Engineer

 P.S. We are finalists for Data Centre Colocation Supplier of the year, 
 please help us to win and VOTEhttp://www.dcsawards.com/voting.php for us 
 herehttp://www.dcsawards.com/voting.php

 Tel: +44 (0)1622 230382

  | Email: maho...@custodiandc.com


  | Web: www.CustodianDC.comhttp://www.CustodianDC.com


  | Info: info.CustodianDC.comhttp://info.CustodianDC.com


 [Custodian Data Centres]http://www.CustodianDC.com
 [ISO 27001 IS:567248]

 Click to VOTEhttp://www.dcsawards.com/voting.php for Custodian! [DCS 
 Awards Finalist]


 [Like us on Facebook!][Follow us on Twitter][See us on YouTube!]
 [Link to us!][Google Plus!]


 Click here to view our email 
 disclaimerhttp://www.custodiandc.com/disclaimer.txt
 Registered Office: Maidstone TV Studios, Vinters Park, Maidstone, Kent ME14 
 5NZ. Company Number: 07878023




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



 --
 Thomas Mortagne
 ___
 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] User Permissions Issue

2015-04-03 Thread mahomed
Hi

I've tried reading through the security and rights articles but I'm afraid
it hasn't really helped make things any clearer for me. At the moment I have
this very strange scenario where adding/removing users to a group doesn't
immediately (or at all) apply the permission unless I add and remove
XWikiAllGroup to the group and then remove it.

http://xwiki.475771.n2.nabble.com/file/n7594521/sales_rights.png 

Above is how the permissions are applied to the Sales space. 

I then add my MH Test user to one group (e.g. sales_write) and then try
and refresh in Firefox (Using private mode and clearing the local cache.
Using refresh=1 doesn't help either). Only once did I manage to make the
user able to see the space. 

But, if I add the test user to the group and then add XWikiAllGroup and
refresh then I can see the space. If I then remove XWikiAllGroup from the
group, I can STILL see the space and make changes etc.

I have allowed XWikiAllGroup View Permission in a different group called
General-Read which I created in order to allow read-access to the General
space. It appears to me that XWiki is seeing the user as part of
XWikiAllGroup in General-Read and see that General-Read doesn't have
explicit allow or deny and then ties with the permission of allow in
Sales_Read and apparently Deny wins?

Below are screenshots of how the General-* has its permissions applied in
the Sales space.

http://xwiki.475771.n2.nabble.com/file/n7594521/general_permissions_in_sales.png
 

I have gone further and removed XWikiAllGroup from General-Read and I can
then immediately see the permissions in the Sales-* groups being applied. If
I then add the Sales-* groups as sub-groups of General-Read, then I get the
same behaviour, i.e. user of Sales* gets denied permission.

As I write this, I'm starting to think/understand that this is the designed
behaviour and my only solution will be to use Sub-Wikis instead of spaces.
So for example Sales sub-wiki and General sub-wiki. Users would be
members/registered to the main wiki, but I could then create groups in the
sub-wiki for Read, Read/Write, Admin and it wouldn't get over-ridden/collide
with permissions/user in other groups.

Can anyone tell me if I'm on the right track or point me at some
documentation or provide some tips please? Thanks in advance for your time
and help.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/User-Permissions-Issue-tp7594486p7594521.html
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] Advice on upgrade and testing

2015-04-03 Thread Marius Dumitru Florea
On Fri, Apr 3, 2015 at 2:05 PM, vinc...@massol.net vinc...@massol.net wrote:
 Hi Mahomed,

 2 things:

 1) if you pressed “later” XWiki will not ask you again until it’s restarted

 2) if you don’t upgrade now you are going to risk having stuff in your wiki 
 that don’t work so it’s important you upgrade ASAP. Having a reminder at each 
 XWiki restart is a good thing and bypassing that is not such a brilliant idea 
 IMO :)

My comment was about blocking the WAR upgrades not the UI upgrades
(through the DW). When you install XWiki through APT you may get
unwanted WAR uppdates because:

* the system is configured to update automatically
* the list of system updates is large and you don't notice that XWiki
is included in the list

Thanks,
Marius


 Thanks
 -Vincent

 On 3 Apr 2015 at 13:01:10, Mahomed Hussein 
 (maho...@custodiandc.com(mailto:maho...@custodiandc.com)) wrote:
 Hi

 This is brilliant and just what I needed. Thank you very much!


 Kind regards,

 Mahomed




 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru 
 Florea
 Sent: 03 April 2015 11:37
 To: XWiki Users
 Subject: Re: [xwiki-users] Advice on upgrade and testing

 On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
 wrote:
  On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
  wrote:
  Hi
 
  I wonder if anyone could be kind enough to provide me with some advice 
  and pointers. I’ve noticed that XWiki runs its distribution upgrade 
  wizard automatically when a new version is detected, but even though I 
  pressed “Later” it still went ahead and upgraded. Or at least it appeared 
  to have upgraded part of the system as the core version at the bottom 
  showed 6.4.3 when the extensions etc. were still for 6.4.2. We started 
  with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my 
  questions:
 
 
  · How do I stop Xwiki from automatically upgrading. I just want it to 
  notify me then I can plan the upgrade
 
  You are mixing two different things. The upgrade wizard is only about
  part of XWiki (the standard wiki pages) and it's been triggered
  because you upgraded the WAR probably using apt-get upgrade. If you
  don't want XWiki to be upgraded by apt-get you need to look at apt-get
  configuration.

  As far as I know you can indicate a list of packages to
  not be taken into account automatically by apt-get upgrade.

 I successfully 'blocked' upgrades for XWiki by creating the file

 /etc/apt/preferences.d/xwiki

 with this content:

 Package: xwiki-*
 Pin: version 6.2.7
 Pin-Priority: 1001

 See https://help.ubuntu.com/community/PinningHowto

 Hope this helps,
 Marius

 
 
  · How do you perform a controlled upgrade and test (I appreciate that 
  this is a rather in-depth question)? What I need to be able to do is to 
  do an upgrade and then be able to fairly easily test that the new version 
  doesn’t break any of our documents or functionality that we depend on. 
  Would the only way to do this be to keep a list of my changes and check 
  them with every upgrade?
 
  The safest for this is usually to have a test server which is a clone
  of the production server on which you do the upgrade and test it
  before doing it on the production server.
 
 
  Thanks in advance for your time and help.
 
 
  Kind regards,
 
 
 
 
  Mahomed Hussein
  Senior NOC Engineer
 
  P.S. We are finalists for Data Centre Colocation Supplier of the year, 
  please help us to win and VOTE for us here
 
  Tel: +44 (0)1622 230382
 
  | Email: maho...@custodiandc.com
 ___
 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] Xwiki Flamingo Icons Bug?

2015-04-03 Thread Thomas Mortagne
You should maybe also check the icon theme (same place than the skin
in administration). The standard wth Flamingo is usually Font
Awesome.


On Thu, Apr 2, 2015 at 9:36 PM, Georg Hirn georg.h...@gmail.com wrote:
 Hi Thomas!

 Thank you for your answer.
 I have deleted my browser cache (Chrome), but nothing changed. I have tried
 it in Firefox and on different devices (e.g. iPhone, Android phones),
 everywhere the same behavior.
 So I think its may not the browser cache. Do you have any other idea?

 2015-04-02 9:48 GMT+02:00 Thomas Mortagne thomas.morta...@xwiki.com:

 Did you try to clean your browser cache ?

 On Wed, Apr 1, 2015 at 11:12 PM, Georg Hirn georg.h...@gmail.com wrote:
  Hi,
 
  I have changed the skin of my xwiki(6.4.3) installation from calibri to
  flamingo. When I refreshed the page there were some errors. On some
 buttons
  the icons were drawn multiple, see the picture in the attachment.
  I tired to update to the latest stable xwiki version (7.0) but nothing
  changed.
  Could anybody help me please?
 
  Thanks,
  Georg
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 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



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


Re: [xwiki-users] Advice on upgrade and testing

2015-04-03 Thread vinc...@massol.net
Indeed not upgrading WAR + UI makes sense. Upgrading only WAR without the UI 
doesn’t.

We agree :)

Thanks
-Vincent

On 3 Apr 2015 at 13:37:48, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com) wrote:

On Fri, Apr 3, 2015 at 2:05 PM, vinc...@massol.net vinc...@massol.net wrote:
 Hi Mahomed,

 2 things:

 1) if you pressed “later” XWiki will not ask you again until it’s restarted

 2) if you don’t upgrade now you are going to risk having stuff in your wiki 
 that don’t work so it’s important you upgrade ASAP. Having a reminder at each 
 XWiki restart is a good thing and bypassing that is not such a brilliant idea 
 IMO :)

My comment was about blocking the WAR upgrades not the UI upgrades
(through the DW). When you install XWiki through APT you may get
unwanted WAR uppdates because:

* the system is configured to update automatically
* the list of system updates is large and you don't notice that XWiki
is included in the list

Thanks,
Marius


 Thanks
 -Vincent

 On 3 Apr 2015 at 13:01:10, Mahomed Hussein 
 (maho...@custodiandc.com(mailto:maho...@custodiandc.com)) wrote:
 Hi

 This is brilliant and just what I needed. Thank you very much!


 Kind regards,

 Mahomed




 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru 
 Florea
 Sent: 03 April 2015 11:37
 To: XWiki Users
 Subject: Re: [xwiki-users] Advice on upgrade and testing

 On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
 wrote:
  On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
  wrote:
  Hi
 
  I wonder if anyone could be kind enough to provide me with some advice 
  and pointers. I’ve noticed that XWiki runs its distribution upgrade 
  wizard automatically when a new version is detected, but even though I 
  pressed “Later” it still went ahead and upgraded. Or at least it appeared 
  to have upgraded part of the system as the core version at the bottom 
  showed 6.4.3 when the extensions etc. were still for 6.4.2. We started 
  with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my 
  questions:
 
 
  · How do I stop Xwiki from automatically upgrading. I just want it to 
  notify me then I can plan the upgrade
 
  You are mixing two different things. The upgrade wizard is only about
  part of XWiki (the standard wiki pages) and it's been triggered
  because you upgraded the WAR probably using apt-get upgrade. If you
  don't want XWiki to be upgraded by apt-get you need to look at apt-get
  configuration.

  As far as I know you can indicate a list of packages to
  not be taken into account automatically by apt-get upgrade.

 I successfully 'blocked' upgrades for XWiki by creating the file

 /etc/apt/preferences.d/xwiki

 with this content:

 Package: xwiki-*
 Pin: version 6.2.7
 Pin-Priority: 1001

 See https://help.ubuntu.com/community/PinningHowto

 Hope this helps,
 Marius

 
 
  · How do you perform a controlled upgrade and test (I appreciate that 
  this is a rather in-depth question)? What I need to be able to do is to 
  do an upgrade and then be able to fairly easily test that the new version 
  doesn’t break any of our documents or functionality that we depend on. 
  Would the only way to do this be to keep a list of my changes and check 
  them with every upgrade?
 
  The safest for this is usually to have a test server which is a clone
  of the production server on which you do the upgrade and test it
  before doing it on the production server.
 
 
  Thanks in advance for your time and help.
 
 
  Kind regards,
 
 
 
 
  Mahomed Hussein
  Senior NOC Engineer
 
  P.S. We are finalists for Data Centre Colocation Supplier of the year, 
  please help us to win and VOTE for us here
 
  Tel: +44 (0)1622 230382
 
  | Email: maho...@custodiandc.com
 ___
 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Fw : Re: A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN

 
  A the
 moment, I'm looking for another way, I read 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module
  But documentation indicate: The goal
 is to listen ... DocumentUpdatingEvent events (note that
 these events are fired before the page is saved and thus our
 code doesn't need to perform the save itself
 ...
 
  Then I can
 not use this method either because I must add tag from new
 value from my _Tag properties.
 
 It doesn't say the document doesn't
 have the changes. But that the
 event is
 fired before the changes are saved. So if you listen to
 this
 event you should be able to get the new
 property value and add the
 tag. Just
 don't call save() in the event handled because this is
 done
 automatically after the event is passed
 to all handlers (including
 yours).

Ok thxs.
Then I must try this method, I must found the way to execute my velocity script 
to add/remove some tags (all is ready, I need to pass this parameter on my 
velocity code:
$request.PageSourceTo applyMyTag (and eventually) 
$!request.MyClassAttachedOnMyPage
but I'm affraid than there will be some conflict (or loop) because my velocity 
script use $xwiki.tag.addTagToDocument(String tag, String documentName) : this 
method save document...
Why I don't use full groovy script? Because I know API xwiki with velocity only 
 (it is simple and groovy doc missing)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Advice on upgrade and testing

2015-04-03 Thread Mahomed Hussein
I admit I didn't initially understand the WAR + UI upgrade relation. But now 
that it has been explained,  I promise to upgrade both when I do my testing and 
production upgrades :)


Kind regards,

Mahomed




-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of vinc...@massol.net
Sent: 03 April 2015 12:39
To: Marius Dumitru Florea; XWiki Users
Subject: Re: [xwiki-users] Advice on upgrade and testing

Indeed not upgrading WAR + UI makes sense. Upgrading only WAR without the UI 
doesn’t.

We agree :)

Thanks
-Vincent

On 3 Apr 2015 at 13:37:48, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com) wrote:

On Fri, Apr 3, 2015 at 2:05 PM, vinc...@massol.net vinc...@massol.net wrote:
 Hi Mahomed,

 2 things:

 1) if you pressed “later” XWiki will not ask you again until it’s restarted

 2) if you don’t upgrade now you are going to risk having stuff in your wiki 
 that don’t work so it’s important you upgrade ASAP. Having a reminder at each 
 XWiki restart is a good thing and bypassing that is not such a brilliant idea 
 IMO :)

My comment was about blocking the WAR upgrades not the UI upgrades
(through the DW). When you install XWiki through APT you may get
unwanted WAR uppdates because:

* the system is configured to update automatically
* the list of system updates is large and you don't notice that XWiki
is included in the list

Thanks,
Marius


 Thanks
 -Vincent

 On 3 Apr 2015 at 13:01:10, Mahomed Hussein 
 (maho...@custodiandc.com(mailto:maho...@custodiandc.com)) wrote:
 Hi

 This is brilliant and just what I needed. Thank you very much!


 Kind regards,

 Mahomed




 -Original Message-
 From: users [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru 
 Florea
 Sent: 03 April 2015 11:37
 To: XWiki Users
 Subject: Re: [xwiki-users] Advice on upgrade and testing

 On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
 wrote:
  On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
  wrote:
  Hi
 
  I wonder if anyone could be kind enough to provide me with some advice 
  and pointers. I’ve noticed that XWiki runs its distribution upgrade 
  wizard automatically when a new version is detected, but even though I 
  pressed “Later” it still went ahead and upgraded. Or at least it appeared 
  to have upgraded part of the system as the core version at the bottom 
  showed 6.4.3 when the extensions etc. were still for 6.4.2. We started 
  with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my 
  questions:
 
 
  · How do I stop Xwiki from automatically upgrading. I just want it to 
  notify me then I can plan the upgrade
 
  You are mixing two different things. The upgrade wizard is only about
  part of XWiki (the standard wiki pages) and it's been triggered
  because you upgraded the WAR probably using apt-get upgrade. If you
  don't want XWiki to be upgraded by apt-get you need to look at apt-get
  configuration.

  As far as I know you can indicate a list of packages to
  not be taken into account automatically by apt-get upgrade.

 I successfully 'blocked' upgrades for XWiki by creating the file

 /etc/apt/preferences.d/xwiki

 with this content:

 Package: xwiki-*
 Pin: version 6.2.7
 Pin-Priority: 1001

 See https://help.ubuntu.com/community/PinningHowto

 Hope this helps,
 Marius

 
 
  · How do you perform a controlled upgrade and test (I appreciate that 
  this is a rather in-depth question)? What I need to be able to do is to 
  do an upgrade and then be able to fairly easily test that the new version 
  doesn’t break any of our documents or functionality that we depend on. 
  Would the only way to do this be to keep a list of my changes and check 
  them with every upgrade?
 
  The safest for this is usually to have a test server which is a clone
  of the production server on which you do the upgrade and test it
  before doing it on the production server.
 
 
  Thanks in advance for your time and help.
 
 
  Kind regards,
 
 
 
 
  Mahomed Hussein
  Senior NOC Engineer
 
  P.S. We are finalists for Data Centre Colocation Supplier of the year, 
  please help us to win and VOTE for us here
 
  Tel: +44 (0)1622 230382
 
  | Email: maho...@custodiandc.com
 ___
 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
___
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] Need help with xwiki search engine

2015-04-03 Thread Marius Dumitru Florea
On Thu, Mar 26, 2015 at 4:25 PM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote:
 Hello

 I created an application:
 - my Class EAClass contain a field DG MOA * : (P1_DgMoa: Database List)
 Display Type: select
 Sort: Id
 XWiki Class Name: FormSMQ.ListeDGClass
 Id Field Name: DGId
 Value Field Name: DGLib

 My Class (source of select list) FormSMQ.ListeDGClass have 2 fields:
 DG Id (DGId: String): contain l'Id of my list
 DG Lib (DGLib: String): contain lib (pretty name like) who is displayed on my 
 list select.
 My data are:
 DGId:20_dgaln / DGLib: DGALN
 DGId:25_dgec / DGLib: DGEC
 DGId:30_dgitm / DGLib: DGITM
 ...

 Everything going well:
 -all pages based on  EAClass displayed Lib Value in view mode and in edit 
 mode too (the id value is stored in the page)...

 Except for search engine: I have some problems:

 - search page searching only Id value and not lib value (of course because 
 it is the id value that is stored in EAClass object)
 i.e. I found pages, if I search 25_dgec but not if I search DGEC

Yes, this is 'normal' because ATM only the raw value (id) is indexed
for Database List properties.

 - Result search page displayed property name (and not the pretty name) FAQ 
 have same issue.
 - my solr facet displayed my id value too.

 Do you know how can I fix this issue (if someone understand my problem ;-) )?

 Here I paste a nice screenchot: http://snag.gy/Joa7q.jpg

ATM there's no solution for the search results highlights. The
property name displayed there is part of the highlight (the matched
text) and it cannot be parsed (if the property value is large enough
and the match is somewhere at the end then the property name is not
even included in the match).

Regarding the raw value (id) displayed in the facet, you can write a
custom facet that displays the label corresponding to the raw value.

Hope this helps,
Marius


 Thanks.

 Pascal B




 ___
 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] Links not Opening in New Tabs / Windows

2015-04-03 Thread Marius Dumitru Florea
On Wed, Mar 18, 2015 at 11:45 PM, Shawn Woods sha...@mangar.com wrote:
 We are having an issue where some links that have been created are not 
 opening up in a new tab or window.  An unregistered user is prompted to 
 download the linked attached document rather than opening up in a new tab or 
 window, even if the option is set in the link.


 If the contributor that created the link does not have program right, we see 
 the above behavior.  If the admin account created the link, it works as 
 expected.

See 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki52#HChoosingwhichtypesofattachmentscanbedisplayedinline28Security29

Hope this helps,
Marius


 We are on version 6.3

 Please advise.




 This e-mail, and any attachments, is intended only for the use of the
 addressee(s) named herein and may contain legally privileged and/or 
 confidential
 information.  If you are not the intended recipient of this e-mail, you are
 hereby notified that any dissemination, distribution or copying of this 
 e-mail,
 and any attachments, is strictly prohibited.  If you have received this 
 e-mail in
 error, please notify me via return e-mail immediately  and permanently delete 
 the
 original from your computer.  Thank you, Mangar Industries Inc.
 ___
 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] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
FI with JS  document.observe(xwiki:actions:save). method my script doesn't 
work well...
When I save and close my page: my tag is added OR my field are update OR the 
script going well OR I obtain a nice error message:
Information détaillée:

Error number 3201 in 3: Exception while saving document 
xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving 
document xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche
at 
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:780)
at 
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:178)
at 
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:171)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.hibernate.HibernateException: Failed to commit or rollback 
transaction. Root cause []
at 
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:1022)
at 
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:770)
... 69 more
Caused by: org.hibernate.StaleStateException: Batch update returned unexpected 
row count from update [1]; actual row count: 0; expected: 1
at 
org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85)
at 
org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70)



En date de : Ven 3.4.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr a écrit :

 Objet: Re : [xwiki-users] A way to add some tags on saved page with class
 À: XWiki Users users@xwiki.org
 Date: Vendredi 3 avril 2015, 11h00
 
 Finally I added some CSS
 Id on my inline form (in my Sheet) and getProperty value
 with JS and
 document.observe(xwiki:actions:save).
 I call my   TagUpdater Page with
 AJAX
     var request=$.ajax({method:
 POST,
                  
         url: Url,
              
             data: UrlParams,
      
                     dataType: html,
                           async:
 false});
 My Ajax requests are sent
 synchronous if not sometimes my page is recorded before Tag
 added, and sometimes not, ...
 I know it is
 ugly way but I haven't choice.
 
 (Anyway, I will schedule some batch to fix my
 tags)
 
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fw : livetable with multiple class?

2015-04-03 Thread Marius Dumitru Florea
On Fri, Mar 27, 2015 at 5:13 PM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote:


 --- En date de : Ven 27.3.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr a 
 écrit :

 De: Pascal BASTIEN pbasnews-xw...@yahoo.fr
 Objet: [xwiki-users]  livetable with multiple class?
 À: XWiki Users users@xwiki.org
 Date: Vendredi 27 mars 2015, 14h19
 If I understand documentation, to use
 Livetable with multiple Class (with 3 or 4 common
 properties: same name) I must use
 Parameter $options:
 resultPageThe full name of the page to
 use as a JSON data provider for the table. This option
 allows to use a different data source than the default one
 (XWiki.LiveTableResults) for specific needs not handled by
 LiveTableResults (for example: complex cross-classes
 queries, external data retrieved with a groovy script,
 etc.).

 ...
 Can I do it with query in one (or two) shots or I must use a
 foreach loop to rendering my JSON data?

 I found my query, something like this:
 #set($hql = select obj.name, prop.value from BaseObject obj, StringProperty 
 prop where ( obj.className='FormSMQ.EAClass' or 
 obj.className='FormSMQ.PiacJ2Class' ) and prop.id.id=obj.id and 
 prop.name='TypeFiche_RO')


 Now I need the JSON format of my JSON data provider (resultPage parameter: 
 full name of the page to use as a JSON data provider for the table)

You can use 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-ui/src/main/resources/XWiki/ExternalLinksJSON.xml
as an example of a custom results page.

Hope this helps,
Marius



 ___
 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] Xwiki Flamingo Icons Bug?

2015-04-03 Thread Marius Dumitru Florea
On Thu, Apr 2, 2015 at 12:12 AM, Georg Hirn georg.h...@gmail.com wrote:
 Hi,


 I have changed the skin of my xwiki(6.4.3) installation from calibri to
 flamingo.

Flamingo is the default skin since XWiki 6.2 so why did you have to
switch from Colibri? Did you do an upgrade from a previous version (
6.2)? It's always important to mention if the problem is on a clean
install or after an upgrade.

Thanks,
Marius

 When I refreshed the page there were some errors. On some buttons
 the icons were drawn multiple, see the picture in the attachment.
 I tired to update to the latest stable xwiki version (7.0) but nothing
 changed.
 Could anybody help me please?

 Thanks,
 Georg
 ___
 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] Docker XWiki

2015-04-03 Thread Fabio Mancinelli
Hi again

apparently I forgot to push things there. Sorry for that.

However I thought that it was better to have this contribution
directly in xwiki-contrib, so now you can find it - with actual
content! - here: https://github.com/xwiki-contrib/docker-xwiki

Thanks and sorry for the inconvenience,
Fabio

On Fri, Apr 3, 2015 at 12:37 AM, Fabio Mancinelli
fabio.mancine...@xwiki.com wrote:
 Hi all,

 since I wanted to better understand how Docker works, as an evening
 project I created a Dockerfile for packaging an image that can be used
 to run an XWiki container.

 It also supports data persistence, so that you don't lose your data
 when you shut down the container.

 You can find it here: https://github.com/fmancinelli/docker-xwiki

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


Re: [xwiki-users] Advice on upgrade and testing

2015-04-03 Thread Marius Dumitru Florea
On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
 maho...@custodiandc.com wrote:
 Hi

 I wonder if anyone could be kind enough to provide me with some advice and 
 pointers. I’ve noticed that XWiki runs its distribution upgrade wizard 
 automatically when a new version is detected, but even though I pressed 
 “Later” it still went ahead and upgraded. Or at least it appeared to have 
 upgraded part of the system as the core version at the bottom showed 6.4.3 
 when the extensions etc. were still for 6.4.2. We started with 6.4.2 
 (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:


 · How do I stop Xwiki from automatically upgrading. I just want it 
 to notify me then I can plan the upgrade

 You are mixing two different things. The upgrade wizard is only about
 part of XWiki (the standard wiki pages) and it's been triggered
 because you upgraded the WAR probably using apt-get upgrade. If you
 don't want XWiki to be upgraded by apt-get you need to look at apt-get
 configuration.

 As far as I know you can indicate a list of packages to
 not be taken into account automatically by apt-get upgrade.

I successfully 'blocked' upgrades for XWiki by creating the file

/etc/apt/preferences.d/xwiki

with this content:

Package: xwiki-*
Pin: version 6.2.7
Pin-Priority: 1001

See https://help.ubuntu.com/community/PinningHowto

Hope this helps,
Marius



 · How do you perform a controlled upgrade and test (I appreciate 
 that this is a rather in-depth question)? What I need to be able to do is to 
 do an upgrade and then be able to fairly easily test that the new version 
 doesn’t break any of our documents or functionality that we depend on. Would 
 the only way to do this be to keep a list of my changes and check them with 
 every upgrade?

 The safest for this is usually to have a test server which is a clone
 of the production server on which you do the upgrade and test it
 before doing it on the production server.


 Thanks in advance for your time and help.


 Kind regards,




 Mahomed Hussein
 Senior NOC Engineer

 P.S. We are finalists for Data Centre Colocation Supplier of the year, 
 please help us to win and VOTEhttp://www.dcsawards.com/voting.php for us 
 herehttp://www.dcsawards.com/voting.php

 Tel: +44 (0)1622 230382

  | Email: maho...@custodiandc.com


  | Web: www.CustodianDC.comhttp://www.CustodianDC.com


  | Info: info.CustodianDC.comhttp://info.CustodianDC.com


 [Custodian Data Centres]http://www.CustodianDC.com
 [ISO 27001 IS:567248]

 Click to VOTEhttp://www.dcsawards.com/voting.php for Custodian! [DCS 
 Awards Finalist]


 [Like us on Facebook!][Follow us on Twitter][See us on YouTube!]
 [Link to us!][Google Plus!]


 Click here to view our email 
 disclaimerhttp://www.custodiandc.com/disclaimer.txt
 Registered Office: Maidstone TV Studios, Vinters Park, Maidstone, Kent ME14 
 5NZ. Company Number: 07878023




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



 --
 Thomas Mortagne
 ___
 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] Xwiki Flamingo Icons Bug?

2015-04-03 Thread Georg Hirn
I'm sorry but i can't find any option like icon theme.
Am I in the wrong dialog(see the screenshots in the attachments)?

2015-04-03 12:27 GMT+02:00 Georg Hirn georg.h...@gmail.com:

 I'm sorry but i can't find any option like icon theme.
 Am I in the wrong dialog(see the screenshots in the attachments)?

 2015-04-03 11:32 GMT+02:00 Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com:

 On Thu, Apr 2, 2015 at 12:12 AM, Georg Hirn georg.h...@gmail.com wrote:
  Hi,
 

  I have changed the skin of my xwiki(6.4.3) installation from calibri to
  flamingo.

 Flamingo is the default skin since XWiki 6.2 so why did you have to
 switch from Colibri? Did you do an upgrade from a previous version (
 6.2)? It's always important to mention if the problem is on a clean
 install or after an upgrade.

 Thanks,
 Marius

  When I refreshed the page there were some errors. On some buttons
  the icons were drawn multiple, see the picture in the attachment.
  I tired to update to the latest stable xwiki version (7.0) but nothing
  changed.
  Could anybody help me please?
 
  Thanks,
  Georg
  ___
  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



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


Re: [xwiki-users] Xwiki Flamingo Icons Bug?

2015-04-03 Thread Thomas Mortagne
You should have it at the bottom on
http://yourhost/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Presentation.
If you don't then it means you did not finished your upgrade
 and that may be why you have issues.

On Fri, Apr 3, 2015 at 12:53 PM, Georg Hirn georg.h...@gmail.com wrote:
 I'm sorry but i can't find any option like icon theme.
 Am I in the wrong dialog(see the screenshots in the attachments)?

 2015-04-03 12:27 GMT+02:00 Georg Hirn georg.h...@gmail.com:

 I'm sorry but i can't find any option like icon theme.
 Am I in the wrong dialog(see the screenshots in the attachments)?

 2015-04-03 11:32 GMT+02:00 Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com:

 On Thu, Apr 2, 2015 at 12:12 AM, Georg Hirn georg.h...@gmail.com wrote:
  Hi,
 

  I have changed the skin of my xwiki(6.4.3) installation from calibri to
  flamingo.

 Flamingo is the default skin since XWiki 6.2 so why did you have to
 switch from Colibri? Did you do an upgrade from a previous version (
 6.2)? It's always important to mention if the problem is on a clean
 install or after an upgrade.

 Thanks,
 Marius

  When I refreshed the page there were some errors. On some buttons
  the icons were drawn multiple, see the picture in the attachment.
  I tired to update to the latest stable xwiki version (7.0) but nothing
  changed.
  Could anybody help me please?
 
  Thanks,
  Georg
  ___
  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



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



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


[xwiki-users] XWiki Users Displaying

2015-04-03 Thread Vlad Andreev
Hello!

I'm trying to use XWIki for purposes for company documentation and data.

My first step is to setup XWiki for HR Department, and for now I have
problems with that.

Can you please help me?

   1. How can I make some kind of Address Book? We need a place, where we
   can put in all contacts of our current team, their photo, emails, tel.
   numbers, skype, etc.
   2. Is it possible to place this kind of information on dashboard?
   3. Is there any way to place an announcement, so all xwiki users will
   see it?


-- 

*Faithfully yours,Andreev Vladislav*
*Head Project Manager*
*Cleveroad Inc.*
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] A way to add some tags on saved page with class

2015-04-03 Thread Pascal BASTIEN
How silly am I!
I was dealing with the problem in the wrong way.
Instead to add some tag on saving page, some piece of velocity code in my Sheet 
(in view mode) must doing the right thinks...
(I will paste the code when I finish it)

(Anyway my batch working :-/)


En date de : Ven 3.4.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr a écrit :

 Objet: Re: [xwiki-users] A way to add some tags on saved page with class
 À: XWiki Users users@xwiki.org
 Date: Vendredi 3 avril 2015, 15h45
 
 FI with JS 
 document.observe(xwiki:actions:save). method my
 script doesn't work well...
 When I save
 and close my page: my tag is added OR my field are update OR
 the script going well OR I obtain a nice error message:
 Information détaillée:
 
     Error number 3201 in 3: Exception while
 saving document xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche
 com.xpn.xwiki.XWikiException: Error number 3201
 in 3: Exception while saving document
 xwiki:FormSMQ.SMQ-P3-FPIAC-Jolie Fiche
 
 
 
 En date de : Ven 3.4.15, Pascal BASTIEN pbasnews-xw...@yahoo.fr
 a écrit :
 
  Objet: Re :
 [xwiki-users] A way to add some tags on saved page with
 class
  À: XWiki Users users@xwiki.org
 
 Date: Vendredi 3 avril 2015, 11h00
  
  Finally I added some CSS
  Id
 on my inline form (in my Sheet) and getProperty value
  with JS and
 
 document.observe(xwiki:actions:save).
  I call my   TagUpdater Page with
  AJAX
      var
 request=$.ajax({method:
 
 POST,
                 
  
          url: Url,
 
              
             
 data: UrlParams,
       
 
                     dataType: html,
                           
 async:
  false});
  My Ajax
 requests are sent
  synchronous if not
 sometimes my page is recorded before Tag
 
 added, and sometimes not, ...
  I know it
 is
  ugly way but I haven't choice.
  
  (Anyway, I will schedule
 some batch to fix my
  tags)
 
 
  
 ___
 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] XWiki Users Displaying

2015-04-03 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi Vlad!

I'm sure Brahms, Chopin, Schubert and many more colleagues would have enjoyed 
XWiki a lot! But I'm afraid it is a bit late for them all... but not for all of 
us!

If I'm correct, what you are looking for it is simply the User Directory of any 
XWiki installation. Here you have the link to Wiki User Directory by itself...

http://www.xwiki.org/xwiki/bin/view/Main/UserDirectory

This page show, by default, information you load at user creating time (for 
creating users, go to HomeAdministe wiki, once you have logging in as admin or 
an user with admin rights). XWiki data model is easily extensible and you 
allways can create new properties in existing classes or brand new classes to 
hold any kind of people/user related information.

Here you have a nice page on how create new users...

http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/CreatingNewUsers

About how advertise that pages in your wiki: by default, you'll find an User 
Indez link in the left column of any new XWiki installation. Just create some 
new users and play around a bit with them. You easily understand the basis of 
the system. But of course it could be included in the Dashboard or any other 
page that has been installed by the upgrade/installation process.

This is a nice place to start to understand how XWiki pages are built...

http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/EditingAPage

Hope this helps!

Ricardo

--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es


De: users [users-boun...@xwiki.org] en nombre de Vlad Andreev 
[v...@cleveroad.com]
Enviado: sábado, 04 de abril de 2015 1:01
Para: users@xwiki.org
Asunto: Re: [xwiki-users] XWiki Users Displaying

Something like this: https://i.vimeocdn.com/video/11065681_640.jpg

Will be awesome!
Please help!

2015-04-04 1:09 GMT+03:00 Vlad Andreev v...@cleveroad.com:

 Hello!

 I'm trying to use XWIki for purposes for company documentation and data.

 My first step is to setup XWiki for HR Department, and for now I have
 problems with that.

 Can you please help me?

1. How can I make some kind of Address Book? We need a place, where we
can put in all contacts of our current team, their photo, emails, tel.
numbers, skype, etc.
2. Is it possible to place this kind of information on dashboard?
3. Is there any way to place an announcement, so all xwiki users will
see it?


 --

 *Faithfully yours,Andreev Vladislav*
 *Head Project Manager*
 *Cleveroad Inc.*




--

*Faithfully yours,Andreev Vladislav*
*Head Project Manager*
*Cleveroad Inc.*
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Users Displaying

2015-04-03 Thread Vlad Andreev
Something like this: https://i.vimeocdn.com/video/11065681_640.jpg

Will be awesome!
Please help!

2015-04-04 1:09 GMT+03:00 Vlad Andreev v...@cleveroad.com:

 Hello!

 I'm trying to use XWIki for purposes for company documentation and data.

 My first step is to setup XWiki for HR Department, and for now I have
 problems with that.

 Can you please help me?

1. How can I make some kind of Address Book? We need a place, where we
can put in all contacts of our current team, their photo, emails, tel.
numbers, skype, etc.
2. Is it possible to place this kind of information on dashboard?
3. Is there any way to place an announcement, so all xwiki users will
see it?


 --

 *Faithfully yours,Andreev Vladislav*
 *Head Project Manager*
 *Cleveroad Inc.*




-- 

*Faithfully yours,Andreev Vladislav*
*Head Project Manager*
*Cleveroad Inc.*
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Synchronize two XWiki installations

2015-04-03 Thread Marius Dumitru Florea
On Tue, Mar 24, 2015 at 11:40 AM, Nicolas Delsaux
nicolas.dels...@gmx.fr wrote:
 Hi,
 As I tried XWiki, I used my laptop as server with the Windows standalone
 install.
 Now, I want to have XWiki installed on a standard server with a standard
 DB/web server using the XWiki RPM (I guess this RPM will not install
 Jetty/SQLite, but Tomcat/??).
 But, I would better not have to reinstall the various extensions, recreate
 the users (with the same login/passwords) and rewrite the pages I already
 have.


 Is there any synchronisation mechanism available that would allow me to give
 the official XWiki my prototype one as a kind of upstream server and
 make sure their content and config is synchronized ?

For wiki pages (which includes the users) you can use
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport . For
extensions you can copy the 'extensions' folder (which holds the
extension index) from XWiki's permanent directory (from your laptop,
but I'm not sure where this is located on Windows) to the permanent
directory of the XWiki instance from the target server.

Hope this helps,
Marius


 Thanks

 --
 Nicolas Delsaux
 ___
 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


[xwiki-users] Fw : Re: Need help with xwiki search engine

2015-04-03 Thread Pascal BASTIEN

 
  -
 search page searching only Id value and not lib
 value (of course because it is the id value that is stored
 in EAClass object)
  i.e. I found pages,
 if I search 25_dgec but not if I search
 DGEC
 
 Yes, this
 is 'normal' because ATM only the raw value (id) is
 indexed
 for Database List properties.
 
  - Result search
 page displayed property name (and not the pretty name)
 FAQ have same issue.
  - my solr facet
 displayed my id value too.
 
  Do you know how can I fix this issue (if
 someone understand my problem ;-) )?
 
  Here I paste a nice screenchot: http://snag.gy/Joa7q.jpg
 
 ATM there's no solution
 for the search results highlights. The
 property name displayed there is part of the
 highlight (the matched
 text) and it cannot
 be parsed (if the property value is large enough
 and the match is somewhere at the end then the
 property name is not
 even included in the
 match).
 

To resolve the problem I use lib column to display correct value (and not the 
id)

 Regarding the raw
 value (id) displayed in the facet, you can write a
 custom facet that displays the label
 corresponding to the raw value.
 
Yes I manage to did this solution, but I was confronted at multi class problem 
(again)

Thxs anyway, I store pretty name in my Page with Class.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Fw : Re: Fw : livetable with multiple class?

2015-04-03 Thread Pascal BASTIEN

  I found my
 query, something like this:
  #set($hql =
 select obj.name, prop.value from BaseObject obj,
 StringProperty prop where (
 obj.className='FormSMQ.EAClass' or
 obj.className='FormSMQ.PiacJ2Class' ) and
 prop.id.id=obj.id and
 prop.name='TypeFiche_RO')
 
 
  Now
 I need the JSON format of my JSON data provider (resultPage
 parameter: full name of the page to use as a JSON data
 provider for the table)
 
 You
 can use 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-ui/src/main/resources/XWiki/ExternalLinksJSON.xml
 as an example of a custom results page.

Thanks, I will give a try.
With ResultPage, I wonder if I could use select list of livetable.

Thanks you VERY much to make my week-end busy ;-)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users