Re: [xwiki-users] solr.xml file missing

2016-08-03 Thread Stéphane LASSIRE
Hello THomas

That's the fast solution, thanks

Now I got some new errors, following tomorrow

Nice evening

Cordialement

Stéphane Lassire
Chargé de l'informatique et de la communication
Tél direct : 01 42 85 81 87
Courriel : slass...@cesap.asso.fr

-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
Envoyé : mercredi 3 août 2016 17:24
À : XWiki Users
Objet : Re: [xwiki-users] solr.xml file missing

The easiest is usually to delete the folder /var/lib/xwiki/data/solr and 
restar. XWiki will recreate a proper one and reindex everything 
automatically.

On Wed, Aug 3, 2016 at 5:19 PM, Stéphane LASSIRE  
wrote:
> Hello,
>
>
>
> I am migrating my Debian server from Wheezy to Jessie to have the
> latest xwiki stable version.
>
> Tomcat 7.0.56
>
> Apache 2.4.10
>
> JAVA 8
>
>
>
> At this moment I got some errors in catalina.out about the missing of
> the file solr.xml.
>
>
>
> How can I retrieve it ?
>
> I look on the net without success, I reinstall the package xwiki-solr,
> but this file do not came back.
>
>
>
> root@CESAP-WIKI01:/var/lib/xwiki/data/solr# dpkg -l | grep wiki
>
> rc  xwiki-common8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-common 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-pgsql-common   8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> rc  xwiki-enterprise-tomcat-common  6.4.2+1all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-tomcat7-common 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-tomcat7-pgsql  8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-solr-data 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> root@CESAP-WIKI01:/var/lib/xwiki/data/solr#
>
>
>
> Have you any idea ?
>
> THanks  a lot
>
>
>
> Cordialement
>
>
>
> Stéphane Lassire
>
>
>
> ___
> 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] How to get property data type

2016-08-03 Thread dullfig
in a somewhat related question, is it possible to add properties to a class 
from a script? (velocity, groovy, etc)

Dan

From: Marius Dumitru Florea [via XWiki] 
Sent: Wednesday, August 03, 2016 2:11 AM
To: dullfig 
Subject: Re: How to get property data type

On Wed, Aug 3, 2016 at 9:29 AM, Alexandru Cotiuga < 
[hidden email]> wrote: 

> Hello Dan, 
> 
> To find out what is the data type of a field you need to get the its class 
> with $field.class and depending on your needs, you can have something like: 
>   $field  (1) 
>   $field.class (class java.lang.Integer) 
>   $field.class.name (java.lang.Integer) 
>   $field.class.simpleName (Integer) 
> 

If by "field" Dan means the property of an object attached to a wiki page 

#set ($field = 
$xwiki.getDocument('Blog.BlogIntroduction').getObject('Blog.BlogPostClass').getProperty('publishDate'))
 

then the field type can be obtained from the XClass 

#set ($fieldType = 
$xwiki.getDocument('Blog.BlogPostClass').getxWikiClass().get('publishDate')) 
$fieldType.classType 
$fieldType.type 

This is documented at 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage
. 

Hope this helps, 
Marius 



> 
> Hope this is what you need, 
> Alex 
> 
> On Wed, Aug 3, 2016 at 2:07 AM, dullfig <[hidden email]> wrote: 
> 
> > hello: 
> > 
> > This seems like a simple question, but I looked through the API and 
> > couldn't 
> > igure it out. How do you get the data type of a field? is there a way to 
> > know from velocity if a field is a text field, number, date, etc? 
> > 
> > Dan 
> > 
> > 
> > 
> > -- 
> > View this message in context: 
> > 
> http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548.html
> > Sent from the XWiki- Users mailing list archive at Nabble.com. 
> > ___ 
> > users mailing list 
> > [hidden email] 
> > http://lists.xwiki.org/mailman/listinfo/users
> > 
> ___ 
> users mailing list 
> [hidden email] 
> http://lists.xwiki.org/mailman/listinfo/users
> 
___ 
users mailing list 
[hidden email] 
http://lists.xwiki.org/mailman/listinfo/users





