Tags cloud

  • Thread starter Thread starter Andrej Tozon
  • Start date Start date
A

Andrej Tozon

Hi Sharon,
I take it you're developing ASP.NET application. The best way to do this
is by using CSS classes, defining different font sizes. Then you have to
assign the appropriate CSS class to each tag you're displaying.

Andrej
 
Hi all,
I need to implement tags cloud.
I get a collection of tags that have tag text and the number of times this
tag is been used:
[Movies], 52
[Dogs], 43
[Music], 52
And so on...
How can i attach a font size to each tag?
Any ideas or links.
Thanks,
Sharon.
 
Hi,

A little more details will help, how r u going to display this? in a web
page? in a windows list, ?
 
It's going to be displayed in a web page,
but what i'm interested in, is the algorithm that sorts and groups the tags.

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

A little more details will help, how r u going to display this? in a web
page? in a windows list, ?


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Sharon said:
Hi all,
I need to implement tags cloud.
I get a collection of tags that have tag text and the number of times
this tag is been used:
[Movies], 52
[Dogs], 43
[Music], 52
And so on...
How can i attach a font size to each tag?
Any ideas or links.
Thanks,
Sharon.
 
Thats a good idea Andrej,
but how do i sort and group the tags to css classes?

Andrej Tozon said:
Hi Sharon,
I take it you're developing ASP.NET application. The best way to do
this is by using CSS classes, defining different font sizes. Then you have
to assign the appropriate CSS class to each tag you're displaying.

Andrej

Sharon said:
Hi all,
I need to implement tags cloud.
I get a collection of tags that have tag text and the number of times
this tag is been used:
[Movies], 52
[Dogs], 43
[Music], 52
And so on...
How can i attach a font size to each tag?
Any ideas or links.
Thanks,
Sharon.
 
Hi,

How you want to sort & group the tags?
Where you are getting the data from?


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Sharon said:
It's going to be displayed in a web page,
but what i'm interested in, is the algorithm that sorts and groups the
tags.

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

A little more details will help, how r u going to display this? in a web
page? in a windows list, ?


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Sharon said:
Hi all,
I need to implement tags cloud.
I get a collection of tags that have tag text and the number of times
this tag is been used:
[Movies], 52
[Dogs], 43
[Music], 52
And so on...
How can i attach a font size to each tag?
Any ideas or links.
Thanks,
Sharon.
 
You probably want to sort the tags by the tag usage count first:

[Books], 77
[Animals], 61
[Movies], 52
[Music], 52
[Dogs], 43
[Cats], 12

Divide this list into the groups by number of tag sizes you want to display:

Large: [Books], 77
[Animals], 61
Normal: [Music], 52
[Movies], 52
Small: [Dogs], 43

[Cats], 12

Then sort the tags alphabeticaly:

[Animals], 61 // Large
[Books], 77 // Large
[Cats], 12 // Small
[Dogs], 43 // Small
[Movies], 52 // Normal
[Music], 52 // Normal

And display them on a web page.

How and where you perform this logic, depends on how and which controls you
plan on using on your page.

Andrej


Sharon said:
Thats a good idea Andrej,
but how do i sort and group the tags to css classes?

Andrej Tozon said:
Hi Sharon,
I take it you're developing ASP.NET application. The best way to do
this is by using CSS classes, defining different font sizes. Then you
have to assign the appropriate CSS class to each tag you're displaying.

Andrej

Sharon said:
Hi all,
I need to implement tags cloud.
I get a collection of tags that have tag text and the number of times
this tag is been used:
[Movies], 52
[Dogs], 43
[Music], 52
And so on...
How can i attach a font size to each tag?
Any ideas or links.
Thanks,
Sharon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top