[xwiki-users] How to assign subdomains to each subwiki?

2015-11-03 Thread AlexIv
I'd like to assign subdomains to each subwiki:
docs.my-xwiki.net, boards.my-xwiki.net, work.my-xwiki.net etc. 
Is it possible?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696.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 assign subdomains to each subwiki?

2015-11-03 Thread Clemens Klein-Robbenhaar

> I'd like to assign subdomains to each subwiki:
> docs.my-xwiki.net, boards.my-xwiki.net, work.my-xwiki.net etc. 
> Is it possible?
>

Definitely yes:

  
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization#HHostnamebasedsubwikis

note that you additionally need to configure the DNS for all the subwikis to 
the server running XWiki;
this is not what XWiki can do for you.

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


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-03 Thread AlexIv
ok, thank you!

And can I do the same for applications, not for subwiki only?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596709.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 assign subdomains to each subwiki?

2015-11-03 Thread Thomas Mortagne
Well an application is always part of a wiki but one possibility is to
put a redirect in the wiki main page to the application main page.

On Tue, Nov 3, 2015 at 1:40 PM, AlexIv  wrote:
> ok, thank you!
>
> And can I do the same for applications, not for subwiki only?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596709.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


Re: [xwiki-users] Need help to find a hql query

2015-11-03 Thread Pascal BASTIEN
Yes thxs (gdelhumeau helped me on irc).
 => I update doc: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
I used wrong value like you found too :-)


En date de : Mar 3.11.15, Marius Dumitru Florea 
 a écrit :

 Objet: Re: [xwiki-users] Need help to find a hql query
 À: "Pascal BASTIEN" 
 Date: Mardi 3 novembre 2015, 11h01
 
 On Mon,
 Nov 2, 2015 at 5:15 PM, Pascal BASTIEN 
 wrote:
 I didn't manage to
 use blog example on xwiki 7.0.1
 
 
 
 (I replace 'XWiki.ArticleClass' by 
 'Blog.BlogPostClass' : we must fix doc if it is
 ok)
 
 The query example don't work (or maybe I don't know
 how to use it ;-) )
 
  select distinct
 doc.fullName, doc.creationDate from XWikiDocument as doc,
 BaseObject as obj, DBStringListProperty as prop join
 prop.list list where obj.name=doc.fullName and
 obj.className='Blog.BlogPostClass' and obj.id=prop.id.id and 
prop.id.name='category' 
 and list='${category}' order by doc.creationDate
 desc
 
 This works fine for me:
 
 select distinct doc.fullName,
 doc.creationDate from XWikiDocument as doc, BaseObject as
 obj, DBStringListProperty as prop join prop.list list where
 obj.name=doc.fullName and
 obj.className='Blog.BlogPostClass' and obj.id=prop.id.id and 
prop.id.name='category'
 and list='Blog.News' order by doc.creationDate
 desc
 
 You
 probably don't have the right value in $category.
 
 Hope this helps,
 Marius
  
 
 
 If I remove category parameter
 
 
 
 #set ($query ="select distinct doc.fullName,
 doc.creationDate from XWikiDocument as doc, BaseObject as
 obj, DBStringListProperty as prop join prop.list list where
 obj.name=doc.fullName and
 obj.className='Blog.BlogPostClass' order by
 doc.creationDate desc")
 
 
 
 the query return all doc with blog class
 
 
 
 
 
 
 
 
 
 En date de : Lun 2.11.15, Marius Dumitru Florea 

 a écrit :
 
 
 
  Objet: Re: [xwiki-users] Need help to find a hql query
 
  À: "Pascal BASTIEN" ,
 "XWiki Users" 
 
  Date: Lundi 2 novembre 2015, 13h47
 
 
 
  On Mon,
 
  Nov 2, 2015 at 1:00 PM, Pascal BASTIEN 
 
  wrote:
 
  Hello,
 
 
 
 
 
 
 
  I have a xwiki doc class with some properties: 
 'Static
 
  List' type and 'Page' (multiselect) type.
 
 
 
  I try to write a query to retrieve document in one
 query
 
  shot but I encoutered problem with 'Page' type.
 
 
 
  This query working well based on 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HGettingdocumentswhereobjects27propertiesequalssomevalue
 
 
 
 
 
 
 
  select distinct doc.name,
 
  doc.creationDate from XWikiDocument as doc, BaseObject
 as
 
  obj, StringProperty prop where (doc.fullName=obj.name and
 
  obj.className='FormSMQ.ACClass' and
 
  doc.space='FormSMQ' and doc.hidden=false  and prop.id.id=obj.id
 
  and prop.name='P1_Processus'
 
  and prop.value='M3') order by doc.creationDate
 
  desc
 
 
 
 
 
 
 
  'P1_Processus' is a static list type
 
 
 
 
 
 
 
  But this query doesn't work:
 
 
 
   select distinct doc.name,
 doc.creationDate from
 
  XWikiDocument as doc, BaseObject as obj, StringProperty
 prop
 
  where (doc.fullName=obj.name and
 
  obj.className='FormSMQ.ACClass' and
 
  doc.space='FormSMQ' and doc.hidden=false  and prop.id.id=obj.id
 
  and prop.name='MY_PAGE_TYPE_PROPERTY_NAME'
 
  and prop.value='MYVALUE') order by
 doc.creationDate
 
  desc
 
 
 
  I suppose the 'P1_Processus'
 
  property has single selection, which means
 
  'prop.value' is a string and thus you can write
 
  "prop.value='M3'". If the Page type
 
  property is multiple select then it's value is a
 list.
 
  You should check the
 
 
 
  "List all blog posts, published and not
 
  hidden (filter by multiple properties of an
 object)"
 
 
 
  example from 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HQueryLanguageExamples
 
  . Look for :
 
 
 
  :category member of blog.category (in
 
  the XWQL version)
 
 
 
  DBStringListProperty as categoryProp
 
  join categoryProp.list list (in the HQL version)
 
   
 
  Hope this helps,
 
  Marius
 
 
 
 
 
 
 
 
 
  Ididn't find some "PageProperty" in 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/xwiki.hbm.xml,
 
  then I must use DBStringListProperty ?
 
 
 
 
 
 
 
  Any help will be welcome.
 
 
 
 
 
 
 
  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] tagcloud macro not displaying tags from nested pages

