Category wrapped in tt_content div
# wrap layout, language and tt_content uid around
tt_content.stdWrap.innerWrap.cObject.default.20.stdWrap.noTrimWrap = | class="| layout-{field:layout} language-{field:sys_language_uid} uid-{field:uid}"|
tt_content.stdWrap.innerWrap.cObject.default.20.stdWrap.insertData = 1
# wrap content category around
tt_content.stdWrap.innerWrap.cObject.default.20 = COA
tt_content.stdWrap.innerWrap.cObject.default.20 {
10 = CONTENT
10 {
wrap =|
if.isTrue.field = categories
table = tt_content
select {
uidInList.field = uid
join = sys_category_record_mm ON tt_content.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
orderBy = sys_category.sorting
}
renderObj = TEXT
renderObj {
field = title
noTrimWrap = |cat-| |
stdWrap.case = lower
}
}
20 = TEXT
20 {
value = cat-undefined
if.isFalse.field = categories
}
}