Last active
October 14, 2022 13:53
-
-
Save elmarputz/0aad0d454b227b331ffdaa039dae4975 to your computer and use it in GitHub Desktop.
page object TS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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