Hello
on my Website i am trying to setup a Page where the latest News Element is shown in a singleview.
The Error Message that shows up is: Keine news_id übergeben. ( no news id submited )
In the Manual from tt_news i found this:
http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/7/$
>> Default news id
I did exactly this:
Insert the following lines to the setup field of an ext-template at the page where you want to display the latest news item in SINGLE view ( from the Manual )
My config look like this:
The Sysfolder with the News is: 110
The Site where the News should show up is: 119
The
# hide the "no news id" message
plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg =
# set the tt_news singlePid to the current page
plugin.tt_news.singlePid = 119
# fill the content of the main-column to a tmp.object
tmp.pagecontent < page.10.subparts.contentarea
# clear the content of the main column
page.10.subparts.contentarea >
# build a new object for this column as content-object-array
page.10.subparts.contentarea = COA
page.10.subparts.contentarea {
10 = CONTENT
10.table = tt_news
10.select {
# insert the pids of all pages from where you want to fetch news.
# the recursive-field has no influence on this selection
pidInList = 110
orderBy = datetime desc
max = 1
}
# insert the object “10.” only if there is no SINGLE news selected
# re-insert the normal pagecontent to the page
20 < tmp.pagecontent
}
Any Ideas?
Shalom
Manfred
on my Website i am trying to setup a Page where the latest News Element is shown in a singleview.
The Error Message that shows up is: Keine news_id übergeben. ( no news id submited )
In the Manual from tt_news i found this:
http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/7/$
>> Default news id
I did exactly this:
Insert the following lines to the setup field of an ext-template at the page where you want to display the latest news item in SINGLE view ( from the Manual )
My config look like this:
The Sysfolder with the News is: 110
The Site where the News should show up is: 119
The
# hide the "no news id" message
plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg =
# set the tt_news singlePid to the current page
plugin.tt_news.singlePid = 119
# fill the content of the main-column to a tmp.object
tmp.pagecontent < page.10.subparts.contentarea
# clear the content of the main column
page.10.subparts.contentarea >
# build a new object for this column as content-object-array
page.10.subparts.contentarea = COA
page.10.subparts.contentarea {
10 = CONTENT
10.table = tt_news
10.select {
# insert the pids of all pages from where you want to fetch news.
# the recursive-field has no influence on this selection
pidInList = 110
orderBy = datetime desc
max = 1
}
# insert the object “10.” only if there is no SINGLE news selected
# re-insert the normal pagecontent to the page
20 < tmp.pagecontent
}
Any Ideas?
Shalom
Manfred



aim