On Thu, Nov 3, 2011 at 11:56 AM, Vincent Massol <vincent(a)massol.net> wrote:
Hi devs,
I'm implementing the LinkChecker UI and I want to be able to add a Tab in AllDocs.
Right now I've coded it with a hardcoded #if but I really hate this.
So here's my proposal:
* Create the following modules:
xwiki-platform-uiextension/
|_ xwiki-platform-uiextension-ui/
|_ xwiki-platform-uiextension-api/
where:
* xwiki-platform-uiextension-ui/: contains XWiki.UIExtensionClass page
* xwiki-platform-uiextension-api/: contains a ScriptService to get UIExtension data +
contains an EventListener that refreshes the UI Extension Cache when an UIExtensionClass
object is modified (this is for performance reasons)
To start with I'm proposing to have the following fields for UIExtensionClass:
* type: String, represents the type of the extension (for example for the AllDocs needs,
I'll use a "IndexTab" type (or "AllDocsTab" type)
Not sure about the type name, maybe more something like
"enterprise.indexTab" to follow configuration and translation keys
standard.
* id: String, the technical name of the extension,
which can be used for example as suffix for HTML class or ids.
* name: String, the name of the extension, which can be used for displaying. For example
for the AllDocs needs, it would be used as the name of the Tab
* content: Textarea: the content of the extension. For example for the AllDocs needs, it
would be used as the content to display when clicking on a tab
I'd like to implement this ASAP and thus stop hardcoding UI Extensions from now on.
Here's my +1
+1
I'm ok with "uiextension".
Thanks
-Vincent
PS: If you find a better than "uiextension" I'm all ears. A name without
"extension" would be great to not confuse it with our Extensions (and with
xwiki-platform-extension).
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne