[kupu-dev] Kupu Charmap. First impressions
Guido Wesdorp
johnny at johnnydebris.net
Wed Aug 20 23:27:43 CEST 2008
Jordi Martinez wrote:
> 1.- kupuploneinit.js: it's useful to define the button and the drawer
> 2.- kupudrawers.js: you define here the drawer behavior
> 3.- kupubasetools.js: you could define the html creator code (the html
> code that kupu inserts in the document
> 4.- kupupopups/charmap.html: the html code for the dialog box
>
> Could you confirm my first impressions?
>
>
Well, mostly. The HTML should probably not end up in kupupopups if you
want to create a drawer, since those (drawers) use HTML from the main
page rather than a seperate HTML document like the popups.
I'm not sure whether writing a drawer is the best choice, btw, perhaps
it's the nicest ui-wise, but it's a bit more involved than writing a
popup. If you'd do that instead, it would basically be a matter of
creating the popup HTML in 'kupupopups', adjusting 'kupuploneinit.js' so
it registers a button that opens your popup and that's it. (As long as
you don't care about distribution and upgrading issues, if you do then
the whole XSL thing described in my last mail comes into play).
Cheers,
Guido
More information about the kupu-dev
mailing list