[xwiki-dev] Simple implementation of a tag cloud for xwiki
Thomas Drevon
thomas.drevon at intermedia.uio.no
Thu May 31 13:14:25 CEST 2007
Vincent Massol wrote:
> I didn't see your email below (was it sent to the list?).
Yup!
> The notion of tag is not something known to XWiki core. Currently tags
> are only known at the level of the default wiki so we should probably
> put the tag cloud code there. As your code below requires some logic,
> maybe the best is to use Groovy to replace the Java part. You could then
> have everything located on a single page.
Mmm. Okay, I went with what Guillaume suggested, and made a xar and jar
out of it, and contributed it as a plugin:
http://www.xwiki.org/xwiki/bin/view/Code/TagCloud
But I do see your point about eliminating the java-side of this. The
logic isn't that hard to implement as a groovy script or velocity macro,
I guess.
> The next question is: a Panel or a Page?
>
> I'm tempted to say both. I think we should include the tag cloud in the
> Main.Tags page and we could provide a Panel too.
>
> WDYT?
Well, if it were only a page (or a "snippet"?) it might be easier for
people to include it wherever they want, including in panels? But you
guys more familiar with the level of expertise and mode of use amongst
the xwiki masses, so I leave this for you to decide :-)
Also, I agree with Sergiu that it would be better if the font size would
be calculated relatively to the number of ocurrences. Good thinking!
> I have created a jira issue for this:
> http://jira.xwiki.org/jira/browse/XWIKI-1311
I just did an update there.
> Would you be interested in working on this and finishing this?
Sure!
> If so, could you please attach the result to that JIRA issue for
> inclusion in SVN?
I'm not sure I understood this. Do you want me to commit stuff to svn,
or attach stuff to the JIRA issue?
Thanks for the enthusiasm on this! I have a couple of thoughts on how
tags currently behave in xwiki, but I'll try to write a separate email
on that subject a bit later.
cheers :-)
Thomas Drevon
More information about the devs
mailing list