Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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>
}
}
Owner

paulrohrbeck commented May 26, 2014

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