If you reply to this email, your message will be added to the discussion below:
http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548p7600551.html
 
To unsubscribe from How to get property data type, click here.
NAML



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548p7600560.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] How to get property data type

2016-08-03 Thread dullfig
Thanks, that helps a lot.

Dan

From: Marius Dumitru Florea [via XWiki] 
Sent: Wednesday, August 03, 2016 2:11 AM
To: dullfig 
Subject: Re: How to get property data type

On Wed, Aug 3, 2016 at 9:29 AM, Alexandru Cotiuga < 
[hidden email]> wrote: 

> Hello Dan, 
> 
> To find out what is the data type of a field you need to get the its class 
> with $field.class and depending on your needs, you can have something like: 
>   $field  (1) 
>   $field.class (class java.lang.Integer) 
>   $field.class.name (java.lang.Integer) 
>   $field.class.simpleName (Integer) 
> 

If by "field" Dan means the property of an object attached to a wiki page 

#set ($field = 
$xwiki.getDocument('Blog.BlogIntroduction').getObject('Blog.BlogPostClass').getProperty('publishDate'))
 

then the field type can be obtained from the XClass 

#set ($fieldType = 
$xwiki.getDocument('Blog.BlogPostClass').getxWikiClass().get('publishDate')) 
$fieldType.classType 
$fieldType.type 

This is documented at 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage
. 

Hope this helps, 
Marius 



> 
> Hope this is what you need, 
> Alex 
> 
> On Wed, Aug 3, 2016 at 2:07 AM, dullfig <[hidden email]> wrote: 
> 
> > hello: 
> > 
> > This seems like a simple question, but I looked through the API and 
> > couldn't 
> > igure it out. How do you get the data type of a field? is there a way to 
> > know from velocity if a field is a text field, number, date, etc? 
> > 
> > Dan 
> > 
> > 
> > 
> > -- 
> > View this message in context: 
> > 
> http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548.html
> > Sent from the XWiki- Users mailing list archive at Nabble.com. 
> > ___ 
> > users mailing list 
> > [hidden email] 
> > http://lists.xwiki.org/mailman/listinfo/users
> > 
> ___ 
> users mailing list 
> [hidden email] 
> http://lists.xwiki.org/mailman/listinfo/users
> 
___ 
users mailing list 
[hidden email] 
http://lists.xwiki.org/mailman/listinfo/users





If you reply to this email, your message will be added to the discussion below:
http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548p7600551.html
 
To unsubscribe from How to get property data type, click here.
NAML



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548p7600559.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] solr.xml file missing

2016-08-03 Thread Thomas Mortagne
The easiest is usually to delete the folder /var/lib/xwiki/data/solr
and restar. XWiki will recreate a proper one and reindex everything
automatically.

On Wed, Aug 3, 2016 at 5:19 PM, Stéphane LASSIRE  wrote:
> Hello,
>
>
>
> I am migrating my Debian server from Wheezy to Jessie to have the latest
> xwiki stable version.
>
> Tomcat 7.0.56
>
> Apache 2.4.10
>
> JAVA 8
>
>
>
> At this moment I got some errors in catalina.out about the missing of the
> file solr.xml.
>
>
>
> How can I retrieve it ?
>
> I look on the net without success, I reinstall the package xwiki-solr, but
> this file do not came back.
>
>
>
> root@CESAP-WIKI01:/var/lib/xwiki/data/solr# dpkg -l | grep wiki
>
> rc  xwiki-common8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-common 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-pgsql-common   8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> rc  xwiki-enterprise-tomcat-common  6.4.2+1all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-tomcat7-common 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-enterprise-tomcat7-pgsql  8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> ii  xwiki-solr-data 8.2.1  all
> XWiki is a free wiki software platform written in Java with a design
> emphasis
>
> root@CESAP-WIKI01:/var/lib/xwiki/data/solr#
>
>
>
> Have you any idea ?
>
> THanks  a lot
>
>
>
> Cordialement
>
>
>
> Stéphane Lassire
>
>
>
> ___
> 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] solr.xml file missing

