Re: [xwiki-users] UI Control for Upload, Attach, Select and Display a photo

2014-01-08 Thread Gerritjan Koekkoek
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 

> 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] UI Control for Upload, Attach, Select and Display a photo

2014-01-08 Thread Sergiu Dumitriu
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


[xwiki-users] UI Control for Upload, Attach, Select and Display a photo

2014-01-08 Thread Gerritjan Koekkoek
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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users