[TYPO3-german] Multiple Felder aus Datenbank in renderObj

Marcus Schwemer marcus at schwemer.de
Tue Jan 12 23:42:46 CET 2016


Hi,

bei renderObj bist Du nicht auf TEXT angewiesen. Mit COA kannst Du das 
auch mehrere Teile aufteilen.

Mit den stdWrap Eigenschaften solltest Du dann die beliebige Bild URL 
auch an diese Stelle bekommen.

Viele Grüße
Marcus

Am 12.01.16 um 22:53 schrieb Michael Roskosch:
> Jetzt habe ich doch noch ein Problem, ich muss auch noch ein Bildpfad in
> ein CSS-Style schreiben.
> Kann mir da jemand noch einen kleinen Schubs in die richtige Richtung
> geben?
>
> Ich habe die Stelle markiert mit "HIER KOMMT DAS BILD REIN"
>
> lib.menuMain = CONTENT
> lib.menuMain {
>     table = tx_a4ptour_domain_model_tour
>     select {
>         pidInList = 4        where = hidden = 0
>         orderBy = sorting
>     }    renderObj=TEXT
>     renderObj {
>         wrap = <div class="ym-g20 ym-gl"><div class="ym-gbox-left"><div
> class="shaddow">|</div></div></div>
>         value.dataWrap = <span class="rollover-details" ></span><div
> class="menu-images-header"><h3>{field:name}</h3></div><div
> class="menu-images-body" style="background-image: url('HIER KOMMT DAS
> BILD REIN')"><div
> class="menu-images-footer">{field:schlagworte}</div></div>
>         typolink.useCacheHash = 1
>         typolink.parameter = 3        typolink.additionalParams.field = uid
>         typolink.additionalParams.wrap =
> &tx_a4ptour_a4ptour[tour]=|&tx_a4ptour_a4ptour[action]=show&tx_a4ptour_a4ptour[controller]=Tour
>
>     }
> }

-- 
Marcus Schwemer
marcus at schwemer.de
http://typo3worx.eu/


More information about the TYPO3-german mailing list