TagCloud
Tags: snippet, links, words
Submitted: Jan 3, 2010
Released: Jan 4, 2010
Downloads: 64
License: GPLv3
TagCloud 1.1.2-beta1
Works with the following Version(s): 0.9.5 | 0.9.6 | 0.9.6.1 | 0.9.6.2 | 0.9.6.3 | Evolution-1.0.0 | Evolution-1.0.1 | Evolution-1.0.2
Some say they are useless, some say they are evil, but why not make them usable with MODx?
A tag cloud is a list of tags that are linked to an overview or to the search (like in this case). This gives a visitor a quick overview of what your site is all about. The words (tags) are counted and weighted - the more they occur in the content, the bigger the link is displayed.
There are two ways to achieve that:
1. For every document you publish, you define some tags (like "modx, css, ajax, cms"). These tags are then counted and weighted.
2. Automatically: All words are counted and weighted (with the possibility to filter out common words).
- New stopwords list filter (italian, english and french; default: english)
I chose the second, because the first one seems imho to be a "self fulfilling prophecy", because your tagging will never be neutral and you will influence the cloud by adding tags to your documents that don't match that much - just to get the words in there which you like.
Mod note: If you want the first type, see TvTagCloud
Each word links to the search facility.
Download
- tagcloud_1.1.2.zip (64 downloads)
Description
Some say they are useless, some say they are evil, but why not make them usable with MODx?
A tag cloud is a list of tags that are linked to an overview or to the search (like in this case). This gives a visitor a quick overview of what your site is all about. The words (tags) are counted and weighted - the more they occur in the content, the bigger the link is displayed.
There are two ways to achieve that:
1. For every document you publish, you define some tags (like "modx, css, ajax, cms"). These tags are then counted and weighted.
2. Automatically: All words are counted and weighted (with the possibility to filter out common words).
I chose the second, because the first one seems imho to be a "self fulfilling prophecy", because your tagging will never be neutral and you will influence the cloud by adding tags to your documents that don't match that much - just to get the words in there which you like.
Mod note: If you want the first type, see TvTagCloud
Each word links to the search facility.
Instructions
Upload the contents of the attached zip file to assets/snippets folder of your website and copy and paste tagcloud 1.1.2.txt into a new snippet.
Sub-Packages
Votes: 43
Tags:
Submitted: Jul 21, 2006
Released: Jul 21, 2006
Downloads: 1321
License: Public Domain
Package Website
TagCloudInc
This "Extra" creates a TagCloud using a predefined list of words. It does not use categories nor does it parse all text contained in the site to find out which words to use, but uses a list for creating the cloud and weights them when creating the cloud.
Previous Releases
1.1.1-stable
Votes: 2
Tags: snippet, links, words
Submitted: Nov 19, 2009
Released: Nov 20, 2009
Downloads: 87
License: GPLv3
TagCloud 1.1.1-stable
Works with the following Version(s): 0.9.6 | 0.9.6.1 | 0.9.6.2 | 0.9.6.3 | Evolution-1.0.0 | Evolution-1.0.1 | Evolution-1.0.2
Added compatibility to AjaxSearch instead FlexSearchForm
Download
- tagcloud 1.1.1.txt (87 downloads)
Description
Some say they are useless, some say they are evil, but why not make them usable with MODx?
A tag cloud is a list of tags that are linked to an overview or to the search (like in this case). This gives a visitor a quick overview of what your site is all about. The words (tags) are counted and weighted - the more they occur in the content, the bigger the link is displayed.
There are two ways to achieve that:
1. For every document you publish, you define some tags (like "modx, css, ajax, cms"). These tags are then counted and weighted.
2. Automatically: All words are counted and weighted (with the possibility to filter out common words).
I chose the second, because the first one seems imho to be a "self fulfilling prophecy", because your tagging will never be neutral and you will influence the cloud by adding tags to your documents that don't match that much - just to get the words in there which you like.
Mod note: If you want the first type, see TvTagCloud
Each word links to the search facility.
Instructions
1.1
Votes: 43
Tags: snippet, links, words
Submitted: Jul 17, 2006
Released: Jul 17, 2006
Downloads: 2028
License: Other
Package Website
TagCloud 1.1
Works with the following Version(s): 0.9.0 | 0.9.1 | 0.9.2 | 0.9.2.1
Displays a tag cloud based on the words in documents.
Download
- repo-751.txt (2028 downloads)
Description
Some say they are useless, some say they are evil, but why not make them usable with MODx?
A tag cloud is a list of tags that are linked to an overview or to the search (like in this case). This gives a visitor a quick overview of what your site is all about. The words (tags) are counted and weighted - the more they occur in the content, the bigger the link is displayed.
There are two ways to achieve that:
1. For every document you publish, you define some tags (like "modx, css, ajax, cms"). These tags are then counted and weighted.
2. Automatically: All words are counted and weighted (with the possibility to filter out common words).
I chose the second, because the first one seems imho to be a "self fulfilling prophecy", because your tagging will never be neutral and you will influence the cloud by adding tags to your documents that don't match that much - just to get the words in there which you like.
Mod note: If you want the first type, see TvTagCloud
Each word links to the search facility.
Instructions
Copy the contents of the attached text file into a new snippet called tagcloud.
The snippet is called like this:
tagcloud?parent=`1,3,5,6,7,14`&min=`3`&landing=`12`
parent: The folders where your to be counted documents are in. Note: There is no multilevel yet, so set every folder where docs are in. default: 0
min: Minimum of occurrences for a single word to be displayed 2
landing: The id of your search result page.
At the top of the snippet code, there is an array with the filter words, which shouldn¥t be displayed:
$exclude = array('',' ',' ',' ','and','a','-','ó','ñ','the','ó','to','.',':',',','in'); //exclude list
You can put in any words which shouldn¥t be displayed/linked. This is necessary, because otherwise you have a lot of counts for common words like "in" and "the". Just extend it like you wish.
See the code for more comments and instructions.
The output is put in a div box with class "tagcloud".




It appears that if I only use one parent like this "&parent=`5`" or only one language (in a similar manner) that the whole thing fails. Also, when clicking on a word in the cloud the search does not just search the parent but the whole site. Is there a way to send it to search just the parent?