[TYPO3-news] [TYPO3-project-news] tagcloud for tx_news ?
Ralf-Rene Schröder
ralf.rene at online.de
Wed Sep 16 16:23:22 CEST 2015
Am 16.09.2015 um 14:23 schrieb bernd wilke:
> Am 28.01.15 um 13:57 schrieb Georg Ringer:
>>> this standard list shows ALL tags, but how i get a "weighted" List ???
>>
>> this is not that easy or more depends on your site. Anyhow you need to
>> do that yourself by e.g. checking how often a tag is used.
>>
>> Best would be to use a custom extension for that
>
> what about a little Typoscript?
nice solution, it could be standard !!!
sorry that i have forgotten posting my individual solution...
here it is the configuration of the jquery jqcloud script...
page.includeJS.jQCloud = path/scripts/jqcloud-1.0.4.min.js
page.jsInline {
2000 = COA
2000 {
stdWrap.outerWrap (
var word_list = new Array( | );
$(document).ready(function() {
$("#wordcloud").jQCloud(word_list);
});
)
2010 = CONTENT
2010 {
table = tx_news_domain_model_tag
select {
pidInList = 106
join = tx_news_domain_model_news_tag_mm ON
(tx_news_domain_model_news_tag_mm.uid_foreign=tx_news_domain_model_tag.uid)
groupBy = tx_news_domain_model_tag.uid
}
renderObj = COA
renderObj {
10 = TEXT
10.field = title
10.noTrimWrap = |text: "|"|
20 = TEXT
20.numRows.table = tx_news_domain_model_tag
20.numRows.select.pidInList = 106
20.numRows.select.uidInList.field = uid
20.numRows.select.join = tx_news_domain_model_news_tag_mm ON
(tx_news_domain_model_news_tag_mm.uid_foreign=tx_news_domain_model_tag.uid)
20.noTrimWrap = |, weight: ||
30 = TEXT
30.typolink.parameter = 209
30.typolink.returnLast = url
30.typolink.additionalParams.dataWrap =
&tx_news_pi1[overwriteDemand][tags]={field:uid}
#30.typolink.additionalParams.rawUrlEncode = 0
30.typolink.useCacheHash = 1
30.noTrimWrap = |, link: "|"|
wrap = { | }###SPLITTER###
}
stdWrap.split {
token = ###SPLITTER###
cObjNum = 1 |*| 1 |*| 2||3
1 {
current = 1
wrap = |,
}
2 {
current = 1
wrap = |
}
}
}
}
}
--
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format
More information about the TYPO3-project-news
mailing list