Re: [xwiki-users] migrating from .war to Debain apt package

2016-01-05 Thread Eduard Moraru
Hi,

Make sure you read the error message that says "Check the rights of its
last author" (i.e. no the creator). Script rights are checked on the last
content author of the document and, if in your migration you haven`t given
script rights to that user, all his scripts will stop functioning.

Hope this helps,
Eduard

On Mon, Dec 21, 2015 at 3:01 AM, shouldbe q931 
wrote:

> On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht  wrote:
> > Can you copy the text of the error that you get when clicking?
> >
> > paul
> >
> > shouldbe q931 wrote:
> >> Most of the spaces are fine, but there are three that look like
> >> http://pasteboard.co/8zJUMYt.png
> >>
> >> I have confirmed that the rights on the spaces with the error are the
> >> same as the rights on the spaces that do not show the error
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
> pastebins of the text
>
> pages http://pastebin.com/pnJxVr89
> activity stream http://pastebin.com/D3BkSM6i
> tags http://pastebin.com/XPquSSJs
>
> They all have "org.xwiki.rendering.macro.MacroExecutionException: The
> execution of the [velocity] script macro is not allowed. Check the
> rights of its last author or the parameters if it's rendered from
> another script." as the first line, which can also be seen from the
> screengrab.
>
> I thought I was the original creator of the spaces that have this
> issue, and I have the script right, but maybe I am mistaken...
>
> Cheers
> ___
> 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 java client authentication

2016-01-05 Thread Eduard Moraru
Hi,

As per the documentation [1], have you tried using HTTP Auth? Your
application can be Java or it can even be a bash script using the cURL
command, just to an HTTP PUT

Thanks,
Eduard

P.S.: The comments section [2] of the documentation doc also seem to have
the information you seem to need. If they prove to be up to date, it would
be a good idea to include them in the documentation itself, maybe in the
examples sections, what do you think?

--
[1]
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HAuthentication
[2]
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#Comments

On Mon, Dec 21, 2015 at 9:40 PM, Bryn Jeffries 
wrote:

> Hello,
>
> I need to write a small Java utility to interact with my XWiki server -
> it's main purpose is to take a file containing paths to various files, and
> then upload (POST) them to the server. It looks as though this cannot be
> done from within the browser directly since sandboxing prevents working
> with file paths directly.
>
> Having read through the RESTful client information (
> http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) I am
> not sure I need to completely go down this route as I don't need access to
> representations of the XWiki objects. AFAICS I will simply need to GET and
> POST to specific URLs of the wiki. However, I would greatly appreciate
> advice on how best to handle authentication. Guest users are not allowed,
> so username and password should be provided, and in some way a session
> needs to be maintained. Are there any simple examples for logging in to
> XWiki and maintaining a session from within a Java client? I'm wondering if
> I still might need the RESTful API for this, but the documentation doesn't
> really cover this in detail.
>
> Thanks,
>
> Bryn
> ___
> 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] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
You might be using some wrong API.

I’ve tested this and it works fine:

{{velocity}}
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
#set ($newDoc = $xwiki.getDocument('Main.TestPage'))
#set ($discard = $newDoc.setContent('test'))
#set ($discard = $newDoc.save())
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
#set ($discard = $newDoc.delete())
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
{{velocity}}

Hope it helps,
-Vincent

On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi Vincent,
>  
> I mean that I can see the deletion on the Activity Stream, with "tree 
> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
> any error.
>  
> Thanks,
> Giordano.
>  
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > Hi,  
> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> >  wrote:
> >  
> > > Hi users,
> > >
> > > I'm developing a java component that offer APIs accessed through script
> > > services to perfom modification to the wiki.
> > >
> > > When I delete a document (thus the related page I guessed) from my java
> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the
> > > last modification as a page deletion but the page is still accessible on
> > > the tree representation.  
> >  
> > What tree?  
> >  
> > Are you talking about the Activity Stream or something else?  
> >  
> > Deleted documents are deleted so if your doc still appears then it’s not 
> > been deleted (maybe there was an error?).  
> >  
> > Thanks  
> > -Vincent
> >  
> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > can't
> > > catch the relations between xwiki pages-->Documents-->Document reference
> > > and how to handle deletion of non-terminal pages preserving the 
> > > information
> > > contained in them like: the wiki and the nested page to whom they had been
> > > belonged, the content and the comments.
> > >
> > > Thanks for your help,
> > > Giordano.
> >  
>  

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


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Thomas Mortagne
He is talking about XWikiDocument so I guess he is using
com.xpn.xwiki.XWiki and not the scripting API.

On Tue, Jan 5, 2016 at 4:47 PM, vinc...@massol.net  wrote:
> Note that there’s no deleteDocument() in the class represented by the $xwiki 
> binding so IMO you’ve just not deleted anything :)
>
> Thanks
> -Vincent
>
>
> On 5 Jan 2016 at 16:45:30, vinc...@massol.net (vinc...@massol.net) wrote:
>
> You might be using some wrong API.
>
> I’ve tested this and it works fine:
>
> {{velocity}}
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> #set ($newDoc = $xwiki.getDocument('Main.TestPage'))
> #set ($discard = $newDoc.setContent('test'))
> #set ($discard = $newDoc.save())
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> #set ($discard = $newDoc.delete())
> * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()
> {{velocity}}
>
> Hope it helps,
> -Vincent
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
> (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:
>
>> Hi Vincent,
>>
>> I mean that I can see the deletion on the Activity Stream, with "tree 
>> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
>> any error.
>>
>> Thanks,
>> Giordano.
>>
>> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
>> > Hi,
>> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
>> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
>> >  wrote:
>> >
>> > > Hi users,
>> > >
>> > > I'm developing a java component that offer APIs accessed through script
>> > > services to perfom modification to the wiki.
>> > >
>> > > When I delete a document (thus the related page I guessed) from my java
>> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the
>> > > last modification as a page deletion but the page is still accessible on
>> > > the tree representation.
>> >
>> > What tree?
>> >
>> > Are you talking about the Activity Stream or something else?
>> >
>> > Deleted documents are deleted so if your doc still appears then it’s not 
>> > been deleted (maybe there was an error?).
>> >
>> > Thanks
>> > -Vincent
>> >
>> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
>> > > can't
>> > > catch the relations between xwiki pages-->Documents-->Document reference
>> > > and how to handle deletion of non-terminal pages preserving the 
>> > > information
>> > > contained in them like: the wiki and the nested page to whom they had 
>> > > been
>> > > belonged, the content and the comments.
>> > >
>> > > Thanks for your help,
>> > > Giordano.
>> >
>>
>
> ___
> 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] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Well, I am not performing these modification from velocity, I am doing it
in Java. Following the java method that I expose through the script service:

public void removeInstance(String iName) throws XWikiException {

XWikiContext xcontext = this.xwikiContextProvider.get();
XWiki wiki = xcontext.getWiki();
DocumentReference docRef = new DocumentReference(wikiName,
wikiSpace, iName);
XWikiDocument xDoc = wiki.getDocument(docRef, xcontext);

   if (something) {
.
.
wiki.deleteDocument(xDoc, xcontext);
wiki.saveDocument(xDoc, xcontext);
  }

"iName" is the page title.
I have noticed that the method ".getDocument()" create a new document if it
is not present, and I've looked at the "deleted page" index and I found the
document that has been created and deleted. I think there is something that
I am missing, probably I don't pass to the metod the right page name?

Thanks,
Giordano.

2016-01-05 16:54 GMT+01:00 vinc...@massol.net :

> The fact that you see it in the AS is normal and expected. This is a log
> of everything that was done to documents.
>
> However the doc should no longer appear in the Dashboard Tree.
>
> Thanks
> -Vincent
>
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com)
> wrote:
>
> Hi Vincent,
>
> I mean that I can see the deletion on the Activity Stream, with "tree
> representation" I mean the pages' tree in the Dashboard and I didn't
> noticed any error.
>
> Thanks,
> Giordano.
>
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net :
>
>> Hi,
>>
>> On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
>> (mailto:giordano.nin...@gmail.com)) wrote:
>>
>> > Hi users,
>> >
>> > I'm developing a java component that offer APIs accessed through script
>> > services to perfom modification to the wiki.
>> >
>> > When I delete a document (thus the related page I guessed) from my java
>> > code with the "*.deleteDocument(doc, context)*", on my browser I see the
>> > last modification as a page deletion but the page is still accessible on
>> > the tree representation.
>>
>> What tree?
>>
>> Are you talking about the Activity Stream or something else?
>>
>> Deleted documents are deleted so if your doc still appears then it’s not
>> been deleted (maybe there was an error?).
>>
>> Thanks
>> -Vincent
>>
>> > The XWikiDocument's method ".setHidden(true)" solve my problem, but I
>> can't
>> > catch the relations between xwiki pages-->Documents-->Document reference
>> > and how to handle deletion of non-terminal pages preserving the
>> information
>> > contained in them like: the wiki and the nested page to whom they had
>> been
>> > belonged, the content and the comments.
>> >
>> > Thanks for your help,
>> > Giordano.
>>
>>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net



On 5 Jan 2016 at 18:35:18, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Well, I am not performing these modification from velocity, I am doing it in 
> Java. Following the java method that I expose through the script service:
>  
> public void removeInstance(String iName) throws XWikiException {
>  
> XWikiContext xcontext = this.xwikiContextProvider.get();
> XWiki wiki = xcontext.getWiki();
> DocumentReference docRef = new DocumentReference(wikiName, wikiSpace, iName);
> XWikiDocument xDoc = wiki.getDocument(docRef, xcontext);
>  
> if (something) {
> .
> .
> wiki.deleteDocument(xDoc, xcontext);
> wiki.saveDocument(xDoc, xcontext);

ahhh… thats why...

You delete the doc and then recreate it ;-)

Thanks
-Vincent

> }
>  
> "iName" is the page title.
> I have noticed that the method ".getDocument()" create a new document if it 
> is not present, and I've looked at the "deleted page" index and I found the 
> document that has been created and deleted. I think there is something that I 
> am missing, probably I don't pass to the metod the right page name?
>  
> Thanks,
> Giordano.
>  
> 2016-01-05 16:54 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > The fact that you see it in the AS is normal and expected. This is a log of 
> > everything that was done to documents.  
> >  
> > However the doc should no longer appear in the Dashboard Tree.  
> >  
> > Thanks  
> > -Vincent
> >  
> >  
> >  
> > On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:
> >  
> > > Hi Vincent,
> > >  
> > > I mean that I can see the deletion on the Activity Stream, with "tree 
> > > representation" I mean the pages' tree in the Dashboard and I didn't 
> > > noticed any error.
> > >  
> > > Thanks,
> > > Giordano.
> > >  
> > > 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > > > Hi,  
> > > > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > > > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> > > >  wrote:
> > > >  
> > > > > Hi users,
> > > > >
> > > > > I'm developing a java component that offer APIs accessed through 
> > > > > script
> > > > > services to perfom modification to the wiki.
> > > > >
> > > > > When I delete a document (thus the related page I guessed) from my 
> > > > > java
> > > > > code with the "*.deleteDocument(doc, context)*", on my browser I see 
> > > > > the
> > > > > last modification as a page deletion but the page is still accessible 
> > > > > on
> > > > > the tree representation.  
> > > >  
> > > > What tree?  
> > > >  
> > > > Are you talking about the Activity Stream or something else?  
> > > >  
> > > > Deleted documents are deleted so if your doc still appears then it’s 
> > > > not been deleted (maybe there was an error?).  
> > > >  
> > > > Thanks  
> > > > -Vincent
> > > >  
> > > > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > > > can't
> > > > > catch the relations between xwiki pages-->Documents-->Document 
> > > > > reference
> > > > > and how to handle deletion of non-terminal pages preserving the 
> > > > > information
> > > > > contained in them like: the wiki and the nested page to whom they had 
> > > > > been
> > > > > belonged, the content and the comments.
> > > > >
> > > > > Thanks for your help,
> > > > > Giordano.
> > > >  
> > >  
>  

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


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
How can I get the fullname of a page?

Giordano.

2016-01-05 16:45 GMT+01:00 vinc...@massol.net :

> You might be using some wrong API.
>
> I’ve tested this and it works fine:
>
> {{velocity}}
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> #set ($newDoc = $xwiki.getDocument('Main.TestPage'))
> #set ($discard = $newDoc.setContent('test'))
> #set ($discard = $newDoc.save())
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> #set ($discard = $newDoc.delete())
> * Is page Main.TestPage deleted:
> $xwiki.getDocument('Main.TestPage').isNew()
> {{velocity}}
>
> Hope it helps,
> -Vincent
>
> On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi Vincent,
> >
> > I mean that I can see the deletion on the Activity Stream, with "tree
> representation" I mean the pages' tree in the Dashboard and I didn't
> noticed any error.
> >
> > Thanks,
> > Giordano.
> >
> > 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net)
> :
> > > Hi,
> > > On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> wrote:
> > >
> > > > Hi users,
> > > >
> > > > I'm developing a java component that offer APIs accessed through
> script
> > > > services to perfom modification to the wiki.
> > > >
> > > > When I delete a document (thus the related page I guessed) from my
> java
> > > > code with the "*.deleteDocument(doc, context)*", on my browser I see
> the
> > > > last modification as a page deletion but the page is still
> accessible on
> > > > the tree representation.
> > >
> > > What tree?
> > >
> > > Are you talking about the Activity Stream or something else?
> > >
> > > Deleted documents are deleted so if your doc still appears then it’s
> not been deleted (maybe there was an error?).
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > The XWikiDocument's method ".setHidden(true)" solve my problem, but
> I can't
> > > > catch the relations between xwiki pages-->Documents-->Document
> reference
> > > > and how to handle deletion of non-terminal pages preserving the
> information
> > > > contained in them like: the wiki and the nested page to whom they
> had been
> > > > belonged, the content and the comments.
> > > >
> > > > Thanks for your help,
> > > > Giordano.
> > >
> >
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 5:20 PM, Giordano Ninonà 
wrote:

> Hi users,
>
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>
>

> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.
>

If you have nested pages and you delete a page without its child pages then
that page will still be visible in the tree because of the remaining child
pages. The link will point to an unexisting page though.


>
> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>
> Thanks for your help,
> Giordano.
> ___
> 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] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi users,

I'm developing a java component that offer APIs accessed through script
services to perfom modification to the wiki.

When I delete a document (thus the related page I guessed) from my java
code with the "*.deleteDocument(doc, context)*", on my browser I see the
last modification as a page deletion but the page is still accessible on
the tree representation.

The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
catch the relations between xwiki pages-->Documents-->Document reference
and how to handle deletion of non-terminal pages preserving the information
contained in them like: the wiki and the nested page to whom they had been
belonged, the content and the comments.

Thanks for your help,
Giordano.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Note that there’s no deleteDocument() in the class represented by the $xwiki 
binding so IMO you’ve just not deleted anything :)

Thanks
-Vincent


On 5 Jan 2016 at 16:45:30, vinc...@massol.net (vinc...@massol.net) wrote:

You might be using some wrong API.  

I’ve tested this and it works fine:  

{{velocity}}  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
#set ($newDoc = $xwiki.getDocument('Main.TestPage'))  
#set ($discard = $newDoc.setContent('test'))  
#set ($discard = $newDoc.save())  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
#set ($discard = $newDoc.delete())  
* Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew()  
{{velocity}}  

Hope it helps,  
-Vincent  

On 5 Jan 2016 at 16:39:02, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:  

> Hi Vincent,  
>  
> I mean that I can see the deletion on the Activity Stream, with "tree 
> representation" I mean the pages' tree in the Dashboard and I didn't noticed 
> any error.  
>  
> Thanks,  
> Giordano.  
>  
> 2016-01-05 16:25 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :  
> > Hi,  
> > On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> >  wrote:  
> >  
> > > Hi users,  
> > >  
> > > I'm developing a java component that offer APIs accessed through script  
> > > services to perfom modification to the wiki.  
> > >  
> > > When I delete a document (thus the related page I guessed) from my java  
> > > code with the "*.deleteDocument(doc, context)*", on my browser I see the  
> > > last modification as a page deletion but the page is still accessible on  
> > > the tree representation.  
> >  
> > What tree?  
> >  
> > Are you talking about the Activity Stream or something else?  
> >  
> > Deleted documents are deleted so if your doc still appears then it’s not 
> > been deleted (maybe there was an error?).  
> >  
> > Thanks  
> > -Vincent  
> >  
> > > The XWikiDocument's method ".setHidden(true)" solve my problem, but I 
> > > can't  
> > > catch the relations between xwiki pages-->Documents-->Document reference  
> > > and how to handle deletion of non-terminal pages preserving the 
> > > information  
> > > contained in them like: the wiki and the nested page to whom they had 
> > > been  
> > > belonged, the content and the comments.  
> > >  
> > > Thanks for your help,  
> > > Giordano.  
> >  
>  

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


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Hi,

On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>  
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>  
> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.

What tree?

Are you talking about the Activity Stream or something else?

Deleted documents are deleted so if your doc still appears then it’s not been 
deleted (maybe there was an error?).

Thanks
-Vincent

> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>  
> Thanks for your help,
> Giordano.

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


Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
The fact that you see it in the AS is normal and expected. This is a log of 
everything that was done to documents.

However the doc should no longer appear in the Dashboard Tree.

Thanks
-Vincent


On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com) wrote:

Hi Vincent,

I mean that I can see the deletion on the Activity Stream, with "tree 
representation" I mean the pages' tree in the Dashboard and I didn't noticed 
any error.

Thanks,
Giordano.

2016-01-05 16:25 GMT+01:00 vinc...@massol.net :
Hi,

On 5 Jan 2016 at 16:20:52, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>
> I'm developing a java component that offer APIs accessed through script
> services to perfom modification to the wiki.
>
> When I delete a document (thus the related page I guessed) from my java
> code with the "*.deleteDocument(doc, context)*", on my browser I see the
> last modification as a page deletion but the page is still accessible on
> the tree representation.

What tree?

Are you talking about the Activity Stream or something else?

Deleted documents are deleted so if your doc still appears then it’s not been 
deleted (maybe there was an error?).

Thanks
-Vincent

> The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
> catch the relations between xwiki pages-->Documents-->Document reference
> and how to handle deletion of non-terminal pages preserving the information
> contained in them like: the wiki and the nested page to whom they had been
> belonged, the content and the comments.
>
> Thanks for your help,
> Giordano.


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


Re: [xwiki-users] migrating from .war to Debain apt package

2016-01-05 Thread shouldbe q931
On Tue, Jan 5, 2016 at 9:13 AM, Eduard Moraru  wrote:
> Hi,
>
> Make sure you read the error message that says "Check the rights of its
> last author" (i.e. no the creator). Script rights are checked on the last
> content author of the document and, if in your migration you haven`t given
> script rights to that user, all his scripts will stop functioning.
>
> Hope this helps,
> Eduard

