Go to the extension manager and download + install the following extensions:
danp_libs (It is very important to have this extension installed before installing danp_tagcloud... You are not warned because of a Bug in TER!!!)
danp_tagcloud
Optional danp_extendnews if you want a extrafield in your news (or blogposts) with the name Tags
Insert the plugin on a page of your choice.... and configure it directly in the plugin...
Therefore you have three sections:
General: Here you configure general things, it is important to select the “Use defaults for” selectbox:
News Keywords = generate a tagcloud from news keywords
News Tags = generate Tagcloud from news Tags (danp_extendnews is needed)
Indexed Search = Tagcloud from indexed_search history
Linksetting:
Parameter: You dont have to touch this...the default configuration should be fine but here you can configure the parameter for the taglinks
Linktarget Page: Please choose the page, where a link on the tag should point to... (e.g. a news Search page or the indexed_search page)
Advanced: You only have to touch this, if you dont use a “Use defaults for” configuration. Here you can select the generation-rules for the Tagcloud
Insert the Tagclouds via TypoScript in your Template you can use this TS-Code:
lib.tagcloud<plugin.tx_danptagcloud_pi1
lib.tagcloud { generationMode=fromDBField tagfield=tt_news:keywords parameter=tx_ttnews[swords] linkpid=13 pid_list=newsfolderid
}
Here is an example for having a Tagcloud on the Page and to have Tags for each news displayed:
Install danp_extendnews > Version 1.2: It extends tt_news for some fields like “tags” and “listimage”. It also adds new Markers like ###TAGCLOUD### which you can use in your Newstemplate
Add some Tags to your News/Blogentries
Add a new Page for the Tagsearch
Insert static Template in Maintemplate
Insert Tagcloud
Modify news_template and add Markers
Adjust TypoScript Configuration
to 3) Add a new Page for Tagsearch:
Add new page “blog tag search”
Insert Plugin “News” in Mode “Search”
Insert extensiontemplate on that site and configure the newsserach only to search in the tagfield:
plugin.tt_news.searchFieldList = tx_danpextendnews_tags
Insert a constant blogTagSearchPid in Maintemplate:(constants part):
blogTagSearchPid=<pid to the blog tag serach page>
Test it :-)
to 4) Insert static Template in Maintemplate:
Insert the Static Template “Extnews: Configure Tagclouds” .
This configures:
plugin.tt_news.displaySingle.tagcloud and plugin.tt_news.displayList.tagcloud
This configuration is needed for the Markers ###TAGCLOUD###. You can easily edit the properties (use TS Object Tree):
to 5) Insert Tagcloud:
You have two possiblitys:
Insert the Tagcloud as Plugin on the page and use the preconfiguration for “news->tags”
Insert the tagcloud in you Template using the TS-Code and fill some Marker or TemplaVolia-DS with that.
lib.tagCloud_ttnews< plugin.tx_danptagcloud_pi1
lib.tagCloud_ttnews {generationMode=fromDBField
tagfield=tt_news:tx_danpextendnews_tags
pid_list={$plugin.tt_news.pid_list} parameter=tx_ttnews[swords]
maxtags=30
linkpid={$blogTagSearchPid}sys_language_mode=content_fallback
}
to 6) Modify news_template and add Markers
You can add the Marker ##TAGS### for a simple display of the Tags, or (which is better) you can use ###TAGCLOUD### to display a List of the Tags which are linked to the blogTagSearch page.