[xwiki-users] UI Control for Upload, Attach, Select and Display a photo
Hi, I have a class with a text field for holding a reference to a photo. I would like to modify the sheet to add - modify objects of this class. After the modification the sheet should display - a default image if the object attribute 'photo' is empty (like the avatar image for a xwiki user) - a Button to modify the attribute - When the user clicks on a pop-up like the image selector in the user avatar. My issue is that the class was developed in a very early version of XWiki. On XWiki.org I found: Attachment Selector Macro This macro seems pretty close to what I want. But the sheet is still in wiki version 1. How can I use the macro in a sheet that is linked to the class? Gerritjan
On 01/08/2014 07:19 AM, Gerritjan Koekkoek wrote:
Hi, I have a class with a text field for holding a reference to a photo. I would like to modify the sheet to add - modify objects of this class. After the modification the sheet should display - a default image if the object attribute 'photo' is empty (like the avatar image for a xwiki user) - a Button to modify the attribute - When the user clicks on a pop-up like the image selector in the user avatar.
My issue is that the class was developed in a very early version of XWiki. On XWiki.org I found: Attachment Selector Macro This macro seems pretty close to what I want. But the sheet is still in wiki version 1.
How can I use the macro in a sheet that is linked to the class?
Gerritjan
You can't, you must upgrade to the 2.0 or 2.1 syntax. -- Sergiu Dumitriu http://purl.org/net/sergiu
how do i test if the script currently in the sheet is compatible to 2.1? how do i ten use the macro? 2014/1/8 Sergiu Dumitriu <sergiu@xwiki.com>
On 01/08/2014 07:19 AM, Gerritjan Koekkoek wrote:
Hi, I have a class with a text field for holding a reference to a photo. I would like to modify the sheet to add - modify objects of this class. After the modification the sheet should display - a default image if the object attribute 'photo' is empty (like the avatar image for a xwiki user) - a Button to modify the attribute - When the user clicks on a pop-up like the image selector in the user avatar.
My issue is that the class was developed in a very early version of XWiki. On XWiki.org I found: Attachment Selector Macro This macro seems pretty close to what I want. But the sheet is still in wiki version 1.
How can I use the macro in a sheet that is linked to the class?
Gerritjan
You can't, you must upgrade to the 2.0 or 2.1 syntax. -- Sergiu Dumitriu http://purl.org/net/sergiu _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Gerritjan Koekkoek -
Sergiu Dumitriu