Re: [xwiki-users] Problem solr search interface

2016-07-28 Thread Julio Brum
To test you can create a page with the following content:

{{include reference="XWiki.SearchCode"/}}
Test bug
{{velocity}}{{include reference="$searchPage"/}}{{/velocity}}




Regards,Julio

  De: Julio Brum 
 Para: "users@xwiki.org"  
 Enviadas: Quinta-feira, 28 de Julho de 2016 16:24
 Assunto: [xwiki-users] Problem solr search interface
   
Hello,
When I'm on the search page of XWiki, every time I click on title, date, etc. 
(in order by), is added a blank line on the page. This causes the search box 
down.
In fact, by clicking on the sort order  tags of the page is duplicated. The 
same happens if I click on the facets,
http://localhost:8080/xwiki-enterprise-web-7.4.4/bin/view/Main/Search?text=test&f_type=DOCUMENT&f_locale=pt_BR&f_locale=&r=1
Regards,Julio

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


Re: [xwiki-users] Refreshing livetable

2016-07-28 Thread Daniel Ullfig
I also noticed that there is a livetable.js component among the source code. 
Is there documentation on how to use this component directly?


Dan

-Original Message- 
From: dullfig

Sent: Thursday, July 28, 2016 1:41 PM
To: users@xwiki.org
Subject: [xwiki-users] Refreshing livetable

Hello, this question has been asked, but I want to do something different:
can you change the columns being displayed from javascript? is the entire
funcionality of the livetable contained in javascript, or is it only a
rendering of the table?

I want to have a list of headings with a checkbox each, and when the user
checks a checkbox, that heading is included in the livetable.

Dan



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Refreshing-livetable-tp7600510.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


[xwiki-users] Refreshing livetable

2016-07-28 Thread dullfig
Hello, this question has been asked, but I want to do something different:
can you change the columns being displayed from javascript? is the entire
funcionality of the livetable contained in javascript, or is it only a
rendering of the table?

I want to have a list of headings with a checkbox each, and when the user
checks a checkbox, that heading is included in the livetable.

Dan



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Refreshing-livetable-tp7600510.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


[xwiki-users] Problem solr search interface

2016-07-28 Thread Julio Brum
Hello,
When I'm on the search page of XWiki, every time I click on title, date, etc. 
(in order by), is added a blank line on the page. This causes the search box 
down.
In fact, by clicking on the sort order  tags of the page is duplicated. The 
same happens if I click on the facets,
http://localhost:8080/xwiki-enterprise-web-7.4.4/bin/view/Main/Search?text=test&f_type=DOCUMENT&f_locale=pt_BR&f_locale=&r=1
Regards,Julio
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Best Attachment Store

2016-07-28 Thread Julio Brum
Thank you Marius!

  De: Marius Dumitru Florea 
 Para: XWiki Users  
 Enviadas: Quarta-feira, 27 de Julho de 2016 6:56
 Assunto: Re: [xwiki-users] Best Attachment Store
   
On Tue, Jul 12, 2016 at 1:36 AM, Julio Brum  wrote:

> Thanks Vincent,
>


> I still do not know if the files are large or if there are many files. In
> which database table are the attached files, please?
>

See http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema .


> Regards,Julio
>
>      De: Vincent Massol 
>  Para: XWiki Users 
>  Enviadas: Sábado, 9 de Julho de 2016 4:54
>  Assunto: Re: [xwiki-users] Best Attachment Store
>
> Hi Julio,
>
> > On 09 Jul 2016, at 00:46, Julio Brum  wrote:
> >
> > Hello,
> > What is the best way of storing the attached files (Database Attachment
> Store or Filesystem Attachment Store)? Currently we store in the database,
> but already with a dump postgres in 17GB. I am in doubt about what is the
> best form of storage.
>
> You’re correct, see
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
>
> You should move to the FS store if you have large data to attach to pages.
>
> Thanks
> -Vincent
>
> > Thank you in advance.
> > Regards,Julio
>
> ___
> 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] Anonymous users with administrative rights

2016-07-28 Thread Julio Brum
Thank you Marius!



  De: Marius Dumitru Florea 
 Para: Julio Brum ; XWiki Users  
 Enviadas: Quarta-feira, 27 de Julho de 2016 7:09
 Assunto: Re: [xwiki-users] Anonymous users with administrative rights
   
See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Security+Module#HDefaultrightsbeingpredefined
 . Programming right implies administration right.

On Tue, Jul 12, 2016 at 9:54 PM, Julio Brum  wrote:

Hi,

I'm doing tests with the 7.4.4 version, using the skin colibri. When I give 
right of access "program" to non-registered users, they gain the ability to 
manage the XWiki, anonymously.
I gave this kind of access that is occurring parsing error when I use the skin 
colibri. Codes velocity, for example, in XWiki Preferences not work.