2016-08-03 Thread Stéphane LASSIRE
Hello,



I am migrating my Debian server from Wheezy to Jessie to have the latest 
xwiki stable version.

Tomcat 7.0.56

Apache 2.4.10

JAVA 8



At this moment I got some errors in catalina.out about the missing of the 
file solr.xml.



How can I retrieve it ?

I look on the net without success, I reinstall the package xwiki-solr, but 
this file do not came back.



root@CESAP-WIKI01:/var/lib/xwiki/data/solr# dpkg -l | grep wiki

rc  xwiki-common8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

ii  xwiki-enterprise-common 8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

ii  xwiki-enterprise-pgsql-common   8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

rc  xwiki-enterprise-tomcat-common  6.4.2+1all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

ii  xwiki-enterprise-tomcat7-common 8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

ii  xwiki-enterprise-tomcat7-pgsql  8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

ii  xwiki-solr-data 8.2.1  all 
XWiki is a free wiki software platform written in Java with a design 
emphasis

root@CESAP-WIKI01:/var/lib/xwiki/data/solr#



Have you any idea ?

THanks  a lot



Cordialement



Stéphane Lassire



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


[xwiki-users] mobile/tablet support for new templates

2016-08-03 Thread superuser
The new 4 templates in 8.2 are nice. But the view on mobile need to be
corrected, i think.. e.g. the contents section of encyclopedia template
should come at top but currently its at bottom when view on small screens. I
dont intend to change the template structure for large/ PC screens (they are
really good), but want to adjust for small screens. 
How can i do that?
Also any help on 'how to reorganize content view on mobile' is appreciated. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/mobile-tablet-support-for-new-templates-tp7600556.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] Include/Display macro now requiring .WebHome

2016-08-03 Thread Patrick Tomblin
Hi Marius,

Thanks this helps and ill keep an eye on the jira issue as well.

This was a fresh blank install of 8.1 a few weeks ago so there should not
have been the nested structure from 7.2.
It seems the pages that are letting me map without .WebHome are pages that
have imported from word documents and split into other pages based on
headers.

Thanks for your help,
Patrick


Patrick Tomblin
Cell - 513-227-9364
E-Mail - tombl...@gmail.com
LinkedIn - www.linkedin.com/pub/patrick-tomblin/1b/6aa/807

On Wed, Aug 3, 2016 at 5:26 AM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> Hi Patrick,
>
> In case you haven't read, there is
>
> http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization/
>
> http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization/NestedPagesMigration/
>
> that describe the Nested Pages feature that was introduced in 7.2.
>
> There's no change between 8.1 and 8.2 regarding Nested Pages and the
> Include / Display macros. If the page you want to include / display is a
> nested page (non-terminal) then you have to use the WebHome prefix for the
> moment (see http://jira.xwiki.org/browse/XWIKI-13066 ). But this was true
> in 8.1 also.
>
> Hope this helps,
> Marius
>
> On Tue, Aug 2, 2016 at 7:18 PM, Patrick Tomblin 
> wrote:
>
> > Good afternoon all,
> >
> > I upgraded from 8.1 to 8.2 and for some reason when I use the include or
> > display macro I now need to specify .WebHome at the end of every
> document I
> > want to pull in.
> >
> > Most of the pages that are being pulled in are pages and not spaces, from
> > my understanding you only need to specify .WebHome if you pull from a
> space
> > but this does not seem to be the case.
> >
> > Thanks in advance,
> > - Patrick
> > ___
> > 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] How to resend activation link

2016-08-03 Thread Mahomed Hussein
Any ideas please? I've tried to look at the code of the registration page and I 
can't see how to butcher it resend the email.

