Re: [xwiki-users] hql query returning objects?

2016-07-12 Thread Thomas Mortagne
On Tue, Jul 12, 2016 at 7:03 PM, dullfig  wrote:
> Hello:
>
> I have a problem. I created an XClass with personal info (name, address
> etc); but instead of attaching one XObject to many pages (1 to 1), I have
> attached many objects of the same class to one single page (an array of
> xobjects if you will). Is it possible to query the xobjects for a particular
> name, and have the query return an xobject, instead of the name of the page?
> the name of the page does me no good, because I still have to search through
> the objects...
>
> doing:
>
> #set( $hql =  "select obj.name from BaseObject obj where obj.className =
> '$class.name'" )
>
> returns a list containing the same page over and over, instead of a list of
> xobjects.
>
> Can this be done?

You can't directly get an XObject from a hql request but you can get
enough information to get the object from the document.
obj.name is indeed the name of the page, you already know the class
name so what is missing for you is the obj.number.

Then you can do

$xwiki.getDocument($name).getObject($classs.name, $number)

>
>
> Dan
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/hql-query-returning-objects-tp7600307.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



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


[xwiki-users] Anonymous users with administrative rights

2016-07-12 Thread Julio Brum
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


[xwiki-users] hql query returning objects?

2016-07-12 Thread dullfig
Hello:

I have a problem. I created an XClass with personal info (name, address
etc); but instead of attaching one XObject to many pages (1 to 1), I have
attached many objects of the same class to one single page (an array of
xobjects if you will). Is it possible to query the xobjects for a particular
name, and have the query return an xobject, instead of the name of the page?
the name of the page does me no good, because I still have to search through
the objects...

doing:

#set( $hql =  "select obj.name from BaseObject obj where obj.className =
'$class.name'" )

returns a list containing the same page over and over, instead of a list of
xobjects.

Can this be done?
  

Dan



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/hql-query-returning-objects-tp7600307.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] Attachments display with versioning

2016-07-12 Thread Marius Dumitru Florea
On Mon, Jul 11, 2016 at 2:56 PM, Dan T  wrote:

> Hello,
>
> We have a small problem with the attachements displayed on pages.
>
> Let’s say we have a file named « test.xls » in attachement of a page. For
> this file, we have made 3 modifications.
>
> We can see « 1.1 », « 2.1 », « 3.1 » in the versioning tab and we can
> download them without problem from that place.
>
> But in the attachments tab, we have only the first release (with « 1.1 »
> just next to it to confirm it).
>
>

> Is it possible to show the last revision or version of a file in the
> attachements ?
>

This is the expected behaviour and what I have on my XWiki instance. But I
don't use filesystem attachments store. Maybe there's a problem with this
store.

Hope this helps,
Marius


>
> If it’s necessary, this is xwiki 8.0 and the attachments are stored in the
> filesystem.
>
> Thank you.
>
>
>
> --
> DanIel
> ___
> 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] Flamingo color theme mapping on skin div's

2016-07-12 Thread Ecaterina Moraru (Valica)
@component-active-bg is not applied to any specific XWiki element (since
with a search I see that it appears only in variables.less).
But if you use default Bootstrap elements like navs and dropdowns, that
value will be used. Which inherits brand-primary value, etc.

//** Global background color for active items (e.g., navs or dropdowns).
@component-active-bg:   @brand-primary;

To answer your questions you just need to search for a particular variable
inside the .less files.

Thanks,
Caty

On Tue, Jul 12, 2016 at 4:08 PM, Gerritjan Koekkoek  wrote:

