Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement Tag Cloud Feature

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am trying to implement this tag Cloud Feature for one of my project .
For example see this web site http://www.simb.net/tag/Blogging/ (On the Right side of this Page) On to The Tag Section , Font Size is differeing depending upon the Content of the Word Present .

Could anybody please let me know ,as how to implement such kind of Feature ??

Thanks in advance .

 
Sunny Bhandari
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks something very tricky to me.

1) Need access to all the content/blog posts
2) Order words in the number times they appear.
3) Pick up first 15-20 words/tags and create a link which will filter out all posts using that word

I would also like to see more inputs on this..
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't, I'd find an existing one and reuse it.
 
Sunny Bhandari
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David O'Meara wrote:I wouldn't, I'd find an existing one and reuse it.


What the guy here is looking to implement it as a project!!
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to say that I don't think that this would be particularly challenging, but it would be a good code exercise to do as it has some interesting parts.

1) Query the database to get the top x results with the most tags.
2) Output these tags with a link to your search page adding the tag as a search parameter.
3) Generate a size for each based on the number of results it has (more results has bigger) and probably with a min and max size.
4) Add the size as an inline style (which is what the do in that code).

Of course you can always look for an existing one and it will save you all the effort, but where is the fun in that

Sean
 
Sunny Bhandari
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is about the unique ideas that you can generate.

There are no rules to implementationa and unique features you can provide.

Start working and build up the basic code and then add more features to good marks if this is a college project or good increment if office project...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic