Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
V0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

mir_category_cloud

Attention: This plugin is in an early stage. Please be aware, that it may contain bugs. Comments and constructive criticism welcome!

Description

This simple plugin is based on the plugin cbs_category_list from Christophe Beyls, but shows the category list as a weighted list, like a tag cloud.

Categories are displayed using their title for the selected section and sorted alphabetically by title. The font-size is calculated according to the number of associated articles in each category. If no article is found in the section for a category, this category is not shown. On my website you will find an example of how this plugin looks like.

Syntax

<txp:mir_category_cloud />

Attributes

Required

  • none

Optional

  • section: The section to display the related article categories. When ‘default’ (the frontpage) is specified, it shows all categories related to sections which are part of the frontpage. Default is the ‘current section’.
  • sticky: When set to ‘true’, will display the category list of ‘sticky’ articles instead of ‘live’ articles. Default is ‘false’
  • posted: Either ‘past’, ‘future’ or ‘all’. Will only count articles with the specified publication date. ‘all’ is slightly faster because MySQL will be able to cache the query. Default is ‘past’.
  • parent: The parent category name. If specified, will return only the ‘direct’ children categories for this parent. It will not show children of children. Default is any category.
  • label: Label for the top of the list. Default is no label.
  • labeltag: Independent wraptag for label for the top of the list. Default is empty.
  • break: HTML tag to be used for line breaks, without brackets. Default is ‘br’
  • wraptag: HTML tag to be used as the wraptag, without brackets. Default is empty.
  • class: CSS class attribute for wraptag, default is ‘mir_category_cloud’.
  • activeclass: CSS class attribute for the currently active category, if any. By default, the active category is displayed like the other ones.
  • maxfont: Max. font-size in percent. Default: 200%.
  • minfont: Min. font-size in percent. Default: 80%.
Article Request Count:
Initially released:
09. Juli 2007
Posted here:
08 Jul 2007
Article modified:
11 Jul 2007

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

andrea:

worked perfectly, thanks ;)

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern