ok, it fix the problem of the font_size attr but the distribution of
values is too spaced. For example, if I got two tags: politics, linux.
the count for those tags are:
politics: 6
linux: 4
when it generate the font_size attr, for "politics" the size is 6 and
for "linux" the size is 0. It can't
There's a bug:
http://code.google.com/p/django-tagging/issues/detail?id=54
For which there is a patch, which changes in tagging/utils.py:
-thresholds = [math.pow(max_weight - min_weight + 1,
float(i) / float(steps)) \
+thresholds = [min_weight + math.pow(max_weight -
Just control the default font size with a little CSS? (presuming
you're using this for [X]HTML output)
On Dec 11, 8:26 pm, "Lic. José M. Rodriguez Bacallao"
<[EMAIL PROTECTED]> wrote:
> hi folks, I need to generate a tags cloud for a model and I'm using
> the tagging app from google code. I do
hi folks, I need to generate a tags cloud for a model and I'm using
the tagging app from google code. I do something like this:
cloud = Tag.objects.cloud_for_model(NewsEntry, 6)
and generate the html cloud based in the "font_size" attr from the
tags list "cloud". The problem come when I realize
4 matches
Mail list logo