Welcome, guest ( Login )

WikiHome » TagLibV2

TagLibV2

Version 9, changed by guest. 12/12/2006.   Show version history

TagLib Home.

JotSpot tagging library created by Phil Kast and members of the JotSpot developer community. See the project wiki for more details: http://tag-dev.jot.com.

Contents

Examples

Documentation

The library is simple and fast. It supports multiple clouds per page. See TagLibDemoPage for live examples.

There are 3 steps to creating a tag cloud:

1. Include the library:

<jot:include node="TagLib" />

2. Create a tag cloud from an array of tags. E.g.

//create a clould based on the current page's tags
var myCloud = new Tag.Cloud(page.main.tags);

or

var myTagArray = new Array("tag1", "footag", "bartag");
var myCloud = new Tag.Cloud(myTagArray);

3. Display the cloud with options (all together now):

<jot:include node="TagLib" />
<jot:script>
var myTagArray = new Array("tag1", "footag", "bartag");
var myCloud = new Tag.Cloud(myTagArray);
myCloud.display({pivot: 'SimpleTagPivot', idPrefix: 'myCloud', dynamic: 'static', containerClass: 'tagCloud'});
</jot:script>

this displays a cloud that:

  • uses a page called SimpleTagPivot when tags are clicked
  • is surrounded by a DIV with the id myCloud
  • redirects to a new page (SimpleTagPivot) when tags are clicked
  • uses the CSS class called tagCloud (default -- included in TagLibCSS.css?)

The options for display() are:

  • pivot: Pivot page to use for static cloud / no javascript.
  • dynamicPivot: Pivot page to use when popping up a dynamic tag cloud.
  • idPrefix: Prefix for any IDs assigned to the generated HTML
  • containerClass: Set the class of the container div.
  • dynamic: Set the style of the edit box: 'static', 'inplace', 'popup' (defaults to inplace).

Attachments (5)

  File By Size Attached Ver.
 Acomplia - information for consumers and GPs.htm guest 6K 01/31/2008 1 Delete attachment
 Acomplia » Buy Acomplia, Order Acomplia, Purchase Cheap Acomplia-Rimonabant.htm guest 20K 01/31/2008 1 Delete attachment
 Acomplia_ Weight Loss on Technorati.htm guest 20K 01/31/2008 1 Delete attachment
 Buy acomplia , Purchase acomplia online For weight loss treatment ! » Buy acomplia online, purchase acomplia.htm guest 24K 01/31/2008 1 Delete attachment
 Buy Viagra - Buy Cialis - Buy Acomplia - Hope Medical Enterprises.htm guest 18K 01/31/2008 1 Delete attachment