Tag cloud for django-taggit
Project description
This currently provides a tag cloud generator for django-taggit.
Optional settings
- TAGTOOLS_CLOUD_STEPS
How many different sizes of tags for the cloud. Default: 6
- TAGTOOLS_CLOUD_MIN_COUNT
Minimum frequency of a tag before it is included. Default: 1
Usage
There’s a view tagged_object_list if you want to devote an entire page to a tag-cloud. In your url-conf:
tags_dict= {
'queryset_or_model': YourTaggedModel,
'template_name': 'sometemplate.html',
}
urlpatterns = patterns('tagtools.views',
(r'^tag/(?P<tag>[-\w\d]+)/$', 'tagged_object_list', tags_dict),
)
You can generate lists of tags in a view with the function tagtools.get_tagcloud_for_model.
You can set tags for a model with tagtools.set_tags_for_model.
- Version:
0.4.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_tag_tools-0.4.0.tar.gz.
File metadata
- Download URL: django_tag_tools-0.4.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e931d3837d30c344a62a527ba5510ea475a76a20e20ad745b89d0f9ef8faec23
|
|
| MD5 |
8fbe8d52f20e550451006bbdb4aa06fa
|
|
| BLAKE2b-256 |
89a6f634067a1309fb96b4c13a55d42546ae881a50b9f7f7e894b0b5426cc655
|
File details
Details for the file django_tag_tools-0.4.0-py3-none-any.whl.
File metadata
- Download URL: django_tag_tools-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75cc4b213b795fa0dcac06ad9c40cf587931d0ed9a4b23b5c9dbfb5effce2514
|
|
| MD5 |
75d84ed3fb311eebbaa33c35aa46556e
|
|
| BLAKE2b-256 |
b1783cfb7e4a5d7b532c1a98c4a0815f8ee55b4d6c6745d13c1d69678f2998ac
|