Some Handy Yearend Typoscript
I was finishing a site today for a client, and questions arose regarding the impending year change. I was asked how to update the copyright to have the current year. It really wasn't too hard once I dug into it a little... I'm not sure why it isn't just included in the WEC typo3 install that I was using. I also threw in some fun newsfeed stuff:
## This shows how to automatically update the copyright year
lib.copyright = TEXT
lib.copyright.data = date:U
lib.copyright.strftime = %Y
lib.copyright.wrap = © | {$constant.siteName}
####################################
### Put the Latest News in the left column on certain pages
[PIDinRootline = 100,102]
lib.latestNews < plugin.tt_news
lib.latestNews {
code >
code = LATEST
pid_list >
pid_list = 31 # the folder where news are stored
catImageMode = 0
catTextMode = 0
}
lib.leftSide < lib.latestNews
[else] # Put something else in the lib.leftSide
temp.leftSide = TEXT
temp.leftSide.value = Hello
lib.leftSide < temp.leftSide