2015-11-03 Thread Miroslav Galajda
Hi,

I've just created the one here: http://jira.xwiki.org/browse/XWIKI-12764

Mirec

On 3 November 2015 at 10:50, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Tue, Nov 3, 2015 at 11:30 AM, Miroslav Galajda <
> miroslav.gala...@gmail.com> wrote:
>
> > Hi,
> >
> > I'm currently running on 7.3 Milestone 2.
> >
> > I've created some hierarchy of nested pages.
> >
> > And at the "node" levels (aka spaces) I have used "dashboard" template
> and
> > on the lists I have normal page with content and tags.
> >
> > The dashboard template shows correctly document hierarchy from that level
> > but tags cloud isn't showing anything.
> >
> >
>
> > It seems it doesn't respect the new concept of nested pages.
> >
>
> Yes, only the tags from the terminal pages found in the specified space are
> taken into account. The code should look at the nested spaces too. Can you
> report an issue on jira.xwiki.org ?
>
> Thanks,
> Marius
>
>
> >
> >
> > Best regards,
> > Mirec
> > ___
> > 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] Admin password after installing

2015-11-03 Thread Anton Hughes
Perfect - thanks Thomas.

I have actually installed XWiki a few times now - this time I couldnt find
this info.

Am getting old

On 3 November 2015 at 15:20, Thomas Mortagne 
wrote:

> Default user is:
> * login: Admin
> * password: admin
>
> See
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationStandalone
> (at the end) for more details.
>
> On Tue, Nov 3, 2015 at 3:16 PM, Anton Hughes  wrote:
> > Hi
> >
> > I am trying out Xwiki and would like to know how to login after
> installing.
> >
> > Is there an admin user already created when installing? If yes, what is
> the
> > password?
> > If not, how do I create an admin user?
> >
> > Thanks
> >
> > --
> > Anton Hughes
> > ___
> > 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
>



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


[xwiki-users] Admin password after installing

2015-11-03 Thread Anton Hughes
Hi

I am trying out Xwiki and would like to know how to login after installing.

Is there an admin user already created when installing? If yes, what is the
password?
If not, how do I create an admin user?

Thanks

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


Re: [xwiki-users] CORS header

2015-11-03 Thread Anton Hughes
I manged to figure this out.

I changed the following in the web.xml:

  
Set CORS policy for fonts
resourceReferenceHandler
*/**
*.woff
*.eot
*.ttf
REQUEST
FORWARD
  

On 3 November 2015 at 16:40, Anton Hughes  wrote:

> Hello
>
> I am looking to use XWiki to manage and provide documentation for my web
> based application (built in GWT).
>
> The idea is to use the XWiki rest api that can return clean HTML, for
> example
> http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI?xpage=plain=xhtml
> .
>
> However, to be able to consume this in my gwt application, as I get the
> following error:
>
> XMLHttpRequest cannot load
> http://localhost:8080/xwiki/bin/view/MyExamplePage?xpage=plain=xhtml.
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin 'http://localhost:8081' is therefore not allowed access.
>
> How do I add the cors header to the rest response from Xwiki?
>
> Thanks
>
> --
> Anton Hughes
>
>


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


Re: [xwiki-users] Admin password after installing

2015-11-03 Thread Thomas Mortagne
Default user is:
* login: Admin
* password: admin

See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationStandalone
(at the end) for more details.

On Tue, Nov 3, 2015 at 3:16 PM, Anton Hughes  wrote:
> Hi
>
> I am trying out Xwiki and would like to know how to login after installing.
>
> Is there an admin user already created when installing? If yes, what is the
> password?
> If not, how do I create an admin user?
>
> Thanks
>
> --
> Anton Hughes
> ___
> 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