Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Other TYPO3 Extensions > tt_news / latest in a single view
Total Posts: 5 - Pages (1): [1]
Author: Manfred Hungerland
Posted: Apr 17 2008 - 12:43 PM
Subject: tt_news / latest in a single view
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
Author: Jeff Segars
Posted: Apr 21 2008 - 12:29 AM
Subject: re: tt_news / latest in a single view
Manfred,
Are you using one of the WEC TemplaVoila templates or a custom template? The Typoscript above is specific to the marker-based templates described in Modern Template Building and would need to be adjusted for usage within TemplaVoila.

Thanks,
jeff
Author: Manfred Hungerland
Posted: Apr 21 2008 - 01:26 PM
Subject: re: tt_news / latest in a single view
Hi Jeff

Are you using one of the WEC TemplaVoila templates or a custom template?

I use a customized WEC-Template.


The Typoscript above is specific to the marker-based templates described in Modern Template Building and would need to be adjusted for usage within TemplaVoila.

I found this on some newsgroup or so..

Is there a HowTo?

Manfred
Author: Jeff Segars
Posted: Apr 21 2008 - 02:21 PM
Subject: re: tt_news / latest in a single view
Manfred,
I'd suggest checking out the "Content Element From Typoscript" extension at http://typo3.org/extensions/repository/view/tscobj/0.1.1/rating/. This allows you to take any Typoscript and place it as a content element within TemplaVoila.

Based on what you pasted above, I'd try this Typoscript...
CODE:

# hide the "no news id" message
plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg = &nbsp;

# set the tt_news singlePid to the current page
plugin.tt_news.singlePid = 119

latestNews = CONTENT
latestNews {
  table = tt_news
  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
}


You can then reference latestNews from the extension's plugin in order to show the latest article.

Thanks,
Jeff
Author: Manfred Hungerland
Posted: Apr 21 2008 - 02:42 PM
Subject: re: tt_news / latest in a single view
Thank you Jeff.

Manfred
Total Posts: 5 - Pages (1): [1]
You must login to post a message to this conference.