Login

Cloud Tag template example

Author:
ramdas
Posted:
November 19, 2007
Language:
HTML/template
Version:
Not specified
Tags:
tag template-tag tagging clouds cloud
Score:
0 (after 0 ratings)

This is the example of a Django Template that makes use of the clouds example given in the link.

It uses the simple CSS selector font-style which can be expressed as per centage.

Check the code in http://www.djangosnippets.org/snippets/473/

1
2
3
4
5
6
7
8
9
{% load content_tagclouds %}
{% get_latest_cloudtag %}
{% for tag in content_tagclouds|slice:"5" %}


<div style="font-size:{{ tag.cloudsize }}; text-align:left;float:left" > <a href="{{ tag.get_absolute_url }}"> {{ tag.title }}</a>, </div>


{% endfor %}

More like this

  1. Clouds Tag by ramdas 7 years, 9 months ago
  2. django-tagging clouds template tag by skam 8 years, 5 months ago
  3. Clouds Tag by ramdas 7 years, 9 months ago
  4. simple tag-cloud Template Tag by metty 5 years, 11 months ago
  5. Using the {% widthratio %} template tag with CSS to create a bar graph by jcroft 8 years, 6 months ago

Comments

Please login first before commenting.