Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Last active October 14, 2022 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/0aad0d454b227b331ffdaa039dae4975 to your computer and use it in GitHub Desktop.
Save elmarputz/0aad0d454b227b331ffdaa039dae4975 to your computer and use it in GitHub Desktop.
page object TS
# Default PAGE object:
page = PAGE
tmp.content = CONTENT
tmp.content {
# select the content table
table = tt_content
# SQL abfrage
select {
languageField = sys_language_uid
selectFields = header, bodytext
where = colpos = 0
}
renderObj = COA
renderObj {
10 = TEXT
10 {
required = 1
wrap = <h2>|</h2>
field = header
}
20 = TEXT
20 {
required = 1
wrap = <hr /><p>|</p>
field = bodytext
}
}
}
page >
page = PAGE
page.10 < tmp.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment