[xwiki-users] Nested document killed {{spaceindex}} macro?

2016-12-08 Thread Pascal BASTIEN
Hello,

With my xwiki7.0.1 to 8.4 upgrade process, I noticed that all my WebHome on 
spaces (with dashboard+{{spaceindex}} macro) are "broken".
After a little bit of search, I understood that spaceindex macro list only 
direct children terminal page...
In some different post from dev list, it seem that I must use {{documentTree}} 
macro instead.

My spaces dashboard use
{{spaceindex sort="modificationDate" count="20" /}}
to list the 20 more recents page and I added a shortcut to 
/bin/view/Main/SpaceIndex?space=MySpace (broken too:-( )

Could you give me some advices how can I replace my "spaceindex" to:
- list the 20 more recents page (terminale and none terminale) on current space?
I didn't found a "modificationDate" sorting parameter in {{documentTree}}
- replace my target /Main/SpaceIndex?space=MySpace by ... ???
Probably I must create a custom LT to list every sub pages

Finaly, may be a caution text must be added on this page: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/SpaceIndex+Macro
(ie "don't use this macro anymore with nested page!" or "list only direct 
children terminal page ")

Thxs for your help.

Pascal BASTIEN


Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread Hamster
1) I am not cutting any post. I use Nabble.

http://xwiki.475771.n2.nabble.com/Re-API-Scripting-create-user-and-attach-some-files-to-its-profile-td7601934.html

2) I think my example shows perfectly what you want to accomplish. You want
to attach an PDF to something which does not yet exist.

Don't be scorned, I am just putting things in perspective. Unless there's an
API which allows you to attach items to pages during the creation of the
page. Otherwise the procedure will have to be (1) check if a user profile
exists, if "yes" then attach file, if "no" then first create the user
profile and then attach the file.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Re-API-Scripting-create-user-and-attach-some-files-to-its-profile-tp7601934p7602032.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread m...@ow2.org
Le 08/12/2016 à 10:42, Hamster a écrit :
> That sounds a lot like...
> 
> "Here's a file, you should save it in that non-existing folder"
> 
> "But the folder does not exist yet...how am I going to save that file???"

When you are turning my request into a non-sense like this, I feel a
little scorned. Still this is a real question with a real usecase
scenario. Would you have something valuable to bring ?

And you cut the remaining part of my post.

Cheers



Re: [xwiki-users] API/Scripting : create user and attach some files to its profile

2016-12-08 Thread Hamster
That sounds a lot like...

"Here's a file, you should save it in that non-existing folder"

"But the folder does not exist yet...how am I going to save that file???"




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Re-API-Scripting-create-user-and-attach-some-files-to-its-profile-tp7601934p7602030.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Menu crashes if changed by a non admin user (see menu application extension)

2016-12-08 Thread Hamster
Can this issue be addressed?

I have to repair pages on a daily notice because people keep changing pages
which require PR to function OK. It's very annoying. And I keep telling
them, "No, it's not your fault. No, you can't see at this moment if a page
requires PR. Yes, you will break those pages if you edit them".

People who have no PR should not be able to edit pages which require PR!

Thanks :-)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Menu-crashes-if-changed-by-a-non-admin-user-see-menu-application-extension-tp7600481p7602029.html
Sent from the XWiki- Users mailing list archive at Nabble.com.