I'm +1 for A) for the same reasons.
On Thu, Jul 8, 2010 at 7:01 PM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On 07/07/2010 07:13 PM, Anca Luca wrote:
Hi devs,
Following the implementation of gadgets we'd need to discuss the
approach of implementing xwiki as an open social container (also see
http://dev.xwiki.org/xwiki/bin/view/Design/GadgetIntegration#HXWikiasOpenSo…
for the discussion). There are 2 approaches that can be used:
Short story:
Option A): open social gadgets are imported as xwiki macros (one macro
for each imported gadget), the xwiki dashboard works with macros as
gadgets, to publish the xwiki macros as gadgets we provide an automatic
transformation of xwiki macros in open social gadgets XML definition
Option B): dashboard accepts a single macro inside, the {{gadget}}
macro, which will specify a reference to the gadget to display (URL to
XML if it's open social, page reference if it's xwiki gadget) and the
parameters, there would be a mechanism to automatically publish these
xwiki pages as gadgets (to be used either by this {{gadget}} macro or by
other containers).
Long story (also discussing possible approaches for subproblems, and
also containing some pros& cons):
Option A)
See
http://dev.xwiki.org/xwiki/bin/view/Design/GadgetIntegration#HProposalA-Gad…
Option B)
See
http://dev.xwiki.org/xwiki/bin/view/Design/GadgetIntegration#HProposalB-All…
WDYT? Do you think there are other possible approaches that should be
added to this list before the vote? What do you think would be more
suitable?
I'm for option A) because:
* it's easier to insert a gadget in a wiki page, outside a dashboard
** the list of parameters is known (determined during the import)
** gadgets are wiki macros
* it's easier for an admin to control what gadgets are available
* seems easier to generate a gadget specification from a wiki macro than
from a plain wiki page (e.g. for using wiki macros as gadgets outside
XWiki).
Besides A) we still need, as Anca said, a macro to draw the window-like
decorations when gadgets/macros are displayed inside the dashboard.
Thanks,
Marius
Some usage scenarios are documented at
http://dev.xwiki.org/xwiki/bin/view/Design/GadgetIntegration#HScenarios
. Please, if you feel the list is not complete, contribute your usecases.
Thanks,
Anca
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs