[TYPO3-english] typoscript: replace string/background url if empty

jaco graaff jaco at spacexplorer.co.za
Tue Feb 11 01:12:22 CET 2014


I got the default to work by wrapping it in a COA

It would be great to get the background image from a parent page and 
automatically show it on child-pages to the nth level if they do not have 
their own image instead of just a single default image

---------------------------------------CURRENT Typo3 6.1 
 > -------------------------------------------
backgroundImage = COA
       backgroundImage {
       10 = TEXT
       10.value = <div id="fullSizeBackground"><img
id="fullSizeBackgroundImg" src="

##get the source else default

20 = COA
  20 {
      stdWrap.ifEmpty = fileadmin/backgrounds/abstract/sjared0.jpg
      10 = FILES
      10 {
      references {
                  table = pages
## i don't know if the following works - will have to test...
                  uid.data = leveluid:-1, slide
                  fieldName = media
              }
              renderObj = TEXT
              renderObj {
                #required = 1
                data = file:current:publicUrl
              }
      }
  }

      30 = TEXT
      30.value = "/></div>
  }






------------------------------------------------------------------------------------------------------------------- 



More information about the TYPO3-english mailing list