Hi In my project there is a necessity of allowing the users to rate documents. Say a rating scale from 1-5 will have to appear in each document (created using a template). Users can rate a document and an overall rating appears after calculating all the ratings. At present I did the whole thing using servlets. But is this the preferred way to do this in xwiki. Can this be done by making use of xwiki plugin or so, so that it will be useful for others also? Any hints ? Regards Roopesh
Hi Roopesh, I'm happy to see you're really getting into XWiki. You've been asking a lot of questions and from the questions I can see you're progressing in your understanding of xwiki. I hope you'll be able to contribute back. This can take several form. Adding documentation would help a lot. Answering emails on the list when you know the answer helps too. Let us know if this is something you could do to help us all. To answer you question, the easiest would be to create a Rating class and add that object to pages which are rated. You could create a Panel to rate pages. It would add these Rating objets to the page being rated for example. Thanks -Vincent On May 22, 2007, at 4:05 PM, roopesh@digitalglue.in wrote:
Hi
In my project there is a necessity of allowing the users to rate documents. Say a rating scale from 1-5 will have to appear in each document (created using a template). Users can rate a document and an overall rating appears after calculating all the ratings. At present I did the whole thing using servlets. But is this the preferred way to do this in xwiki.
Can this be done by making use of xwiki plugin or so, so that it will be useful for others also? Any hints ?
Regards Roopesh
-- You receive this message as a subscriber of the xwiki- users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Vincent: While I agree that adding an object to a page would probably be the simplest way to do this, it has the drawback of requiring edit permission on the page. It doesn't take a great leap to imagine wanting to allow users to rate pages that you don't want them to edit, just like adding comments. I haven't looked closely at how tagging is implemented in 1.0, but it looked like it puts a tags field in the document class itself, which would have the same problem: that tagging a document, like commenting on it, is primarily a means of recording what viewers think about it, and so limiting the ability to tag or rate a document to those who also have the right to change it would not be optimal. Rating and tagging both record a user's personal association of semantic values with a document. The association can be entirely independent, as with all of the public tagstores on the net. The contributor's biggest need is for ease of adding ratings or tags in the context of viewing the document; the consumer's is for ease of finding them in that same context, and for the greatest possible number of contributors. Of course, ratings and keyword associations are not the only kinds of metadata that we want to associate with documents; there is a large and growing need to provide general metadata stores for lots of current and future indexing needs. The bottom line (and in only one screenful; pretty good for me!) is that I actually think that your existing servlets, to which you can simply provide links in your view templates, can evolve independently into a general-purpose semantic indexing tool of a kind that will be useful beyond XWiki. For example, our XWiki's header.vm template adds a link to the page menu to publish tags for the current page to our in-house instance of Scuttle, an open-source del.icio.us-like implementation. Likewise, we provide a bookmarklet, like the one provided by del.icio.us, and Scuttle provides a Firefox extension to add tagging to the context menu - both of which offer the advantage not only of tagging any page with Scuttle but of taking the text selection, if any, as the comment text for the tag record. We'd actually use del.icio.us itself except that many of our links are internal and neither useful to the general public nor acceptable for publishing. So while I am a great and loyal fan of XWiki, I really believe that the jobs of tagging and rating should be provided by tools that are external to, and independent of, any given application, even one so broad and flexible. Alternatively, you could just make each possible rating a special tagname that is hidden from the usual tag views, e.g. rating1, rating2, etc... brain[sic]
-----Original Message----- From: Vincent Massol [mailto:vincent@massol.net] Sent: Tuesday, May 22, 2007 9:17 AM To: xwiki-users@objectweb.org Subject: Re: [xwiki-users] Rating documents
Hi Roopesh,
I'm happy to see you're really getting into XWiki. You've been asking a lot of questions and from the questions I can see you're progressing in your understanding of xwiki. I hope you'll be able to contribute back. This can take several form. Adding documentation would help a lot. Answering emails on the list when you know the answer helps too. Let us know if this is something you could do to help us all.
To answer you question, the easiest would be to create a Rating class and add that object to pages which are rated. You could create a Panel to rate pages. It would add these Rating objets to the page being rated for example.
Thanks -Vincent
On May 22, 2007, at 4:05 PM, roopesh@digitalglue.in wrote:
Hi
In my project there is a necessity of allowing the users to rate documents. Say a rating scale from 1-5 will have to appear in each document (created using a template). Users can rate a document and an overall rating appears after calculating all the ratings. At present I did the whole thing using servlets. But is this the preferred way to do this in xwiki.
Can this be done by making use of xwiki plugin or so, so that it will be useful for others also? Any hints ?
Regards Roopesh
-- You receive this message as a subscriber of the xwiki- users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Hi Vincent, I will only be happy to contribute in some way. Answering to emails is of course some thing I can do. But I don't know whether I am competent enough to document stuff and all. Can you please brief me where all documentation is required so that I can possibly zero in on some of them and put in some effort. Thanks and Regards Roopesh Vincent Massol wrote:
Hi Roopesh,
I'm happy to see you're really getting into XWiki. You've been asking a lot of questions and from the questions I can see you're progressing in your understanding of xwiki. I hope you'll be able to contribute back. This can take several form. Adding documentation would help a lot. Answering emails on the list when you know the answer helps too. Let us know if this is something you could do to help us all.
To answer you question, the easiest would be to create a Rating class and add that object to pages which are rated. You could create a Panel to rate pages. It would add these Rating objets to the page being rated for example.
Thanks -Vincent
On May 22, 2007, at 4:05 PM, roopesh@digitalglue.in wrote:
Hi
In my project there is a necessity of allowing the users to rate documents. Say a rating scale from 1-5 will have to appear in each document (created using a template). Users can rate a document and an overall rating appears after calculating all the ratings. At present I did the whole thing using servlets. But is this the preferred way to do this in xwiki.
Can this be done by making use of xwiki plugin or so, so that it will be useful for others also? Any hints ?
Regards Roopesh
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------ DigitalGlue, India
participants (4)
-
Roopesh P Raj -
roopesh@digitalglue.in -
THOMAS, BRIAN M (ATTSI) -
Vincent Massol