Hi,
Did not follow the discussion in depth, but maybe you are interested in
adding an EventListener on either DocumentCreatingEvent [1] (before) or
DocumentCreatedEvent [2] (after).
Other, more specialized, events exist as well, such as
XObjectAdded/Updated/DeletedEvent [7][8][9] that allows you
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
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 scorn
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-pro
dd custom velocity code here:
> /bin/edit/XWiki/XWikiUserProfileSheet?editor=wiki
> (I don't know it it is a clean way, it depend of your use case desired)
>
>
> En date de : Mar 29.11.16, m...@ow2.org a écrit :
>
> Objet: Re: [xwiki-u
r use case desired)
En date de : Mar 29.11.16, m...@ow2.org a écrit :
Objet: Re: [xwiki-users] API/Scripting : create user and attach some files to
its profile
À: "XWiki Users"
Date: Mardi 29 novembre 2016, 9h00
Hi Pascal,
Thanks for t
Hi Pascal,
Thanks for the tip :)
It answers to the "how to add a field" part of my question. But it
doesn't answer about attaching file to the profile. The main issue I see
here is the account is created on login. Or maybe there might be a hook
system so we can trigger something when the account i
Hello,
I added some others attributes (I don't know if you can do the same with file)
Add some attributes here: /bin/edit/XWiki/XWikiUsers?editor=class
e.g. myaddress
(disabled it to prevent your user modified it)
Add this field "myaddress" on the sheet: /bin/view/XWiki/AdminUserProfileSheet
and