Custom Builder for Tagcloud 
|
|
What it does:
This builder creates a Tagcloud coming from an xml structure.
How to use this builder:
Here is a screenshot of the builder at design time:

Input Definitions
| Entry fields | Content |
| Name | Name of the builder |
| Page Location | Page location where tag cloud should be displayed |
| Color of Maximum Value | Hex value of color for maximal value. For example #000000 for black |
| Color of Minimum Value | Hex value of color for minimal value. For example #aaaaaa for light grey |
| Relative minimal Font size | Relative Font size of the minimal value displayed in the cloud. Enter a percent value without the percent sign. |
| Relative maximal Font size | Relative Font size of the maximal value displayed in the cloud. Enter a percent value without the percent sign. |
| Width of displayed cloud | Width of the coud in pixel. For example 200. |
| Heigth of displayed cloud | Approximate heigth of the cloud in pixel. The height itself will be calculatetd with a best effort during generation. |
| Element variable with tags | Variable of the element which holds the tags. For example Variables/myvar/rows/row/tagname. |
| Element variable with weigth | Variable of the element which holds the tags. For example Variables/myvar/rows/row/weigth. |
| Minimal weight to display | Minimal weight a tag should have before it is displayed in percent. for example 40 |
| Action for selected link | Action which should be called when clicking on a link. |
Remarks:
- Element variable with tags needs to be an element and not an attribute.
- Element variable with weigth needs to be sibling of the Tag variable.
- Element variable with tags / with weigth : Here the variable needs to be entered without the ${ in front and } at the end. You can enter a indirect value here. but the result needs to be a name of a variable which can be found in the webApp. for example you can enter Variables/myvar/rows/row/${columnname}. In this case case columnname should be a string variable which holds the name of the column.
- Action needs to be set. Can be an empty action wich points back to the page.
Attached you find the builder itself and a TagCloud widget which uses the builder.
|
|
|
|
| Version 4 |
May 19, 2010 |
12:50:29 PM |
by Jonathan Booth  |
|
|