Hi devs,

I'm working currently on the new comments and ratings plugins. The objective is to allow to separate the comment code from the core to allow different implementation which can be:

- comments as objects to the page (the current implementation)
- comments as separate pages
- ratings separated from comments
- comments and ratings merged

We have code in the sandbox
http://svn.xwiki.org/svnroot/xwiki/sandbox/plugins/comments/src/main/java/com/xpn/xwiki/plugin/comments/

There is a patch for the core to call the comments code in the sandbox also.

Now we have currently used a plugin oriented entry point which calls a CommentsManager which is a separate module. It does not seem very practical to call the plugin from the core. I've been thinking that it would be better to make the CommentsManager a component, with the interface in the core, and separate the implementations in a comments component in the xwiki-core-comments. The approach would be similar to Artem's approach on the query plugin.

Then we would use a velocity bridge to expose the comments to the velocity scripting.

Is that the right approach ? Is there documentation to help me achieve this ? Can some of our core devs looks at the comments code and provide some feedback to improve this. I think we can improve it significantly. We need comments and ratings as separate pages pretty quickly so we need feedback very soon to be able to take it into account.

WDYT ?

Ludovic

--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
begin:vcard
fn:Ludovic Dubost
n:Dubost;Ludovic
org:XWiki
adr:;;10 Rue Pernety;Paris;;75014;France
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:01 45 42 40 90
tel;fax:09 59 26 92 14
tel;home:09 54 26 92 14
tel;cell:06 09 34 92 14
x-mozilla-html:TRUE
url:http://www.xwiki.com
version:2.1
end:vcard

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

Reply via email to