django-taggit-templatetags icon indicating copy to clipboard operation
django-taggit-templatetags copied to clipboard

Tag Cloud filter?

Open typeshige opened this issue 14 years ago • 2 comments

Hi I'm using the tag cloud functionality and I have a question about restricting the tags in the cloud to selected objects in my model.

I have a 'use' boolean field in my model. I want the cloud to be limited to objects where use=True.

Is this easy to do?

Thanks.

typeshige avatar Feb 28 '11 20:02 typeshige

I think it would be great to add support for queryset as argument of include_tagcloud

ie:

view: links = Link.objects.filter(submitted__gt=days_ago)

template: {% include_tagcloud links %}

sylvainblot avatar Sep 25 '11 10:09 sylvainblot

Though this project seems to be abandoned (and maybe someone should take it over), this feature has been implemented here:

http://stackoverflow.com/questions/10783039/django-taggit-create-tagcloud-from-queryset/14104515#14104515

johanovic avatar Jul 25 '13 10:07 johanovic