[TYPO3-english] News List element on News Detail page

Syed Mohammad Anees Masudi anees_masudi at hotmail.com
Mon Feb 23 18:20:28 CET 2009



Hi All,

 

I want to configure a news detail page, I want to add another newslist element on the news detail page, but it is saying no news in this list for the list element on detail page, can any one figure out the cause, thanks in advance, here is my Typoscript for news detail template module setup field:

 

plugin.tt_news.displaySingle {

date_stdWrap.strftime= %B %d, %G

time_stdWrap.strftime= %I:%M %p

content_stdWrap.parseFunc < tt_content.text.20.parseFunc

content_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style >

content_stdWrap.parseFunc.allowTags := addToList(object,param,embed)

caption_stdWrap.wrap = <p class="caption"> | </p>

}

# Related News configuration

plugin.tt_news {

related_stdWrap.wrap >

relatedHeader_stdWrap.wrap >

# icon for related news

tmp.5 = IMAGE

tmp.5 {

file = EXT:tt_news/ext_icon.gif

file.width = 11

file.height = 12

wrap = | &nbsp;

}

# end-wrap for the getRelated objects

tmp.20 = TEXT

tmp.20 {

field = datetime

strftime = %d-%m-%y %H:%M

wrap = &nbsp;-&nbsp; |

}

# Build the list of related news:

getRelatedCObject = COA

getRelatedCObject {

# wrap = <dl>|</dl>

# groupBy =

orderBy = datetime desc

10 = CASE

10.key.field = type

# settings for 'normal' related news

10.default = COA

10.default {

wrap = <dd> | </dd>

# 5 < plugin.tt_news.tmp.5

10 = TEXT

10.field = title

10.typolink.parameter < plugin.tt_news.singlePid

#10.typolink.additionalParams.

10.typolink.additionalParams.data = register:newsAddParams

10.typolink.useCacheHash = 1

# 20 < plugin.tt_news.tmp.20

}

# settings for related news, that point to internal pages

10.1 = COA

10.1 {

wrap = <dd> | </dd>

# 5 < plugin.tt_news.tmp.5

# 5.file = EXT:tt_news/res/tt_news_article.gif

10 = TEXT

10.field = title

10.typolink.parameter < plugin.tt_news.singlePid

10.typolink.additionalParams.data = register:newsAddParams

# 20 < plugin.tt_news.tmp.20

}

# settings for related news, that point to external URLs

10.2 = COA

10.2 {

wrap = <dd> | </dd>

5 < plugin.tt_news.tmp.5

5.file = EXT:tt_news/res/tt_news_exturl.gif

10 = TEXT

10.field = title

10.typolink.parameter.field = ext_url

20 < plugin.tt_news.tmp.20

}

}

}

# Extra JS required

#page.includeJS.singleNews = EXT:dam_ttnews/controls.js

page.includeJS.singleNews = fileadmin/template/js/controls.js

page.includeJS.text_size = fileadmin/template/js/articleUtil.js

# page.includeJS.share = fileadmin/template/js/sharethis.js # no longer needed

# Thumbnail & image configuration

includeLibs.displayFileLinks = EXT:tt_news/user_detail_marker_func.php

plugin.tt_news.itemMarkerArrayFunc = user_detail_marker_func

plugin.tt_news.iconPath = template/images/share

plugin.tt_news.imageThumbHeight = 250

plugin.tt_news.imageThumbWidth = 280

plugin.tt_news.imageThumbControlTemplate = fileadmin/template/imageControls.html




 Regards,
Anees Masudi
Web Developer



_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/


More information about the TYPO3-english mailing list