In other words, there are two problems: anonymous users with the right 
management and errors in the execution of velocity codes.
Log:WARN  org.xwiki.velocity.internal.DefaultVelocityEngine - Deprecated usage 
of method [com.xpn.xwiki.api.XWiki.parseContent] in 
41:/skins/colibri/view.vm@25,47

Thank you in advance,Julio
___
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] Solr elevate.xml

2016-07-28 Thread Julio Brum
Thank you Marius,
but as I search within the XWiki using elevate?
Regards,Julio

  De: Marius Dumitru Florea 
 Para: XWiki Users  
 Enviadas: Quarta-feira, 27 de Julho de 2016 7:07
 Assunto: Re: [xwiki-users] Solr elevate.xml
   
See
https://cwiki.apache.org/confluence/display/solr/The+Query+Elevation+Component
. You probably need to add:


  elevator


to the /select request handler configuration that is used by XWiki.

Hope this helps,
Marius

On Sat, Jul 9, 2016 at 1:45 AM, Julio Brum  wrote:

> Hello,
> does anyone know how to enable "elevate" (\solr\xwiki\conf\elevate.xml)
> feature in search XWiki?
> Thank you in advance.
> Regards,Julio
> ___
> 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] WYSIWYG Editor Not Working with Nginx https reverse proxy

2016-07-28 Thread simmsj
Pascal,

Thanks for the heads up. The server is for internal use, but I didn't want
authentication being passed over HTTP. I'll take an A in this case. Thank
you again for your help. It probably would have taken quite awhile for me to
track that down on my own.

Vincent,

It looks like the page you referenced on using Nginx is for high volume
sites. My use case was is having Nginx handle HTTPS traffic and port 80. I
can clean up my notes, but my configuration is quite different.

 - Jared



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/WYSIWYG-Editor-Not-Working-with-Nginx-https-reverse-proxy-tp7600471p7600505.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] WYSIWYG Editor Not Working with Nginx https reverse proxy

2016-07-28 Thread Gmail-ucebex
Fine :) 

Note : Be aware that removing these 3 lines from nginx will downgrade your 
WebSite SSL Security from A+ to A  :-)

