Zum Inhalt springen

News-Titel auslesen

Erstellt am 9. Juni 2005 · 1 Antwort · letzte Antwort am 10. Juni 2005

Tags: tt_news, Frage

chris_1982 ·

Hallo.
Ich würde gerne den News-Titel auslesen und mit dem Gifbuilder weiterverarbeiten. Mein bisheriger Ansatz funktioniert nicht. Kann mir jemand weiterhelfen.

Gruß,
Chris

     temp.title = COA
     temp.title {
           # einen Inhalt/Content aus der Datenbank generierern
          20 = CONTENT
          20 {
               # Info steckt in der tabelle tt_news
               table = tt_news
               # Datensatz auswählen
               select {
                    # Hier Folder-Page Id eintragen, in der die News abgelegt sind
                    pidInList = 47
                    andWhere {
                       # bei dem die Datensatznummer aus der URL vorkommt
                       data = GPVar : tx_ttnews | tt_news
                       wrap = uid=|
                          }
                      } 
               # Überschrift des News-Eintrags einlesen         
               renderObj = TEXT
               renderObj.field = title
        }
     }

#######  Bildüberschrift  #######
###########################
temp.imgheadline = IMAGE
temp.imgheadline.file = GIFBUILDER
temp.imgheadline.file {
   XY = 550, 80
    10 = TEXT
    10.offset = 0, 40
    10.text.field < temp.title
    10.fontFile = fileadmin/fonts/ABALC.TTF
    10.fontSize = 30
    10.align = left
    10.fontColor = #96D842
    10.antiAlias = 1
}
page.10.subparts.IMGHEADLINE < temp.imgheadline
just2b ·

Hallo,

schau doch bitte dafür mal in die Doku von tt_news, ist so ziemlich eine der besten und ausführlichsten... hab ne alte version davon und selbst da ist noch ein Bsp drin, kann also sein, dass das nicht mehr funktioniert....

### SINGLE news with graphical header
plugin.tt_news {
  displaySingle { 
    title_stdWrap.cObject = IMAGE
    title_stdWrap.cObject.file = GIFBUILDER
    title_stdWrap.cObject.file { 
      XY = [10.w]+2,30
      backColor = #FFFFFF
      10 = TEXT
      10.text.field = title
      10.text.case = upper
      10.fontSize = 18
      10.fontFile = t3lib/fonts/verdana.ttf
      10.fontColor = #769400
      10.offset = 1,20
      10.antiAlias = 0
      10.niceText = 1
    }
  }
}

lg georg