Skip to content

Instantly share code, notes, and snippets.

@MrMooky
Created March 9, 2016 15:13
Show Gist options
  • Save MrMooky/6d9f66788d50d9e8594c to your computer and use it in GitHub Desktop.
Save MrMooky/6d9f66788d50d9e8594c to your computer and use it in GitHub Desktop.
temp.heroSlide = CONTENT
temp.heroSlide {
table = tt_content
select {
pidInList.data = 1
orderBy = sorting
where = colPos = 1
begin = 0
#max = 2
lanuageField = sys_language_uid
}
renderObj = CASE
renderObj {
key.field = CType
textpic = COA
textpic {
10 = TEXT
10.value = <div class="item"><div class="inner"><div class="csc-textpic"><div class="csc-textpic-text">
20 = TEXT
20 {
field = header
required = 1
stdWrap.wrap = <h1>|</h1>
typolink.parameter.field = header_link
}
30 = TEXT
30 {
field = bodytext
parseFunc =< lib.parseFunc_RTE
required = 1
stdWrap.wrap = |
}
40 = FILES
40 {
references {
table = tt_content
uid.data = field:uid
fieldName = image
}
renderObj = COA
renderObj {
10 = IMG_RESOURCE
10.stdWrap.wrap = <img src="|" alt="">
10.file.import.data = file:current:publicUrl
}
stdWrap.wrap = </div><div class="csc-textpic-imagewrap">
stdWrap.wrap.insertData = 1
stdWrap.required = 1
}
50 = TEXT
50.value = </div></div></div></div>
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment