[TYPO3-german] Typoscript greift bei tt_news nicht

Ingo Preuß preuss at zedat.fu-berlin.de
Thu Feb 25 16:10:15 CET 2010


Hallo,
sehe grad, dass Typoscript im tt_news nicht greift. Bislang war im list
view 'Standard list view (LIST)' eingestellt. Setze ich im Flexforms des
Singleview unter 'What to display:' "Defined by TypoScript" bekomme ich im
Frontend folgende Meldung: ' plugin.tt_news ERROR: No code given'.

Constants:
plugin.tt_news.file.templateFile =
fileadmin/templates/ttnews/tt_news_v3_template.html
plugin.tt_news.pid_list = 25
plugin.tt_news.singlePid = 24
plugin.tt_news.limit = 100
plugin.tt_news.latestLimit = 20
plugin.tt_news.backPid = 1
plugin.tt_news.singleMaxW = 100
plugin.tt_news.singleMaxH = 100
plugin.tt_news.listMaxW = 100
plugin.tt_news.listMaxH = 100
plugin.tt_news.latestLimit = 2

TS:

[...]

# tt_news
################################################################
# tt_News Konfiguration:

plugin.tt_news {
        templateFile = {$plugin.tt_news.file.templateFile}

        pid_list >
        pid_list = {$pid_list}
        singlePid = {$singlePid}
        recursive >
        recursive = 1

        excludeAlreadyDisplayedNews = 0
        forceFirstImageIsPreview = 1

        general_stdWrap.wrap >

        displayList {
                date_stdWrap.strftime = %A, %d.%m.%Y
                age_stdWrap.age = Minuten| Stunden| Tage| Jahr/e

                subheader_stdWrap >
                subheader_stdWrap.wrap = <h4>|</h4>

                content_stdWrap.parseFunc < lib.parseFunc_RTE
                content_stdwrap {
                        append = TEXT
                        append.data = register:newsMoreLink
                       # append.wrap = |
                }

                imageCount = 2
        }

        displayLatest {
                listImageMode = {$plugin.tt_news.latestImageMode}
                subheader_stdWrap.wrap = |
                image.imageLinkWrap = 1
                content_stdWrap.parseFunc < lib.parseFunc_RTE
        }

        displaySingle {
                date_stdWrap.strftime = %A,%d.%m.%Y
                subheader_stdWrap.wrap = <h4>|</h4>
                content_stdWrap.parseFunc < lib.parseFunc_RTE
                backlink_stdWrap.ATagParams = class="backlink"

                listImageMode = {$plugin.tt_news.listImageMode}

        }

        _LOCAL_LANG.de {
                more = weiterlesen ...
                backToList = « zurück zu: %s
                date_stdWrap.strftime= %d.%m.%y
        }

        _LOCAL_LANG.en {
                more = more
                back_to_list = back
        }
}


lib.newsLatest < plugin.tt_news
lib.newsLatest {
      templateFile = {$plugin.tt_news.file.templateFile}
      code >
      code = LATEST
      pid_list >
      pid_list = 25
      singlePid = 24
      catImageMode = 0
      catTextMode = 0
      latestLimit = 2
}

### tt_news end ###


Gruß, Ingo



----------------------

Ingo Preuss
Rigaer Strasse 65
10247 Berlin




More information about the TYPO3-german mailing list