Hi,

Zhaolin Feng wrote:
> I'm learning to implement a macro for Lightbox Application as
> suggested by Guillaume.
> 
> So far I've read:
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingMacros
> 
> And I have a question. Is it possible to have other macro parameter
> types besides string? For examples, boolean, enumeration, filename,
> image, color. And it's even better to have color picker, image picker
> dialog automatically popped up when clicking.
> 
> I see the HTML macro have boolean parameters. How is it achieved?

> Is is possible to reuse the image picker of the WYSIWYG editor?

Are you referring to the Insert Image wizard? The wizard itself is 
reusable. It might require some changes though since you want to open a 
wizard (Insert Image) from another wizard (Insert Macro) and wizards are 
currently modal (one at a time).

We are currently associating widgets to macro parameter types. 
Associating simple widgets like a color picker is easy. For instance we 
associate text input to strings and list box to boolean and 
enumerations. Associating dialog wizards might require some extra work.

Also, it might be desirable, as Jerome pointed out, to provide a way for 
a rendering macro to register its own custom edit dialog in WYSIWYG mode.

Marius

> 
> 
> 
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to