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

Comments

Please login first before commenting.