> Hi,
>
>
> I understand all Less variables are from bootstrap.
>
> I also understand the less files that are linked to a color theme will
> compile a style.css that is loaded on each page
>
> My question is how are they applied to XWiki default skin div's (id's or
> classes)
>
>
> Where is defined:
>
> #xwikimaincontainer will have a number of less variables (or not)
>
>
> In other words: Which XWiki ID's an/or classes use:
>
> @brand-primary
>
>
> And which XWiki ID's and/or classes are considered to get
> @component-active-bg applied ?
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> 
> From: users  on behalf of Ecaterina Moraru
> (Valica) 
> Sent: 12 July 2016 10:56:26
> To: XWiki Users
> Subject: Re: [xwiki-users] Flamingo color theme mapping on skin div's
>
> Hi,
>
> @component-active-bg come from Bootstrap.
> You can find about the default variables in variables.less.
>
> The way they were used can be found in the .less files.
>
> Thanks,
> Caty
>
> On Tue, Jul 12, 2016 at 9:38 AM, Gerritjan Koekkoek <
> gerrit...@cdlsworld.org
> > wrote:
>
> > Who has mapped the flamingo-colortheme on the skin-div's?
> >
> > Or is this documented anywhere ?
> >
> >
> > what is default styled with Brand-primary, Brand-success, Brand-info,
> > Brand-warning, Brand-danger
> >
> > what is @Component-active-color and @Component-active-bg
> >
> >
> >
> > Gerritjan Koekkoek
> > Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> > Visit our website
> > Facebook
> > email
> >
> >
> >
> > ___
> > 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] Flamingo color theme mapping on skin div's

2016-07-12 Thread Gerritjan Koekkoek
Hi,


I understand all Less variables are from bootstrap.

I also understand the less files that are linked to a color theme will compile 
a style.css that is loaded on each page

My question is how are they applied to XWiki default skin div's (id's or 
classes)


Where is defined:

#xwikimaincontainer will have a number of less variables (or not)


In other words: Which XWiki ID's an/or classes use:

@brand-primary


And which XWiki ID's and/or classes are considered to get @component-active-bg 
applied ?


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of Ecaterina Moraru (Valica) 

Sent: 12 July 2016 10:56:26
To: XWiki Users
Subject: Re: [xwiki-users] Flamingo color theme mapping on skin div's

Hi,

@component-active-bg come from Bootstrap.
You can find about the default variables in variables.less.

The way they were used can be found in the .less files.

Thanks,
Caty

On Tue, Jul 12, 2016 at 9:38 AM, Gerritjan Koekkoek  wrote:

> Who has mapped the flamingo-colortheme on the skin-div's?
>
> Or is this documented anywhere ?
>
>
> what is default styled with Brand-primary, Brand-success, Brand-info,
> Brand-warning, Brand-danger
>
> what is @Component-active-color and @Component-active-bg
>
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> ___
> 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] [Blog] New Frequently Asked Questions

2016-07-12 Thread Eduard Moraru
Hi,

I`ve just shared on the xwiki.org blog, the (relatively) recent addition of
4 new and useful FAQ entries:

http://www.xwiki.org/xwiki/bin/view/Blog/New+Frequently+Asked+Questions

Thanks for Vlad and Iulia for adding them!

If you have anything XWiki-related that you would like to share on xwiki.org's
blog, please see my mail on how you can easily do that:

http://xwiki.markmail.org/thread/r4r4celltmdprqia

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


Re: [xwiki-users] Flamingo color theme mapping on skin div's

2016-07-12 Thread Ecaterina Moraru (Valica)
Hi,

@component-active-bg come from Bootstrap.
You can find about the default variables in variables.less.

The way they were used can be found in the .less files.

Thanks,
Caty

On Tue, Jul 12, 2016 at 9:38 AM, Gerritjan Koekkoek  wrote:

> Who has mapped the flamingo-colortheme on the skin-div's?
>
> Or is this documented anywhere ?
>
>
> what is default styled with Brand-primary, Brand-success, Brand-info,
> Brand-warning, Brand-danger
>
> what is @Component-active-color and @Component-active-bg
>
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> ___
> 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] Flamingo color theme mapping on skin div's

2016-07-12 Thread Gerritjan Koekkoek
Who has mapped the flamingo-colortheme on the skin-div's?

Or is this documented anywhere ?


what is default styled with Brand-primary, Brand-success, Brand-info, 
Brand-warning, Brand-danger

what is @Component-active-color and @Component-active-bg



Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email



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