Skip to content

Instantly share code, notes, and snippets.

@h3nn3s
Created July 16, 2014 05:59
Show Gist options
  • Save h3nn3s/d0c2015ff7fc4a7c438a to your computer and use it in GitHub Desktop.
Save h3nn3s/d0c2015ff7fc4a7c438a to your computer and use it in GitHub Desktop.
TYPO3 Gridelements with Flexform-Image
/*
* TypoScript
*/
# render headline
#tt_content.gridelements_pi1.10 = < lib.stdheader
tt_content.gridelements_pi1.20.10.setup {
1 < lib.gridelements.defaultGridSetup
1 {
columns {
1 < .default
1.wrap = <div class="row"><div class="twelve columns">|</div></div>
}
wrap = <div class="fullscreen">|</div>
wrap.override.stdWrap.cObject = COA
wrap.override.stdWrap.cObject {
10 = TEXT
10.value = <div class="fullscreen has-image" style="background-image: url(/
20 = IMG_RESOURCE
20 {
file.import.data = field:flexform_image
}
30 = TEXT
30.value = );">|</div>
}
wrap.override.if.isTrue.field = flexform_image
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment