This week, I converted my first TYPO3 project from "tt_news" to the new "news" extension by Georg Ringer.
"news" is written from scratch for TYPO3 4.5 and higher using Extbase and Fluid. It is not compatible with the old and not maintained tt_news extension which is used very often.
But I was happy to see an "News Import" filter for the tt_news news articles and categories. In my case only the relation between news and categories got lost. It was not worth digging into this error because I only have 20 news on this system.
The "News Import" in the Web-section is only visible if you activate "Show import module [showImporter]" in the Extension Manager for news.
news is much easier than tt_news. There is only one list view which does everything you need: show a list of multiple images, show only latest, show archived, show only one category. The second view is the detailed view. And the third and last one a view called "Date Menu". Don't know what it is good for.
There are only a few settings I've done in my template:
page.headerData.500 = TEXT
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://www.weltcafe-dresden.de/weltcafe/termine/feed.rss" />
plugin.tx_news.settings.displayDummyIfNoMedia = 0
plugin.tx_news.settings.defaultDetailPid = 61
plugin.tx_news.settings.facebookLocale = de_DE
plugin.tx_news.settings.list.rss.channel.language = de_DE
plugin.tx_news.settings.list.rss.channel.link = http://www.weltcafe-dresden.de/weltcafe/termine/feed.rss
plugin.tx_news.settings.list.rss.channel.title = Weltcafe Termine
To get RSS running, I added in the same template like described in the wiki:
[globalVar = TSFE:type = 9818]
lib.stdheader >
tt_content.stdWrap.innerWrap >
tt_content.stdWrap.wrap >
styles.content.get.stdWrap >
pageNewsRSS = PAGE
pageNewsRSS.typeNum = 9818
pageNewsRSS.10 < styles.content.get
pageNewsRSS.10.select.where = colPos=0 AND list_type = "news_pi1"
pageNewsRSS.10.select {
orderBy = sorting ASC
max = 1
}
config {
# deactivate Standard-Header
disableAllHeaderCode = 1
# no xhtml tags
xhtml_cleaning = none
admPanel = 0
metaCharset = utf-8
# define charset
additionalHeaders = Content-Type:text/xml;charset=utf-8
disablePrefixComment = 1
baseURL = http://www.weltcafe-dresden/
absRefPrefix = http://www.weltcafe-dresden/
}
# set the format
plugin.tx_news.settings.format = xml
[global]
And last, I added the following lines to my realurl config to get the same urls than before. In this way, my visitors get the right article.
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' => array(
'feed.rss' => array(
'keyValues' => array(
'type' => 9818,)
),
),
),'postVarSets' => array (
'_DEFAULT' => array (
'article' => array(
array( 'GETvar' => 'tx_news_pi1[controller]',
'valueMap' => array( 'nieuws' => '', ),
'noMatch' => 'bypass', ),
array( 'GETvar' => 'tx_news_pi1[action]',
'valueMap' => array( 'detail' => '', ),
'noMatch' => 'bypass', ),
array( 'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' => array( 'table' => 'tx_news_domain_model_news',
'id_field' => 'uid', 'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array( 'strtolower' => 1,
'spaceCharacter' => '-', ),
),
),
),
[...]
Your comment