Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_tag_tools-0.4.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tag_tools-0.4.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for django_tag_tools-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e931d3837d30c344a62a527ba5510ea475a76a20e20ad745b89d0f9ef8faec23
MD5 8fbe8d52f20e550451006bbdb4aa06fa
BLAKE2b-256 89a6f634067a1309fb96b4c13a55d42546ae881a50b9f7f7e894b0b5426cc655

See more details on using hashes here.

File details

Details for the file django_tag_tools-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tag_tools-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75cc4b213b795fa0dcac06ad9c40cf587931d0ed9a4b23b5c9dbfb5effce2514
MD5 75d84ed3fb311eebbaa33c35aa46556e
BLAKE2b-256 b1783cfb7e4a5d7b532c1a98c4a0815f8ee55b4d6c6745d13c1d69678f2998ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page