Hi,
On Tue, Nov 30, 2010 at 17:12, Vincent Massol <vincent(a)massol.net> wrote:
Hi,
I think we should provide default template providers in default XE. This
thread is about deciding which ones to have by default.
+1 for the concept. See my comments below.
Candidates:
==========
1- Wiki Macro
2- Blog Post
3- Scheduler Job
4- Class (same result as creating a class from the class wizard)
5- Color Theme
6- Panel
7- Skin
We might also want to have a "user" template, if that's doable with the
current mechanism.
For some of these we have home pages to create them
(For example: Blog,
Scheduler, Class, Color Theme, Panel) so we need to decide if it's ok to
provide 2 locations from where to create them.
Yes, I think it's ok to have 2 locations, the same way we have more than one
way to create new pages (links to non-existent pages, "create" button...).
In addition some of the candidates above are technical things and they
shouldn't be displayed to simple users IMO: Wiki
Macro, Scheduler Job,
Class, Color Theme, Panel, Skin.
Thus I'd also like to discuss having a mechanism for a Template Provider to
say to whom it's addressed. Could be done by adding an "Audience" field to
the Template Provider class.
That's not necessarily needed. There are already 2 mechanisms that can be
leveraged in order to handle this use case:
- The ability to restrict a template to a given space -> the ColorTheme
template could be provided only in the ColorThemes space for instance
- The $blacklistedSpaces variable -> it's already used to hide technical
spaces. Coupled with the above mechanism, it could be sufficient
Thus I'm not sure that we need an additional field. Let's first use (and if
needed improve) the existing mechanisms.
Guillaume
WDYT?
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs