Tag cloud for django-taggit.
Project description
=========
Tag tools
=========
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.2.0
Tag tools
=========
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.2.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
File details
Details for the file django-tag-tools-0.2.0.tar.gz
.
File metadata
- Download URL: django-tag-tools-0.2.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f09e43a2fd91128095cc8ee8d620a0c65a8a8b496f7c0ec722871f83871aeff |
|
MD5 | e3f3fabee8f458c417445a2e51a723ed |
|
BLAKE2b-256 | bc5aed3e8dc269fb2c44d271d7bfe8b8a5934046d69f00a8e53a8a621fe95db0 |
File details
Details for the file django_tag_tools-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_tag_tools-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e1509b79b7bbdb513b7d05eafb104dcfb990cebc647364947f5c7a7e413d1b |
|
MD5 | 7178ff59f5ec3ee05f01cc51899aef89 |
|
BLAKE2b-256 | 038766c32996ad88e87f63914d797f75651129e1ea83e8f5774f7a43d525c574 |