Diese Extension wurde von Bernhard Possenig (http://www.mediaposs.com/) gesponsert - Vielen Dank!
Funktionsweise
Viele Seiten benutzen das tolle Feature von TYPO3, in den Seiteneigenschaften ein Bild hochladen zu können, das dann als Headergrafik dient. Pro Seite kann dieses Bild jeweils unterschiedlich sein.
Mit tt_news gibt es nun das Problem, dass alle Detailseiten das idente Bild zeigen und die Extension mpossnewsheader schafft hier Abhilfe!
Das folgende TypoScript erlaubt es in tt_news ein Bild anzugebem, das dann als Header-Bild verwendet wird. Wird kein Bild angegeben, so wird einfach die Headergrafik aus den Seiteneigenschaften verwendet.
Natürlich kann man das ganze noch anpassen - Hoch lebe Typoscript!
Download
Download der Extension
################################################################# ################################ mod ringerge.org ############### # Image from tt_news temp.img = RECORDS temp.img { # only if there is a tt_news record shown if.isTrue.data = GPvar:tx_ttnews|tt_news source.data = GPvar:tx_ttnews|tt_news tables = tt_news conf.tt_news = COA conf.tt_news { # get the Image 10 = IMAGE 10 { file { import = uploads/tx_mpossnewsheader/ import.field = tx_mpossnewsheader_img # listNum 0 = the 1st image import.listNum = 0 # Configure the Image as always #maxW = 230 width = 800 height = 370 } titleText.field = title altText.field = title } } } # Image from the page properties temp.imgPageProperties = IMAGE temp.imgPageProperties{ file.import = uploads/media/ file.import.data = levelmedia:-1, slide file.import.listNum=0 } # Take the right one lib.banner = COA lib.banner { 10 = COA 10 { # if there is an image in the news record if.isTrue.cObject < temp.img 30 < temp.img } 20 = COA 20 { # otherwise take the page prop image if.isFalse.cObject < temp.img 30 < temp.imgPageProperties } } ################################ mod ringerge.org ############### #################################################################
Kein Anrecht auf kostenlosen Support / No right to free support!!
Kein Anrecht auf kostenlosen Support / No right to free support!!
Seite 1 von 1: 1
Das hört sich gut an!
Nach so einem Feature habe ich bereits schon mal gesucht!
Vielen Dank!
Seite 1 von 1: 1