Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created May 28, 2015 06:42
Show Gist options
  • Save ABooooo/20386159f11e8a0290ec to your computer and use it in GitHub Desktop.
Save ABooooo/20386159f11e8a0290ec to your computer and use it in GitHub Desktop.
Get image url from resourses
lib.headerimage = IMG_RESOURCE
lib.headerimage {
file {
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
// include in html or in style
<f:cObject typoscriptObjectPath="lib.headerimage" />
<div class="jumbotron" style="background-image: url('<f:cObject typoscriptObjectPath="lib.headerimage" />');">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment