/ Published in: TYPO3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
css = PAGE css { typeNum = 22 config { additionalHeaders = Content-type: text/css disableAllHeaderCode = 1 } 10.value ( .content_header_pic { ) 20.data = levelmedia: -1 20.listNum = 0 20.wrap = background: url('uploads/media/|'); 30.value ( border-top: 8px solid #0D337A; height: 105px; width: 100%; } ) isTrue.data = levelmedia: -1 } } [...] page { headerData { 16.dataWrap = <link rel="stylesheet" type="text/css" href="index.php?id={field:uid}&type=22" />| } }
URL: http://typo3.schloebe.de/typoscript/dynamische-css-erzeugen-aus-mediafeld-daten/