Skip to content

Instantly share code, notes, and snippets.

@paulrohrbeck
Created May 26, 2014 15:40
Show Gist options
  • Save paulrohrbeck/d2d5862ac9f398560f21 to your computer and use it in GitHub Desktop.
Save paulrohrbeck/d2d5862ac9f398560f21 to your computer and use it in GitHub Desktop.
TYPO3: show list of headlines of a page
### Sitebar ###
marks.sitebar = COA
marks.sitebar {
10 = CONTENT
10 {
table = tt_content
select.where = colPos = 0
select.languageField = sys_language_uid
renderObj = COA
renderObj {
10 = TEXT
10.field = header
10.wrap = <li>|</li>
10.typolink {
parameter.data = TSFE:id
section.field = uid
}
}
stdWrap.required = 1
stdWrap.wrap = <div><ul>|</ul></div>
}
}
@paulrohrbeck
Copy link
Author

Add this if you only want to show it when there's more than one headline:

stdWrap.if {
value = 1
isGreaterThan.numRows {
table = tt_content
select {
pidInList = this
where = colPos=0
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment