Zum Inhalt springen

Mehrere Tabellen für vge_tagcloud (A Better Tagcloud)?

Erstellt am 17. August 2008 · 1 Antwort · letzte Antwort am 17. August 2008

Tags: Frage

josh ·

Hola,

ich hätte gern mal wieder ein Problem.

Obige Tagcloud-Extension habe ich im Einsatz und mit folgendem TS eingebunden:

 plugin.tx_vgetagcloud_pi1{
       minWeight = 100
       maxWeight = 240
       targetPage = 405
       maxWords = 25
       referenceTable = tt_news
       referenceField = keywords
startPage.data = leveluid: -2

recursive = 2
       tagWrap {
        typolink {
         additionalParams >
         additionalParams.data = field:tag_keyword
          additionalParams.wrap = &tx_ttnews[swords]=|&cHash=0ecc92951a
        }
       }
      }

Demzufolge holt sich das Wölkchen seine Stichworte aus der Tabelle tt_news.
Komme ich jetzt aber auf eine Unterseite, auf der sich keine Nachrichten mehr befinden, bekomme ich folgenden Fehler:

<br />
<b>Warning</b>:  min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>.../typo3conf/ext/vge_tagcloud/pi1/class.tx_vgetagcloud_pi1.php</b> on line <b>667</b><br />
<br />
<b>Warning</b>:  max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>.../typo3conf/ext/vge_tagcloud/pi1/class.tx_vgetagcloud_pi1.php</b> on line <b>668</b><br />

<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at .../typo3conf/ext/vge_tagcloud/pi1/class.tx_vgetagcloud_pi1.php:667) in <b>.../typo3/sysext/cms/tslib/class.tslib_fe.php</b> on line <b>3221</b><br />

Ich würde deshalb in meinem globalen TS-Setup gerne zwei Referenz-Tabellen angeben - tt_news und pages.
Leider blieben meine bisherigen Versuche ohne Erfolg.

Wenn mir jemand mal das Licht anmachen könnte..., wäre ich zutiefst dankbar 😃.

josh ·

Das references-Beispiel aus der Doku (wer lesen kann ist klar im Vorteil #paralyzed# ) hat mich des Rätsels Lösung doch noch näher gebracht.

plugin.tx_vgetagcloud_pi1{  
       minWeight = 100
       maxWeight = 240
       targetPage = 405
       maxWords = 25
       #references = tt_news, pages
       #referenceTable = tt_news
       #referenceTable = pages 
       #referenceField = keywords
      
 references.1.table = tt_news
 references.1.fields = keywords                     
 references.2.table = pages
 references.2.fields = keywords      
     
 
       
startPage.data = leveluid: -2

recursive = 2
       tagWrap {
        typolink {
         additionalParams >
         additionalParams.data = field:tag_keyword
        # additionalParams.wrap = &tx_indexedsearch[sword]=|&cHash=0ecc92951a
          additionalParams.wrap = &tx_ttnews[swords]=|&cHash=0ecc92951a
        }
       }
      }

Fazit: Sitzt,passt, wackelt und hat Luft 🙂