(https://www.ssllabs.com/ssltest/ )

Best regards,
Pascal

> Le 27 juil. 2016 à 17:51, simmsj  a écrit :
> 
> Pascal,
> 
> That did the trick. All the editors now work over HTTPS in all the browsers
> I tested with.
> 
> Thanks for your help.
> 
> - Jared
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/WYSIWYG-Editor-Not-Working-with-Nginx-https-reverse-proxy-tp7600471p7600492.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


Re: [xwiki-users] XWiki Application: Pages of one app as dropdown values of other app

2016-07-28 Thread Marius Dumitru Florea
On Wed, Jul 27, 2016 at 4:00 PM, D R  wrote:

> Sorry, my mistake. I edited the wrong field. After changing back Id Field
> Name to doc.fullName and changing Value Field Name to doc.name it works
> but
> still shows 3 items instead of the 2 available pages:
>
> Customer ProfileTemplate
> Test Customer 1
> Test Customer 2
>
> On the Customer Profile Application I have the pages
> Test Customer 1
> Test Customer 2
>
>

> Why is the item "Customer ProfileTemplate" shown?
>

Because it has an object of type "Customer ProfileClass" like "Test
Customer 1" and "Test Customer 2". I'm afraid you need to use the query
(instead of the class name) if you want to filter it out.


>
> 2016-07-27 14:52 GMT+02:00 D R :
>
> > After changing "Id Field Name" to doc.name still the dropdown has 3
> empty
> > items though the source application has only 2 pages.
> >
> > Do you have another idea why it is not working?
> >
> > 2016-07-26 14:37 GMT+02:00 Marius Dumitru Florea <
> > mariusdumitru.flo...@xwiki.com>:
> >
> >> On Tue, Jul 26, 2016 at 11:45 AM, D R  wrote:
> >>
> >> > Thanks guys but I face an issue.
> >> >
> >> > I added a Database List property to the Class of App 2 as explained on
> >> >
> >> >
> >>
> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki
> >> > .
> >> > Name: customer
> >> > Display Type: select
> >> > Relational Storage checked
> >> > XWiki Class Name: Customer Profile.Code.Customer ProfileClass
> >> > Id Field Name: doc.fullName
> >> >
> >>
> >>
> >> > Value Field Name: doc.title
> >> >
> >>
> >> Try doc.name or make sure those pages have their title set by editing
> >> them
> >> in Wiki edit mode. doc.title is the raw document title which may be
> empty
> >> or may contain Velocity code. It's not the computed title you see
> >> displayed
> >> on the breadcrumb.
> >>
> >>
> >> >
> >> > In the App 2 Sheet I added
> >> > $doc.use('XPass.Code.XPassClass')
> >> > $doc.display('customer')
> >> >
> >> > In edit mode of entries of App 2 (XPass) I see 3 entries without text
> >> > (though App 1 -Customer Profile- has only 2 entries/pages) in the
> >> Customer
> >> > dropdown.
> >> >
> >> > Thank you very much in advance for some more help.
> >> >
> >> > 2016-07-25 16:40 GMT+02:00 Vincent Massol :
> >> >
> >> > > You might also find the following of interest (slightly related):
> >> > >
> >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial
> >> > >
> >> > > Thanks
> >> > > -Vincent
> >> > >
> >> > > > On 25 Jul 2016, at 14:56, Marius Dumitru Florea <
> >> > > mariusdumitru.flo...@xwiki.com> wrote:
> >> > > >
> >> > > > Hi Dennis,
> >> > > >
> >> > > > Maybe this can help
> >> > > >
> >> > >
> >> >
> >>
> http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki
> >> > > > .
> >> > > >
> >> > > > On Mon, Jul 25, 2016 at 3:35 PM, D R  wrote:
> >> > > >
> >> > > >> Hi community,
> >> > > >>
> >> > > >> I implemented a customer profile holding information about
> >> customers
> >> > as
> >> > > an
> >> > > >> XWiki application. Now in another app I'd like to have an
> optional
> >> > field
> >> > > >> that can contain the customer if it is related to one. Therefor I
> >> want
> >> > > to
> >> > > >> list all customers (existing pages of App 1) as dropdown values
> of
> >> a
> >> > > field
> >> > > >> of App 2.
> >> > > >>
> >> > > >> To illustrate what I'd like to achieve:
> >> > > >>
> >> > > >> App 1 (holding customer information):
> >> > > >> |-- Page "Customer 1"
> >> > > >> |-- Page "Customer 2"
> >> > > >> ...
> >> > > >>
> >> > > >> App 2 (holding other information but can be customer related):
> >> > > >> |-- Page 1
> >> > > >>|-- Field "Customer" = Dropdown of Pages of App 1 (Customer 1,
> >> > > Customer
> >> > > >> 2 ...)
> >> > > >>
> >> > > >> I'm rather new in scripting in XWiki/Velocity so I'd really
> >> appreciate
> >> > > some
> >> > > >> help on this :)
> >> > > >>
> >> > > >> Regards,
> >> > > >> Dennis
> >> > > ___
> >> > > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Velocity] get items of static list

2016-07-28 Thread Marius Dumitru Florea
On Wed, Jul 27, 2016 at 3:43 PM, D R  wrote:

> Thanks, Marius
>
> Well, looks like it is not supposed to be easy to display the items of a
> select field.
>
> After playing around for some time I have:
> #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass'))
> #set($rawValue = $obj.getProperty('sListSupportLevel').value)
> #set($class = $obj.xWikiClass)

$class.get('sListSupportLevel').MapValues
>

Try this:

#set ($mapValues = $class.get('sListSupportLevel').mapValues)
$mapValues.get($rawValue).value

Hope this helps,
Marius


> This displays the map like
> {Code1=[Code1, PrettyName1, ], Code2=[Code2, PrettyName2, ]...}
>
> Now I feel lost again because I don't know how to get the "PrettyNames"
> matching the selected items out of the map.
>
> Boy I didn't imagine that it would be so complicated to display the
> selected items one beneath the other.
>
> Hope you guys could help me get this working and sorry for the hassle.
>
> Regards,
> Dennis
> ___
> 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] How to customize sibling pages panel?

2016-07-28 Thread matmassa
Hi,

I wish to customize the sibling pages panel in order to get a static root
generic navigation panel usable in my migrated spaces (I used the nested
pages migration tool, I migrated from Xwiki 7.0.1 to 8.2).
I already had a navigation panel but it worked with spaces and now Xwiki
says it is deprecated.
How can I customize the sibling pages panel to do that? If I change the
documentTree root parameter into velocity script
(root="document:xwiki:foo.WebHome") to point to the first page of the
"space", if I log in with another user that it is not "Admin" username I get
"No pages found". 
I'd like to change the documentTree root to point always to the page root of
the migrated "space", if it is possible avoiding writing the absolute name
but using a variable (or a method) to get the root of nested pages and it
should be visible by every allowed user. 
I read the XWiki Velocity Training, it should be also good inserting a
paragraph for things like that, l think it could be very helpful.
Thank you for reply
Regards

Matteo






--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-customize-sibling-pages-panel-tp7600500.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