问题
Is there a good Django app out there that can take a list of tags and their frequencies of occurrence and render a tag cloud for them?
回答1:
Django-tagging has helpers for generating tag clouds.
回答2:
A little self-promotion never hurt anybody, right? http://dburke.info/blog/logarithmic-tag-clouds
回答3:
You could try this template tag: http://www.djangosnippets.org/snippets/140/
It works with the django-tagging app http://code.google.com/p/django-tagging/
回答4:
Grab the trunk and it will work for 1.0
回答5:
currently facing the same issue, i found that these links are useful for the tagging template -- so you wouldn't have to type all the template for tagging from scratch:
http://www.napes.co.uk/blog/django-tagging/
http://tylerlesmann.com/2009/mar/09/adding-tagging-django-10-views-and-templates/
hopefully those can help :)
回答6:
This is shameless self promotion, but I just released a very simple template tag helper to do this as I had the same need and didn't wanted to use something heavier such as Django-tagging.
It doesn't render the tag cloud tough, but it makes the necessary calculations and store the result in an attribute that can be easily referenced in HTML/CSS.
https://github.com/niconoe/django-nuages-tag
来源:https://stackoverflow.com/questions/405675/django-tag-cloud-plugin