More information?

Jun 24, 2010 at 11:32 PM
Would it be possible to provide a little more information regarding how this can be implemented for MOSS 2007 to work with Publishing Pages and other libraries? Do I add the implementation code to the Layout Pages, or is a custom ASPX page required? Is there any control over the rendering beyond tag weight? Can this be implemented as a web part? Thanks in advance.
Jul 22, 2010 at 1:30 PM

Its basically just a method that returns HTML, so you can easily wrap a web part around this. I guess the easiest way is to override the Render-method in a new web part where you could do something like "writer.Write(new TagCloud(...));". You can fill the tag could with any data since it actually only consumes lists of strings and integers.

You have a great deal of control over rendering and layout (via CSS). Below is a list over the rendering settings you can choose from together with their default settings. You'll find all the details in the provided documentation.

TagToolTipFormatString = "Tag count: {0}",
TagUrlFormatString = "/Articles/Search?searchText={0}",
MaxNumberOfTags = 30,
Order = TagCloudOrder.WeightDescending,
RequiredTagWeight = 10,
TagCssClassPrefix = "TagWeightGroup",
WeightClassPartitioning = new ReadOnlyCollection<int>(new []{10, 30, 30, 30}),
HtmlAttributes = new Dictionary<string, object> { { "style", "font-weight:bold;" } }