Login

Cloud Tag template example

Author:
ramdas
Posted:
November 19, 2007
Language:
HTML/template
Version:
Not specified
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. Bootstrap Accordian by Netplay4 5 years, 10 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 10 months ago
  4. Reusable form template with generic view by roldandvg 8 years, 11 months ago
  5. Pagination Django with Boostrap by guilegarcia 9 years, 1 month ago

Comments

Please login first before commenting.