Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created August 11, 2015 10:48
Show Gist options
  • Save ABooooo/70b95ffe6acdac3cbf5c to your computer and use it in GitHub Desktop.
Save ABooooo/70b95ffe6acdac3cbf5c to your computer and use it in GitHub Desktop.
add class with content element style
#ts
tt_content {
stdWrap {
innerWrap {
cObject {
default.20.40 = CASE
default.20.40 {
key.field = layout
1 = TEXT
1.value = img-responsive
2 = TEXT
2.value = img-circle
default = TEXT
default.value = default-class
}
}
}
}
image {
20 {
1 {
params.cObject = TEXT
params.cObject {
wrap = class="|"
cObject < tt_content.stdWrap.innerWrap.cObject.default.20.40
}
}
}
}
}
# TSConfig on page
TCEFORM.tt_content {
layout {
altLabels {
1 = Responsive
2 = Circle
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment