JiftyX::CloudTags
Version 0.01
use JiftyX::CloudTags; my $cloudtag = JiftyX::CloudTags->new( 'LabelCollection' , text_by => 'name', size_by => 'related_posts', link_format => '?id=%i', ); $cloudtag->render;
in more detail:
my $cloudtag = JiftyX::CloudTags->new( 'LabelCollection' , text_by => 'name', size_by => 'related_posts', link_format => '?id=%i&text=%t&%{custom_column}', min_fontsize => 9, max_fontsize => 72, degree => 6, min_quantity => 0, max_quantity => 100, break_width => 200, # in pixel ); $cloudtag->render;
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.
Arguments:
column name
In string. %i is for id , %t is for text. %{custom_column} for custom column name of your model object.
%i
%t
%{custom_column}
Optional Arguments:
if you've know the quantity boundary , then we dont need to find the boundary by iterating collection items
the minimal font size
the maximal fontsize
font size degree , the quantiy of the model will be multiply by the font size degree
break line if the tag text width overflows
find_quantity method returns (min,max) list. by searching the max,min value in collection object.
COLLECTION is a Jifty::DBI::Collection Object. it will be something like MyApp::Model::LabelCollection object in your application.
the column name of your model.
return the rendered html of cloudtags.
Cornelius, <cornelius.howl at gmail.com>
<cornelius.howl at gmail.com>
Please report any bugs or feature requests to bug-jiftyx-cloudtags at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=JiftyX-CloudTags. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-jiftyx-cloudtags at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc JiftyX::CloudTags
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=JiftyX-CloudTags
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/JiftyX-CloudTags
CPAN Ratings
http://cpanratings.perl.org/d/JiftyX-CloudTags
Search CPAN
http://search.cpan.org/dist/JiftyX-CloudTags/
Copyright 2009 Cornelius, all rights reserved.
This program is released under the following license: GPL
To install JiftyX::CloudTags, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JiftyX::CloudTags
CPAN shell
perl -MCPAN -e shell install JiftyX::CloudTags
For more information on module installation, please visit the detailed CPAN module installation guide.