Hi Eduard,

As I posted, I have read the error message, and although I have the
script right, I see the error.

I also still see the error if I save the page...

Cheers



>
> On Mon, Dec 21, 2015 at 3:01 AM, shouldbe q931 
> wrote:
>
>> On Sun, Dec 20, 2015 at 1:15 AM, Paul Libbrecht  wrote:
>> > Can you copy the text of the error that you get when clicking?
>> >
>> > paul
>> >
>> > shouldbe q931 wrote:
>> >> Most of the spaces are fine, but there are three that look like
>> >> http://pasteboard.co/8zJUMYt.png
>> >>
>> >> I have confirmed that the rights on the spaces with the error are the
>> >> same as the rights on the spaces that do not show the error
>> >
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>> pastebins of the text
>>
>> pages http://pastebin.com/pnJxVr89
>> activity stream http://pastebin.com/D3BkSM6i
>> tags http://pastebin.com/XPquSSJs
>>
>> They all have "org.xwiki.rendering.macro.MacroExecutionException: The
>> execution of the [velocity] script macro is not allowed. Check the
>> rights of its last author or the parameters if it's rendered from
>> another script." as the first line, which can also be seen from the
>> screengrab.
>>
>> I thought I was the original creator of the spaces that have this
>> issue, and I have the script right, but maybe I am mistaken...
>>
>> Cheers
>> ___
>> 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] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi Vincent,

I mean that I can see the deletion on the Activity Stream, with "tree
representation" I mean the pages' tree in the Dashboard and I didn't
noticed any error.

Thanks,
Giordano.

2016-01-05 16:25 GMT+01:00 vinc...@massol.net :

> Hi,
>
> On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi users,
> >
> > I'm developing a java component that offer APIs accessed through script
> > services to perfom modification to the wiki.
> >
> > When I delete a document (thus the related page I guessed) from my java
> > code with the "*.deleteDocument(doc, context)*", on my browser I see the
> > last modification as a page deletion but the page is still accessible on
> > the tree representation.
>
> What tree?
>
> Are you talking about the Activity Stream or something else?
>
> Deleted documents are deleted so if your doc still appears then it’s not
> been deleted (maybe there was an error?).
>
> Thanks
> -Vincent
>
> > The XWikiDocument's method ".setHidden(true)" solve my problem, but I
> can't
> > catch the relations between xwiki pages-->Documents-->Document reference
> > and how to handle deletion of non-terminal pages preserving the
> information
> > contained in them like: the wiki and the nested page to whom they had
> been
> > belonged, the content and the comments.
> >
> > Thanks for your help,
> > Giordano.
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 4:45 PM, Zhou Tianling  wrote:

> I have tried this below on 7.3-release.
> {{documentTree compact="true" showTranslations="false"
> showAttachments="false" root="wiki:xwiki" limit="200" /}}
> But “limit” do not works.
>

Indeed, I just tested on 7.3, but you can quickly fix it by editing the
XWiki.DocumentTreeConfig page with the wiki editor and replace

  'showRoot': false

with

  'showRoot': false,
  'limit': 15

(i.e. declare de 'limit' configuration parameter and its default value)

Hope this helps,
Marius


>
>
>
> 在 16/1/5 下午9:35,“users 代表 Marius Dumitru Florea” 代表 mariusdumitru.flo...@xwiki.com> 写入:
>
> >On Tue, Jan 5, 2016 at 3:33 PM, vinc...@massol.net 
> >wrote:
> >
> >>
> >>
> >> On 5 Jan 2016 at 14:29:11, Marius Dumitru Florea (
> >> mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
> >> wrote:
> >>
> >> > On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> >> > > kirbyz...@gmail.com)) wrote:
> >> > >
> >> > > > Sorry for reply so later, I have taken a vacation for days.
> >> > >
> >> > > Hope you had some nice holidays! :)
> >> > >
> >> > > > Actually, I modified Dashboard.WebHome after upgrade, and use
> >> {{spaces}}
> >> > > macro which comes from 7.3 release.
> >> > > > Now I replace {{spaces}} with {{documentTree}}, but I have some
> >> little
> >> > > problem.
> >> > > > 1. I want to avoid "xxx more", but limit=100 do not work.
> >> > > > 2. I want to limit the tree level, but I have no idea.
> >> > >
> >> > > All documentation for the tree macro can be found at
> >> > >
> >>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
> >> > >
> >> > >
> >> >
> >> > > AFAIK there’s currently no way to configure how many items to
> display
> >> > > before “xxx more” appears. @Marius: is that correct? It seems it
> would
> >> be
> >> > > useful to have this in the future if that’s the case. WDYT? Do we
> have
> >> a
> >> > > jira issue about it already?
> >> > >
> >> >
> >> > There is an internal "limit" parameter available since 7.3RC1, as I
> >> > mentioned on
> >> > http://lists.xwiki.org/pipermail/users/2015-December/031746.html . It
> >> > doesn't appear in the documentation because I haven't made it public
> yet
> >> > (with a XWiki.WikiMacroParameterClass object) but it can be used.
> >> >
> >> > {{documentTree limit="3" /}}
> >>
> >>
> >
> >> ok thanks I had forgotten. However KirbY mentioned that it didn’t work
> >> when he tried it.
> >>
> >
> >I just tried on 8.0-SNAPSHOT and it woks for me.
> >
> >
> >>
> >> @KirbY: have you used it in the way Marius described above?
> >>
> >> Thanks
> >> -Vincent
> >>
> >> > > I’m not sure what’s your use case for point 2. I guess you mean
> limit
> >> the
> >> > > hierarchy but it seems it would prevent users from navigating
> >> correctly so
> >> > > I’m not sure what’s the use case.
> >> > >
> >> > > Thanks
> >> > > -Vincent
> >> > >
> >> > > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:
> vinc...@massol.net
> >> )"
> >> > > > 日期: 2015年12月23日 星期三 下午7:35
> >> > > > 至: KirbY ZhoU , XWiki Users
> >> > > > 主题: Re: [xwiki-users] How to avoid nested space?
> >> > > >
> >> > > > Hi,
> >> > > >
> >> > > > The default dashboard is located in Dashboard.WebHome. When you
> >> upgraded
> >> > > you should have had the Distribution Wizard upgrade that page. Was
> >> that the
> >> > > case? Could you check the history for that page?
> >> > > >
> >> > > > Now two things could have happened:
> >> > > >
> >> > > > 1) you overwrote the changes brought by the Distribution Wizard by
> >> > > importing old versions of pages from your previous wiki. If you’ve
> done
> >> > > that then you’ve most likely broken the upgrade process since you’ve
> >> > > removed all the upgrades that were required to all default wiki
> pages!
> >> :)
> >> > > See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for
> >> the
> >> > > canonical way of upgrading an XWiki instance. If you’ve done that I
> >> suggest
> >> > > that you redo the upgrade.
> >> > > >
> >> > > > 2) you have modified Dashboard.WebHome. If this is the case then
> >> you’ll
> >> > > need to update your version to use the {{documentTree}} macro
> instead
> >> of
> >> > > the spaces macro.
> >> > > >
> >> > > > As I’ve mentioned already in my reply the notion of Spaces have
> been
> >> > > removed from the UI (I’ve linked you to some page with the
> explanation,
> >> > > have you been able to read that page? was it clear? should we
> improve
> >> > > things there with more explanations?).
> >> > > >
> >> > > > Thanks
> >> > > > Hope it helps,
> >> > > > -Vincent
> >> > > >
> >> > > >
> >> > > >
> >> > > > On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyz...@gmail.com
> (mailto:
> >> > > kirbyz...@gmail.com)) wrote:
> >> > > >
> >> > > > > I belived that 

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread Zhou Tianling
I have tried this below on 7.3-release.
{{documentTree compact="true" showTranslations="false" showAttachments="false" 
root="wiki:xwiki" limit="200" /}}
But “limit” do not works.




