Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Created January 15, 2016 13:19
Show Gist options
  • Save josefglatz/f6d0bd3bd8f6f9b1777a to your computer and use it in GitHub Desktop.
Save josefglatz/f6d0bd3bd8f6f9b1777a to your computer and use it in GitHub Desktop.
TYPO3 ext:news example sidebar latest news with custom caching
pageNewsLatestSidebar = PAGE
pageNewsLatestSidebar {
stdWrap.cache {
key = newsLatestSidebar
tags = tx_news
lifetime = 604800
}
typeNum = 144915
config {
disableAllHeaderCode = 1
admPanel = 0
metaCharset = utf-8
disablePrefixComment = 1
}
10 < tt_content.list.20.news_pi1
10 {
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
categories = 1
categoryConjunction = or
includeSubCategories = 1
limit = 4
detailPid = {$tree.ext.news.defaultDetailPid}
listPid = {$tree.ext.news.defaultListPid}
templateLayout = detailSidebar
disableOverrideDemand = 1
hidePagination = 1
}
}
}
[applicationContext = Production/Staging, Development*]
pageNewsLatestSidebar {
20 = TEXT
20 {
data = date : U
strftime = %H:%M:%S
wrap = <!-- Cache Test: | -->
}
}
[global]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment