ABooooo
5/28/2015 - 6:42 AM

Get image url from resourses

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" />');">