Hallo Forum,
ich habe in meiner Typo3 Installation das Plugin topcontent installiert. Diesem Plugin kann man über eine Konstante eine SQL Query mitgeben. Nun habe ich auf einer Seite zwei Inhaltselemente vom Typ Plugin -> topcontent.
Dem einen Inhalteslelement würde ich gerne eine andere Query übergeben als dem anderen. Dazu habe ich im Template unter Constans folgendes probiert:
[globalVar = TSFE:tt_content|field:uid = 9]
plugin.gsttopcontent.sqlAndWhere = AND tt_content.list_type not like 'gst_topcontent_pi1' AND ((UNIX_TIMESTAMP(NOW()) - tt_content.tstamp) < 604800) AND tt_content.tstamp <> tt_content.crdate
[global]
plugin.gsttopcontent.sqlAndWhere = AND tt_content.list_type not like 'gst_topcontent_pi1' AND ((UNIX_TIMESTAMP(NOW()) - tt_content.tstamp) < 604800) AND tt_content.tstamp = tt_content.crdate
Das eine Inhaltselement hat die uid 9 in tt_content. Für dieses Inhaltselement möchte ich die erste Query verwenden. Für das Zweite die unter global aufgeführte. Leider funktioniert das nicht.
Was mache ich falsch? Oder geht so etwas in Constans gar nicht?
Danke für Antworten.
Gruß
bomber