[TYPO3-english] PAGE in COA_INT?

Jacco van der Post jacco at id-internetservices.com
Wed May 14 17:03:27 CEST 2014


Hi!

Is seems not possible to put a PAGE object in a COA_INT?

I am trying to create dynamic CSS for a random background image to get 
rid of inline CSS. If I do this without COA_INT it works, but it gets 
cached in the browser (unless hard refresh).

When putting the bgCss in a COA_INT it doesn't work.


#bgCss = COA_INT
#bgCss.10 = PAGE
#bgCss.10 {

bgCss = PAGE
bgCss {
     typeNum = 22
     config {
     additionalHeaders = Content-type: text/css
     disableAllHeaderCode = 1
     }
     stdWrap.required = 1
     stdWrap.wrap = |
     10 = TEXT
     10.value (
     body {
     )
     20 = IMG_RESOURCE
     20 {
         file.import.filelist  = 
fileadmin/user_upload/Achtergrond_afbeeldingen/ | jpg,jpeg,gif,png | 
name | | 1
         file.import.listNum = rand
         stdWrap.wrap = background-image: url('/|');}
     }
}

page.headerData.10 = COA_INT
page.headerData.10.10 = TEXT
page.headerData.10.10.dataWrap = <link rel="stylesheet" type="text/css" 
href="index.php?id={field:uid}&type=22" />|

-- 
Kind Regards

Jacco van der Post


More information about the TYPO3-english mailing list