Ideally, what should happen is that the page that asks for the validation key 
should give the option to update the email address and to also resend the email 
(in case the user made a typo with the email in the first place). Should I log 
this as a bug?


Kind regards,




Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Mahomed Hussein
Sent: 02 August 2016 11:29
To: XWiki Users 
Subject: [xwiki-users] How to resend activation link

Hi

Is there a way to re-send the activation link/code to a user without having to 
delete and recreate the user account? I’ve already configured permissions for 
this user and I really don’t want to have to do it again please. I created 
several users and they thought it was wiser to not activate it at the time.


Kind regards,


Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.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] Include/Display macro now requiring .WebHome

2016-08-03 Thread Marius Dumitru Florea
Hi Patrick,

In case you haven't read, there is

http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization/
http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization/NestedPagesMigration/

that describe the Nested Pages feature that was introduced in 7.2.

There's no change between 8.1 and 8.2 regarding Nested Pages and the
Include / Display macros. If the page you want to include / display is a
nested page (non-terminal) then you have to use the WebHome prefix for the
moment (see http://jira.xwiki.org/browse/XWIKI-13066 ). But this was true
in 8.1 also.

Hope this helps,
Marius

On Tue, Aug 2, 2016 at 7:18 PM, Patrick Tomblin  wrote:

> Good afternoon all,
>
> I upgraded from 8.1 to 8.2 and for some reason when I use the include or
> display macro I now need to specify .WebHome at the end of every document I
> want to pull in.
>
> Most of the pages that are being pulled in are pages and not spaces, from
> my understanding you only need to specify .WebHome if you pull from a space
> but this does not seem to be the case.
>
> Thanks in advance,
> - Patrick
> ___
> 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] How to get property data type

2016-08-03 Thread Marius Dumitru Florea
On Wed, Aug 3, 2016 at 9:29 AM, Alexandru Cotiuga <
alexandru.coti...@xwiki.com> wrote:

> Hello Dan,
>
> To find out what is the data type of a field you need to get the its class
> with $field.class and depending on your needs, you can have something like:
>   $field  (1)
>   $field.class (class java.lang.Integer)
>   $field.class.name (java.lang.Integer)
>   $field.class.simpleName (Integer)
>

If by "field" Dan means the property of an object attached to a wiki page

#set ($field =
$xwiki.getDocument('Blog.BlogIntroduction').getObject('Blog.BlogPostClass').getProperty('publishDate'))

then the field type can be obtained from the XClass

#set ($fieldType =
$xwiki.getDocument('Blog.BlogPostClass').getxWikiClass().get('publishDate'))
$fieldType.classType
$fieldType.type

This is documented at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage
.

Hope this helps,
Marius


>
> Hope this is what you need,
> Alex
>
> On Wed, Aug 3, 2016 at 2:07 AM, dullfig  wrote:
>
> > hello:
> >
> > This seems like a simple question, but I looked through the API and
> > couldn't
> > igure it out. How do you get the data type of a field? is there a way to
> > know from velocity if a field is a text field, number, date, etc?
> >
> > Dan
> >
> >
> >
> > --
> > View this message in context:
> >
> http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548.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
> >
> ___
> 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] How to get property data type

2016-08-03 Thread Alexandru Cotiuga
Hello Dan,

To find out what is the data type of a field you need to get the its class
with $field.class and depending on your needs, you can have something like:
  $field  (1)
  $field.class (class java.lang.Integer)
  $field.class.name (java.lang.Integer)
  $field.class.simpleName (Integer)

Hope this is what you need,
Alex

On Wed, Aug 3, 2016 at 2:07 AM, dullfig  wrote:

> hello:
>
> This seems like a simple question, but I looked through the API and
> couldn't
> igure it out. How do you get the data type of a field? is there a way to
> know from velocity if a field is a text field, number, date, etc?
>
> Dan
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/How-to-get-property-data-type-tp7600548.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users