在 16/1/5 下午9:35,“users 代表 Marius Dumitru Florea” 写入:

>On Tue, Jan 5, 2016 at 3:33 PM, vinc...@massol.net 
>wrote:
>
>>
>>
>> On 5 Jan 2016 at 14:29:11, Marius Dumitru Florea (
>> mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
>> wrote:
>>
>> > On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto:
>> > > kirbyz...@gmail.com)) wrote:
>> > >
>> > > > Sorry for reply so later, I have taken a vacation for days.
>> > >
>> > > Hope you had some nice holidays! :)
>> > >
>> > > > Actually, I modified Dashboard.WebHome after upgrade, and use
>> {{spaces}}
>> > > macro which comes from 7.3 release.
>> > > > Now I replace {{spaces}} with {{documentTree}}, but I have some
>> little
>> > > problem.
>> > > > 1. I want to avoid "xxx more", but limit=100 do not work.
>> > > > 2. I want to limit the tree level, but I have no idea.
>> > >
>> > > All documentation for the tree macro can be found at
>> > >
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
>> > >
>> > >
>> >
>> > > AFAIK there’s currently no way to configure how many items to display
>> > > before “xxx more” appears. @Marius: is that correct? It seems it would
>> be
>> > > useful to have this in the future if that’s the case. WDYT? Do we have
>> a
>> > > jira issue about it already?
>> > >
>> >
>> > There is an internal "limit" parameter available since 7.3RC1, as I
>> > mentioned on
>> > http://lists.xwiki.org/pipermail/users/2015-December/031746.html . It
>> > doesn't appear in the documentation because I haven't made it public yet
>> > (with a XWiki.WikiMacroParameterClass object) but it can be used.
>> >
>> > {{documentTree limit="3" /}}
>>
>>
>
>> ok thanks I had forgotten. However KirbY mentioned that it didn’t work
>> when he tried it.
>>
>
>I just tried on 8.0-SNAPSHOT and it woks for me.
>
>
>>
>> @KirbY: have you used it in the way Marius described above?
>>
>> Thanks
>> -Vincent
>>
>> > > I’m not sure what’s your use case for point 2. I guess you mean limit
>> the
>> > > hierarchy but it seems it would prevent users from navigating
>> correctly so
>> > > I’m not sure what’s the use case.
>> > >
>> > > Thanks
>> > > -Vincent
>> > >
>> > > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net
>> )"
>> > > > 日期: 2015年12月23日 星期三 下午7:35
>> > > > 至: KirbY ZhoU , XWiki Users
>> > > > 主题: Re: [xwiki-users] How to avoid nested space?
>> > > >
>> > > > Hi,
>> > > >
>> > > > The default dashboard is located in Dashboard.WebHome. When you
>> upgraded
>> > > you should have had the Distribution Wizard upgrade that page. Was
>> that the
>> > > case? Could you check the history for that page?
>> > > >
>> > > > Now two things could have happened:
>> > > >
>> > > > 1) you overwrote the changes brought by the Distribution Wizard by
>> > > importing old versions of pages from your previous wiki. If you’ve done
>> > > that then you’ve most likely broken the upgrade process since you’ve
>> > > removed all the upgrades that were required to all default wiki pages!
>> :)
>> > > See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for
>> the
>> > > canonical way of upgrading an XWiki instance. If you’ve done that I
>> suggest
>> > > that you redo the upgrade.
>> > > >
>> > > > 2) you have modified Dashboard.WebHome. If this is the case then
>> you’ll
>> > > need to update your version to use the {{documentTree}} macro instead
>> of
>> > > the spaces macro.
>> > > >
>> > > > As I’ve mentioned already in my reply the notion of Spaces have been
>> > > removed from the UI (I’ve linked you to some page with the explanation,
>> > > have you been able to read that page? was it clear? should we improve
>> > > things there with more explanations?).
>> > > >
>> > > > Thanks
>> > > > Hope it helps,
>> > > > -Vincent
>> > > >
>> > > >
>> > > >
>> > > > On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyz...@gmail.com(mailto:
>> > > kirbyz...@gmail.com)) wrote:
>> > > >
>> > > > > I belived that I have use the space widget version 7.3.
>> > > > > I created a new Xwiki-7.3, and then import the old spaces one by
>> one,
>> > > excluding 'Main', 'XWiki' and all spaces coming with Xwiki default
>> pages.
>> > > > >
>> > > > > I just want to get a simple space list.
>> > > > >
>> > > > >
>> > > > >
>> > > > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:
>> vinc...@massol.net)"
>> > > > > 日期: 2015年12月23日 星期三 上午4:41
>> > > > > 至: XWiki Users
>> > > > > 抄送: KirbY ZhoU
>> > > > > 主题: Re: [xwiki-users] How to avoid nested space?
>> > > > >
>> > > > > Hi KirbY,
>> > > > > On 22 Dec 2015 at 21:27:47, KirbY ZhoU (kirbyz...@gmail.com
>> (mailto:
>> > > 

Re: [xwiki-users] New Page Has No Parent

2016-01-05 Thread Eduard Moraru
Hi Randy,

From your choice of words (and your continued usage of the now deprecated
"spaces" macro on the homepage, as observed in the screenshot you`ve
provided), I understand that you still see things in terms of "creating
spaces" and "creating documents inside spaces" in 7.4 and, IMO, that`s
really the issue.

In case you`ve missed it from the release notes, starting with 7.2, we`ve
introduced the notion of Nested Pages [1], which means that you no longer
have the notion of "pages inside spaces", but always "pages inside pages".
Technically, it is actually implemented by always creating a "space" when
you create a page from the UI, but the user should see it as if he is
always creating a page.

= Use Case 1 =

When your users go to your homepage and create a new page "under the Main
space", they are actually creating a nested page (old "space"), under the
homepage (document called "Main") of your wiki. If you change [2] the
homepage of your wiki to point to a different document instead (say
"Some.Other.Homepage"), I`m fairly sure that you do not want your users to
start creating new pages as children of that page (e.g.
"Some.Other.Homepage.NewUserPage"), because that is what the alternative
would lead to.

The logic behind the original decision of handling the homepage differently
was that, even as Guillaume was hinting, the homepage is seen as the "root"
of your wiki. Creating a page from the root should result in creating top
level pages, not child pages. If you wanted to create a child page of
something from the homepage, you would explicitly do so by selecting a
parent. Not selecting a parent while on the homepage would logically imply
that you want to create a page in the wiki (i.e. top page).

I`m curious why do you find it normal the other way around, i.e. landing on
the wiki (i.e. not navigating somewhere in particular) + creating a new
page => resulting in creating a child page of the "Main" page (which
happens to be the homepage).

If you always create child pages of the homepage ("Main" page), on the long
run, all your URLs will be /Main/This/Page, /Main/That/Page,
/Main/That/Other/Page, etc... but ultimately, what is this "Main", and why
is it that important to drag it along in all your page URLs? (of course,
again, if you change your homepage to "Some.Other.Homepage", all your urls
will be prefixed by that!)

= Use case 2 =

Now, another way of looking at this would be that, for some reason, you
*really* want to keep all your content under some top level page (e.g. as
Vincent suggested, a "Content" container page), perhaps to separate it from
applications (which, for historic reasons, currently are also located in
the top level) like Blog, Sandbox, etc. or any other reason.

The only limitation in this usecase is if you also want to use that
container page ("Main", "Content", etc.) as your homepage. In this case,
indeed, I see no other solution but to modify the createinline.vm template
or for us to drop this behavior altogether.

---

Conclusion so far:
We have 2 use cases regarding a new page's parent. They can both coexist,
except that, in some cases, the 2nd use case is limited by the first use
case. If we consider this limitation to be a deal breaker, then we are left
with 2 choices:
A. Drop use case 1 (i.e. always propose the current page as parent of the
new page, regardless if the current page is the homepage or not)
B. Make use case 1 configurable (i.e. enable or disable it completely, in
case you are suffering from the limitation of the second use case; this
allows the user to decide if it's useful or not)

Of course, if option B is what we go for, we also need to figure out where
we would put such a configuration.

I would be in favor of option B (since I obviously believe that use case 1
is something useful for the majority of cases), but have no idea on the
location of the configuration.

WDYT?

Thanks for all your feedback so far and I`m counting on your help and
anyone else interested to reach a conclusion regarding this.

-Eduard

--
[1] http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization
[2]
http://www.xwiki.org/xwiki/bin/view/FAQ/How+to+change+the+home+page+destination

On Mon, Jan 4, 2016 at 3:13 PM, Randy Havens <
randy.hav...@cityofrochester.gov> wrote:

> > So if we bring
> > back the old behavior as-is we'd still have to find a solution for
> > top-level space creation.
>
> That’s already taken care of. This is how I always created spaces before:
> (this is a screenshot from my 7.4 instance, so I know that it is still an
> option)
>
> [cid:image001.png@01D146C6.3625A240]
> > A suggestion I had now that nested spaces are activated by default was to
> > make the home page of the wiki be "above" every other space. Said
> > differently, the home page would reside directly at
> > https:///xwiki/bin/view/
> > without anything else being mentioned. From that page you'd be able to
> > create top-level spaces, 

Re: [xwiki-users] [myxwiki] new wiki request

2016-01-05 Thread Thomas Mortagne
You can access your new wiki on http://enoughforall.myxwiki.org.

Enjoy !

On Tue, Jan 5, 2016 at 2:52 AM, Metamechanic  wrote:
> Hi.
>
> I’d like to register a second new community Xwiki please.
>
> Description:
>
> It is a wiki called Enough For All.
>
> It is designed to be an open community repository for information related to 
> poverty at all levels. It aims to have a social network and collaboration 
> aspect to it.
>
> Owner name: Adam Duus
> Username: metamechanic
>
> Wiki name:  EnoughForAll
>
> Thank you.
>
> Regards,
> Adam Duus.
> ___
> 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] How to avoid nested space?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net 
wrote:

> Hi,
>
> On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> kirbyz...@gmail.com)) wrote:
>
> > Sorry for reply so later, I have taken a vacation for days.
>
> Hope you had some nice holidays! :)
>
> > Actually, I modified Dashboard.WebHome after upgrade, and use {{spaces}}
> macro which comes from 7.3 release.
> > Now I replace {{spaces}} with {{documentTree}}, but I have some little
> problem.
> > 1. I want to avoid "xxx more", but limit=100 do not work.
> > 2. I want to limit the tree level, but I have no idea.
>
> All documentation for the tree macro can be found at
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
>
>

> AFAIK there’s currently no way to configure how many items to display
> before “xxx more” appears. @Marius: is that correct? It seems it would be
> useful to have this in the future if that’s the case. WDYT? Do we have a
> jira issue about it already?
>

There is an internal "limit" parameter available since 7.3RC1, as I
mentioned on
http://lists.xwiki.org/pipermail/users/2015-December/031746.html . It
doesn't appear in the documentation because I haven't made it public yet
(with a XWiki.WikiMacroParameterClass object) but it can be used.

{{documentTree limit="3" /}}


>
> I’m not sure what’s your use case for point 2. I guess you mean limit the
> hierarchy but it seems it would prevent users from navigating correctly so
> I’m not sure what’s the use case.
>
> Thanks
> -Vincent
>
> > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"
> > 日期: 2015年12月23日 星期三 下午7:35
> > 至: KirbY ZhoU , XWiki Users
> > 主题: Re: [xwiki-users] How to avoid nested space?
> >
> > Hi,
> >
> > The default dashboard is located in Dashboard.WebHome. When you upgraded
> you should have had the Distribution Wizard upgrade that page. Was that the
> case? Could you check the history for that page?
> >
> > Now two things could have happened:
> >
> > 1) you overwrote the changes brought by the Distribution Wizard by
> importing old versions of pages from your previous wiki. If you’ve done
> that then you’ve most likely broken the upgrade process since you’ve
> removed all the upgrades that were required to all default wiki pages! :)
> See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for the
> canonical way of upgrading an XWiki instance. If you’ve done that I suggest
> that you redo the upgrade.
> >
> > 2) you have modified Dashboard.WebHome. If this is the case then you’ll
> need to update your version to use the {{documentTree}} macro instead of
> the spaces macro.
> >
> > As I’ve mentioned already in my reply the notion of Spaces have been
> removed from the UI (I’ve linked you to some page with the explanation,
> have you been able to read that page? was it clear? should we improve
> things there with more explanations?).
> >
> > Thanks
> > Hope it helps,
> > -Vincent
> >
> >
> >
> > On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> kirbyz...@gmail.com)) wrote:
> >
> > > I belived that I have use the space widget version 7.3.
> > > I created a new Xwiki-7.3, and then import the old spaces one by one,
> excluding 'Main', 'XWiki' and all spaces coming with Xwiki default pages.
> > >
> > > I just want to get a simple space list.
> > >
> > >
> > >
> > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"
> > > 日期: 2015年12月23日 星期三 上午4:41
> > > 至: XWiki Users
> > > 抄送: KirbY ZhoU
> > > 主题: Re: [xwiki-users] How to avoid nested space?
> > >
> > > Hi KirbY,
> > > On 22 Dec 2015 at 21:27:47, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> kirbyz...@gmail.com)(mailto:kirbyz...@gmail.com)) wrote:
> > >
> > > > How to avoid nested space?
> > > >
> > > > Since the new nested space feature, a lot of nested space such as
> "XXX.YYY" appears in the "Space List" in my home page.
> > > > If I want to create a sub page, a new nested space created silently.
> It becomes more and more, and bothers our users.
> > > >
> > > > I want keep the original simple one level space and documents tree
> model instead of the new nested space model. How can I get it?
> > >
> > > The issue is that you haven’t upgraded your home page (the dashboard I
> presume). We have replaced the Space widget with a Documents widget.
> Normally, when you have upgrade you should have had the Distribution Wizard
> kicking in and updating the default wiki pages. Please let us know what
> you’ve done when the Distribution Wizard has executed.
> > >
> > > The notion of Spaces has been removed starting with XWiki 7.2+
> > >
> > > Please see
> http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization
> > >
> > > The introduction of Nested Spaces is a large change and we wish to
> make it as seamless as possible to our users. Please let us know any issue
> you see and we’ll try to help you and see if we can improve things by
> default so that other users have less 

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread vinc...@massol.net


On 5 Jan 2016 at 14:29:11, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net  
> wrote:
>  
> > Hi,
> >
> > On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> > kirbyz...@gmail.com)) wrote:
> >
> > > Sorry for reply so later, I have taken a vacation for days.
> >
> > Hope you had some nice holidays! :)
> >
> > > Actually, I modified Dashboard.WebHome after upgrade, and use {{spaces}}
> > macro which comes from 7.3 release.
> > > Now I replace {{spaces}} with {{documentTree}}, but I have some little
> > problem.
> > > 1. I want to avoid "xxx more", but limit=100 do not work.
> > > 2. I want to limit the tree level, but I have no idea.
> >
> > All documentation for the tree macro can be found at
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
> >
> >
>  
> > AFAIK there’s currently no way to configure how many items to display
> > before “xxx more” appears. @Marius: is that correct? It seems it would be
> > useful to have this in the future if that’s the case. WDYT? Do we have a
> > jira issue about it already?
> >
>  
> There is an internal "limit" parameter available since 7.3RC1, as I
> mentioned on
> http://lists.xwiki.org/pipermail/users/2015-December/031746.html . It
> doesn't appear in the documentation because I haven't made it public yet
> (with a XWiki.WikiMacroParameterClass object) but it can be used.
>  
> {{documentTree limit="3" /}}

ok thanks I had forgotten. However KirbY mentioned that it didn’t work when he 
tried it.

@KirbY: have you used it in the way Marius described above?

Thanks
-Vincent

> > I’m not sure what’s your use case for point 2. I guess you mean limit the
> > hierarchy but it seems it would prevent users from navigating correctly so
> > I’m not sure what’s the use case.
> >
> > Thanks
> > -Vincent
> >
> > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"
> > > 日期: 2015年12月23日 星期三 下午7:35
> > > 至: KirbY ZhoU , XWiki Users
> > > 主题: Re: [xwiki-users] How to avoid nested space?
> > >
> > > Hi,
> > >
> > > The default dashboard is located in Dashboard.WebHome. When you upgraded
> > you should have had the Distribution Wizard upgrade that page. Was that the
> > case? Could you check the history for that page?
> > >
> > > Now two things could have happened:
> > >
> > > 1) you overwrote the changes brought by the Distribution Wizard by
> > importing old versions of pages from your previous wiki. If you’ve done
> > that then you’ve most likely broken the upgrade process since you’ve
> > removed all the upgrades that were required to all default wiki pages! :)
> > See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for the
> > canonical way of upgrading an XWiki instance. If you’ve done that I suggest
> > that you redo the upgrade.
> > >
> > > 2) you have modified Dashboard.WebHome. If this is the case then you’ll
> > need to update your version to use the {{documentTree}} macro instead of
> > the spaces macro.
> > >
> > > As I’ve mentioned already in my reply the notion of Spaces have been
> > removed from the UI (I’ve linked you to some page with the explanation,
> > have you been able to read that page? was it clear? should we improve
> > things there with more explanations?).
> > >
> > > Thanks
> > > Hope it helps,
> > > -Vincent
> > >
> > >
> > >
> > > On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> > kirbyz...@gmail.com)) wrote:
> > >
> > > > I belived that I have use the space widget version 7.3.
> > > > I created a new Xwiki-7.3, and then import the old spaces one by one,
> > excluding 'Main', 'XWiki' and all spaces coming with Xwiki default pages.
> > > >
> > > > I just want to get a simple space list.
> > > >
> > > >
> > > >
> > > > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"
> > > > 日期: 2015年12月23日 星期三 上午4:41
> > > > 至: XWiki Users
> > > > 抄送: KirbY ZhoU
> > > > 主题: Re: [xwiki-users] How to avoid nested space?
> > > >
> > > > Hi KirbY,
> > > > On 22 Dec 2015 at 21:27:47, KirbY ZhoU (kirbyz...@gmail.com(mailto:
> > kirbyz...@gmail.com)(mailto:kirbyz...@gmail.com)) wrote:
> > > >
> > > > > How to avoid nested space?
> > > > >
> > > > > Since the new nested space feature, a lot of nested space such as
> > "XXX.YYY" appears in the "Space List" in my home page.
> > > > > If I want to create a sub page, a new nested space created silently.
> > It becomes more and more, and bothers our users.
> > > > >
> > > > > I want keep the original simple one level space and documents tree
> > model instead of the new nested space model. How can I get it?
> > > >
> > > > The issue is that you haven’t upgraded your home page (the dashboard I
> > presume). We have replaced the Space widget with a Documents widget.
> > Normally, when you have upgrade you should have had the Distribution Wizard
> > kicking in and updating the default wiki pages. Please let us 

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread vinc...@massol.net
Hi,

On 5 Jan 2016 at 10:09:27, KirbY ZhoU 
(kirbyz...@gmail.com(mailto:kirbyz...@gmail.com)) wrote:

> Sorry for reply so later, I have taken a vacation for days.

Hope you had some nice holidays! :)

> Actually, I modified Dashboard.WebHome after upgrade, and use {{spaces}} 
> macro which comes from 7.3 release.
> Now I replace {{spaces}} with {{documentTree}}, but I have some little 
> problem.
> 1. I want to avoid "xxx more", but limit=100 do not work.
> 2. I want to limit the tree level, but I have no idea.

All documentation for the tree macro can be found at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro

AFAIK there’s currently no way to configure how many items to display before 
“xxx more” appears. @Marius: is that correct? It seems it would be useful to 
have this in the future if that’s the case. WDYT? Do we have a jira issue about 
it already?

I’m not sure what’s your use case for point 2. I guess you mean limit the 
hierarchy but it seems it would prevent users from navigating correctly so I’m 
not sure what’s the use case.

Thanks
-Vincent

> 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"  
> 日期: 2015年12月23日 星期三 下午7:35
> 至: KirbY ZhoU , XWiki Users  
> 主题: Re: [xwiki-users] How to avoid nested space?
>  
> Hi,  
>  
> The default dashboard is located in Dashboard.WebHome. When you upgraded you 
> should have had the Distribution Wizard upgrade that page. Was that the case? 
> Could you check the history for that page?  
>  
> Now two things could have happened:  
>  
> 1) you overwrote the changes brought by the Distribution Wizard by importing 
> old versions of pages from your previous wiki. If you’ve done that then 
> you’ve most likely broken the upgrade process since you’ve removed all the 
> upgrades that were required to all default wiki pages! :) See 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for the canonical 
> way of upgrading an XWiki instance. If you’ve done that I suggest that you 
> redo the upgrade.  
>  
> 2) you have modified Dashboard.WebHome. If this is the case then you’ll need 
> to update your version to use the {{documentTree}} macro instead of the 
> spaces macro.  
>  
> As I’ve mentioned already in my reply the notion of Spaces have been removed 
> from the UI (I’ve linked you to some page with the explanation, have you been 
> able to read that page? was it clear? should we improve things there with 
> more explanations?).  
>  
> Thanks  
> Hope it helps,
> -Vincent
>  
>  
>  
> On 23 Dec 2015 at 12:19:45, KirbY ZhoU 
> (kirbyz...@gmail.com(mailto:kirbyz...@gmail.com)) wrote:
>  
> > I belived that I have use the space widget version 7.3.
> > I created a new Xwiki-7.3, and then import the old spaces one by one, 
> > excluding 'Main', 'XWiki' and all spaces coming with Xwiki default pages.
> >  
> > I just want to get a simple space list.  
> >  
> >  
> >  
> > 发件人: Vincent Massol 代表 "vinc...@massol.net(mailto:vinc...@massol.net)"  
> > 日期: 2015年12月23日 星期三 上午4:41
> > 至: XWiki Users  
> > 抄送: KirbY ZhoU  
> > 主题: Re: [xwiki-users] How to avoid nested space?
> >  
> > Hi KirbY,  
> > On 22 Dec 2015 at 21:27:47, KirbY ZhoU 
> > (kirbyz...@gmail.com(mailto:kirbyz...@gmail.com)(mailto:kirbyz...@gmail.com))
> >  wrote:
> >  
> > > How to avoid nested space?
> > >
> > > Since the new nested space feature, a lot of nested space such as 
> > > "XXX.YYY" appears in the "Space List" in my home page.
> > > If I want to create a sub page, a new nested space created silently. It 
> > > becomes more and more, and bothers our users.
> > >
> > > I want keep the original simple one level space and documents tree model 
> > > instead of the new nested space model. How can I get it?  
> >  
> > The issue is that you haven’t upgraded your home page (the dashboard I 
> > presume). We have replaced the Space widget with a Documents widget. 
> > Normally, when you have upgrade you should have had the Distribution Wizard 
> > kicking in and updating the default wiki pages. Please let us know what 
> > you’ve done when the Distribution Wizard has executed.  
> >  
> > The notion of Spaces has been removed starting with XWiki 7.2+  
> >  
> > Please see 
> > http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization  
> >  
> > The introduction of Nested Spaces is a large change and we wish to make it 
> > as seamless as possible to our users. Please let us know any issue you see 
> > and we’ll try to help you and see if we can improve things by default so 
> > that other users have less problems upgrading.  
> >  
> > Thanks for your help and patience.  
> > -Vincent
> >  

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