cancel
Showing results for 
Search instead for 
Did you mean: 

web 2.0 style tagging

aznk
Champ in-the-making
Champ in-the-making
Hi,

I've been using the TaggingSample to add a tagging aspect. I can perform advanced search on tags by modifying xml file.
Now I would like to add a tag cloud like http://del.icio.us/tag/ or http://www.flickr.com/photos/tags/
What's the best way to do this ? By using one of those APIS :http://del.icio.us/help/api/
or doing it hand-made in html by modifying jsp pages ?
And how do we retrieve all stored tags to put them as attributes in html code ?

Thanks.
7 REPLIES 7

gavinc
Champ in-the-making
Champ in-the-making
You would have to write a custom JSF component that performs the relevant queries to obtain all the tag values used and produce a count of each one.

You'd then have to manually generate the tag cloud or use an open source library providing this functionality and incorporate into the component.

This component could then be placed on any page you wish.

nico
Champ in-the-making
Champ in-the-making
Hi,

I tried to do this myself too using a code I made in an other ECM system.
My problem is : how do I count all tag use ?
In sql I would to something using count + group by, but how do I do that with Lucene ?

BTW: will cql support "group by," "distinct", "count" etc… ?

Thanx,
Nico

aznk
Champ in-the-making
Champ in-the-making
Hi,
Thanks for your answer.
In fact I'm completely new to JSF and have no idea of how it works.
Would it be possible to give me some hints/documentation of how to get started with this JSF component and queries (we shoud use Lucene?) ?
I only saw this on component library but I have no clear idea of how it works : http://wiki.alfresco.com/wiki/Component_Library
Thanx.

aznk
Champ in-the-making
Champ in-the-making
how do we retrieve tags with lucene queries ? I've defined tags as a custom aspect.

gavinc
Champ in-the-making
Champ in-the-making
Using the TaggingSample simply adds the "tag:tags" property to the node in question.

The Search guide on the wiki should give you all the information you need to search on text properties: http://wiki.alfresco.com/wiki/Search

You'll need to do have something like @tag\:tags:"some-text" in your query string.

aznk
Champ in-the-making
Champ in-the-making
In the wiki I found out how to retrieve all nodes that have this aspect, but in fact I need to retrieve all values of these nodes, that is to say all tags values.
How can I do that ?

aznk
Champ in-the-making
Champ in-the-making
What's the best way to query values result ?
I would have to query for all tags values, group them by similar tags and make a count of them. This would be easy to do using sql with group by and count. How can we do that in alfresco ? I was the cql language but I'm not sure it is supported.
I could do it manually by iterating over all values but it would have performance issues…