TT_news Einstellungen

TT_news Einstellungen

Ein paar Einstellungen bei tt_news kommen fast bei jedem Projekt zum Einsatz – ich will hier mal diesen Code auch anderen Usern bekanntgeben!\r\n\r\nEs wäre super wenn eure Erfahrungen und euer Code hier auch vorgestellt werden könnte! Für Tipps und Fragen bin ich immer zu haben!\r\n\r\nHier der Code Teil:\r\n\r\n// Damit kann man im Vorspan auch html TAGS mit einbauen\r\nplugin.tt_news.displayList.subheader_stdWrap.stripHtml = 0\r\n\r\n//Hier kann man die Ext. mit seinen Texten versehen\r\nplugin.tt_news._LOCAL_LANG.de {\r\nbackToList = zurück\r\n}\r\nplugin.tt_news.displayList {\r\ndate_stdWrap.strftime= %A %d %B %Y\r\n}\r\n\r\nplugin.tt_news.displaySingle {\r\ndate_stdWrap.strftime= %A %d %B %Y\r\n}\r\n\r\nplugin.tt_news.maxCatImages = 100\r\nplugin.tt_news.useHRDatesSingle = 0\r\nplugin.tt_news.useHRDatesSingleWithoutDay = 0\r\nplugin.tt_news.dontUseBackPid = 1\r\nplugin.tt_news.useHRDates = 0\r\n\r\nHoffe da kommt noch einiges was man immer so braucht!

2 Kommentare

  1. Für tt_news braucht man wahrlich mal eine Script-Sammlung\r\nVielleicht hat hier ja jemand mal ein vollständiges Script\r\n\r\nBis dahin mal ein Beitrag von mir zum Thema Datums-Formate.\r\nDie %-Codes findet man auf folgender Seite:\r\nhttp://www.php.net/manual/en/function.strftime.php\r\n\r\n#Deutsche Zeitformate\r\nplugin.tt_news {\r\n archiveTitleCObject {\r\n 10.strftime = %B – %Y\r\n }\r\n getRelatedCObject {\r\n 20.strftime = %d.%B %Y %H:%M\r\n }\r\n displaySingle {\r\n date_stdWrap.strftime= %d.%B %y\r\n time_stdWrap.strftime= %H:%M\r\n age_stdWrap.age = Minuten | Stunden | Tage | Jahre\r\n }\r\n displayLatest {\r\n date_stdWrap.strftime= %d.%B %y\r\n time_stdWrap.strftime= %H:%M\r\n }\r\n displayList {\r\n date_stdWrap.strftime= %A %d.%B %Y\r\n time_stdWrap.strftime= %d.%B %y %H:%M\r\n }\r\n}

  2. … vielleicht hier „kurz“ 🙂 noch mein bisheriges umfassendes tt_news-TypoScript \r\n\r\n\r\n#————————————————————–\r\n#—– tt_news default-Setup ———————————-\r\n#————————————————————–\r\n\r\n\r\n\r\n###\r\n# This is the default TS-setup for the new tt_news standard template: EXT:tt_news/pi/tt_news_v2_template.html\r\n#\r\n# (see Section Reference in the manual for more options & parameters)\r\n#\r\n# tt_news v 2.x\r\n###\r\n\r\n# Includes the newsLib:\r\nincludeLibs.ts_news = EXT:tt_news/pi/class.tx_ttnews.php\r\n\r\n\r\nplugin.tt_news = USER\r\nplugin.tt_news {\r\n userFunc = tx_ttnews->main_news\r\n \r\n # template file\r\n templateFile = {$plugin.tt_news.file.templateFile}\r\n \r\n # page to get the newsitems from -> „Starting point“\r\n pid_list = {$plugin.tt_news.pid_list}\r\n\r\n # page for the Single view (changed in version 1.6.0 – PIDitemDisplay don’t work anymore)\r\n singlePid = {$plugin.tt_news.singlePid}\r\n\r\n # page id for the archive link in „LATEST“ template\r\n archiveTypoLink.parameter = {$plugin.tt_news.archiveTypoLink.parameter}\r\n\r\n recursive = 2\r\n code.field = select_key\r\n allowCaching = {$plugin.tt_news.allowCaching}\r\n limit = {$plugin.tt_news.limit}\r\n latestLimit = {$plugin.tt_news.latestLimit}\r\n backPid = {$plugin.tt_news.backPid} \r\n\r\n # Search\r\n searchPid =\r\n emptySearchAtStart = 1\r\n\r\n # parse the ‚back to list‘ link through htmlspecialchars()\r\n hscBackLink = 1\r\n\r\n # substitute pagetitle with title of news article\r\n substitutePagetitle = 1\r\n\r\n useHRDates = {$plugin.tt_news.useHRDates}\r\n\r\n \r\n noNewsToListMsg_stdWrap.wrap = |\r\n \r\n versionPreviewMessage_stdWrap.wrap =  |\r\n versionPreviewMessageLinkToOriginal_stdWrap.wrap =  |\r\n \r\n # Rendering of news items. re-use the RTE parseFunc configuration for normal content\r\n general_stdWrap {\r\n parseFunc < tt_content.text.20.parseFunc\r\n }\r\n\r\n # Pagebrowser settings\r\n usePiBasePagebrowser = 0\r\n pageBrowser {\r\n maxPages = 7\r\n showResultCount = 1\r\n showPBrowserText = 0\r\n dontLinkActivePage = 1\r\n tableParams = cellpadding="2" align="center"\r\n\r\n # settings for the extended pageBrowser from TYPO3 3.8.0\r\n showFirstLast = 1\r\n pagefloat = center\r\n showRange = 1\r\n disabledLinkWrap = |\r\n inactiveLinkWrap = |\r\n activeLinkWrap = |\r\n LinksWrap =|\r\n LinksWrap.ATagParams = class=“NewsLink“\r\n showResultsWrap = |\r\n showResultsNumbersWrap = \r\n browseBoxWrap = \r\n browseLinksWrap = |\r\n }\r\n\r\n # Display language labels and/or flags\r\n showLangLabels = 0\r\n showFlags = 0\r\n flagImage {\r\n file.maxW = 16\r\n }\r\n\r\n # Category settings\r\n catImageMode = {$plugin.tt_news.catImageMode}\r\n catTextMode = {$plugin.tt_news.catTextMode}\r\n maxCatImages = 10\r\n maxCatTexts = 10\r\n\r\n # category modes:\r\n # 0 = don’t care about category selections\r\n # 1 = display selected categories\r\n # -1 = display deselected categories\r\n categoryMode = 0\r\n\r\n catImageMaxWidth = 25\r\n catImageMaxHeight = 25\r\n\r\n useSubCategories = {$plugin.tt_news.useSubCategories}\r\n displaySubCategories = {$plugin.tt_news.displaySubCategories}\r\n showRelatedNewsByCategory = {$plugin.tt_news.showRelatedNewsByCategory}\r\n useSPidFromCategory = {$plugin.tt_news.useSPidFromCategory}\r\n\r\n categoryDivider = ,\r\n categoryDivider_stdWrap.noTrimWrap = || |\r\n\r\n # – – – – – – – – – CATMENU settings – – – – – – – – – – – #\r\n\r\n # setting for the category menu (CATMENU)\r\n displayCatMenu {\r\n # catmenu rendermode:\r\n # nestedWraps = make a catmenu with nested wraps\r\n # tree = use TYPO3 class treeview to build the catmenu\r\n mode = tree\r\n catmenu_stdWrap.wrap = |\r\n catmenuHeader_stdWrap.wrap = |\r\n\r\n # 1 = icon from cat record\r\n # 2 = own icons\r\n # 0 = default icon\r\n # -1 = no icon\r\n catmenuIconMode = 0\r\n\r\n # if „catmenuIconPath“ is set and „catmenuIconMode“ is 2 all icons „join“,“joinbottom“ & „line“ are expected in this path\r\n catmenuIconPath =\r\n\r\n # icon for all categories if „catmenuIconMode“ = 2\r\n catmenuIconFile = EXT:tt_news/res/arrow.gif\r\n\r\n # icon size for „catmenuIconMode“ 1 & 2\r\n catmenuIconFile {\r\n width = 18\r\n height = 16\r\n }\r\n\r\n # disables the „root“ icon of the category tree if set\r\n catmenuNoRootIcon = 1\r\n\r\n insertDescrAsTitle = 1\r\n\r\n # userdefined root icon\r\n # catmenuRootIconFile = circle_blue.gif\r\n\r\n # size of the userdefined root icon\r\n catmenuRootIconFile {\r\n width = 18\r\n height = 16\r\n }\r\n\r\n # wraps for active or inactive category links in the tree\r\n catmenuItem_ACT_stdWrap.wrap = |\r\n catmenuItem_NO_stdWrap.wrap = |\r\n\r\n # wraps for each menu level (only in mode „nestedWraps“)\r\n catmenuLevel1_stdWrap.wrap = |\r\n catmenuLevel2_stdWrap.wrap = |\r\n catmenuLevel3_stdWrap.wrap = |\r\n catmenuLevel4_stdWrap.wrap = |\r\n }\r\n\r\n # – – – – – – – – – catRootline settings – – – – – – – – – – – #\r\n catRootline {\r\n showCatRootline = {$plugin.tt_news.showCatRootline}\r\n catRootline_stdWrap.wrap = |\r\n\r\n # if titles are linked the link points to the page which is configured as category shortcut\r\n linkTitles = 1\r\n title_stdWrap.wrap =\r\n divider =  > \r\n }\r\n\r\n # – – – – – – – – – Archive settings – – – – – – – – – – – #\r\n \r\n datetimeDaysToArchive = {$plugin.tt_news.datetimeDaysToArchive}\r\n enableArchiveDate = 1\r\n pageTypoLink.parameter.current = 1\r\n\r\n reverseAMenu = 1\r\n archiveMenuNoEmpty = 1\r\n\r\n # the Condition in the following COA highlights the active Archive month\r\n archiveTitleCObject = COA\r\n archiveTitleCObject {\r\n 10 = TEXT\r\n 10 {\r\n field = start\r\n strftime = %B %Y\r\n wrap = |\r\n if {\r\n value.field = start\r\n equals.data = GPvar:tx_ttnews|pS\r\n }\r\n }\r\n 20 = TEXT\r\n 20 {\r\n field = start\r\n strftime = %B %Y\r\n if {\r\n value.field = start\r\n equals.data = GPvar:tx_ttnews|pS\r\n negate = 1\r\n }\r\n }\r\n }\r\n archiveEmptyMsg_stdWrap.wrap =\r\n searchEmptyMsg_stdWrap.wrap =\r\n noNewsIdMsg_stdWrap.wrap =\r\n \r\n \r\n # – – – – – – – – – news Files: – – – – – – – – – – – #\r\n\r\n newsFiles_stdWrap.wrap = |\r\n newsFilesHeader_stdWrap.wrap = |\r\n newsFiles {\r\n path = uploads/media/\r\n icon = 1\r\n stdWrap.wrap = |\r\n }\r\n\r\n # related news by category\r\n relatedByCategory_stdWrap.wrap = |\r\n relatedByCategoryHeader_stdWrap.wrap = |\r\n # globalwrap 2 is used to wrap the list items\r\n wrap2.wrap = |\r\n \r\n \r\n # – – – – – – – Settings for Related News: – – – – – – – – #\r\n\r\n useBidirectionalRelations = {$plugin.tt_news.useBidirectionalRelations}\r\n usePagesRelations = {$plugin.tt_news.usePagesRelations}\r\n\r\n related_stdWrap.wrap = |\r\n relatedHeader_stdWrap.wrap = |\r\n\r\n # icon for related news\r\n tmp.5 = IMAGE\r\n tmp.5 {\r\n file = EXT:tt_news/ext_icon.gif\r\n file.width = 11\r\n file.height = 12\r\n wrap = |  \r\n }\r\n\r\n # end-wrap for the getRelated objects\r\n tmp.20 = TEXT\r\n tmp.20 {\r\n field = datetime\r\n strftime = %d-%m-%y %H:%M\r\n wrap =  –  | \r\n }\r\n\r\n # Build the list of related news:\r\n getRelatedCObject = COA\r\n getRelatedCObject {\r\n # groupBy =\r\n orderBy = datetime desc\r\n \r\n 10=CASE\r\n 10.key.field=type\r\n # settings for ’normal‘ related news\r\n 10.default=COA\r\n\r\n 10.default {\r\n wrap = | \r\n 5 < plugin.tt_news.tmp.5\r\n 10 = TEXT\r\n 10.field = title\r\n 10.typolink.parameter = {$plugin.tt_news.singlePid}\r\n 10.typolink.additionalParams.data=register:newsAddParams\r\n 10.typolink.useCacheHash = 1\r\n 20 < plugin.tt_news.tmp.20\r\n }\r\n # settings for related news, that point to internal pages\r\n 10.1=COA\r\n 10.1 {\r\n wrap = | \r\n 5 < plugin.tt_news.tmp.5\r\n 5.file=EXT:tt_news/res/tt_news_article.gif\r\n 10 = TEXT\r\n 10.field = title\r\n 10.typolink.parameter.field = page\r\n 20 < plugin.tt_news.tmp.20\r\n }\r\n # settings for related news, that point to external URLs \r\n 10.2=COA\r\n 10.2 {\r\n wrap = | \r\n 5 < plugin.tt_news.tmp.5\r\n 5.file=EXT:tt_news/res/tt_news_exturl.gif\r\n 10 = TEXT\r\n 10.field = title\r\n 10.typolink.parameter.field = ext_url\r\n 20 < plugin.tt_news.tmp.20\r\n }\r\n }\r\n\r\n # pagebrowser for singleview\r\n useMultiPageSingleView = {$plugin.tt_news.useMultiPageSingleView}\r\n maxWordsInSingleView = 0\r\n\r\n\r\n # – – – – – – – – – – – rendering of SINGLE news – – – – – – – – – – – #\r\n\r\n displaySingle {\r\n age_stdWrap.age = 1\r\n textNewsAge_stdWrap.wrap =\r\n date_stdWrap.strftime= %d.%B %y\r\n time_stdWrap.strftime= %H:%M\r\n title_stdWrap.wrap =\r\n subheader_stdWrap.wrap = |\r\n subheader_stdWrap.trim=1\r\n subheader_stdWrap.required=1\r\n author_stdWrap.typolink.parameter.field = author_email\r\n author_stdWrap.wrap = |\r\n preAuthor_stdWrap.noTrimWrap = || |\r\n \r\n addInfo_stdWrap.wrap = | \r\n\r\n links_stdWrap.wrap = |\r\n linksHeader_stdWrap.wrap = |\r\n linksItem_stdWrap.wrap = |\r\n\r\n \r\n imageCount=4\r\n imgAltTextField = imagecaption\r\n imageWrapIfAny = | \r\n\r\n image >\r\n image.stdWrap.cObject = COA\r\n image.stdWrap.cObject {\r\n\r\n 10 = IMAGE\r\n 10.wrap = |\r\n 10.file.import.data = TSFE:lastImageInfo|origFile\r\n \r\n 10.file.maxW = {$plugin.tt_news.singleMaxW}\r\n 10.file.maxH = {$plugin.tt_news.singleMaxH}\r\n 10.imageLinkWrap = 1\r\n 10.imageLinkWrap {\r\n\r\n enable = 1\r\n typolink.parameter.stdWrap.cObject = IMG_RESOURCE\r\n typolink.parameter.stdWrap.cObject {\r\n file.import.data = TSFE:lastImageInfo|origFile\r\n file.maxW = 800\r\n }\r\n\r\n typolink.ATagParams (\r\n onclick=“return hs.expand(this)“\r\n class=“highslide“\r\n )\r\n }\r\n }\r\n \r\n }\r\n\r\n # – – – – – – – – – – – rendering of LATEST news – – – – – – – – – – – #\r\n displayLatest {\r\n age_stdWrap.age = 1\r\n date_stdWrap.strftime= %d.%B %Y\r\n time_stdWrap.strftime= %H:%M\r\n caption_stdWrap.if.directReturn = 0\r\n subheader_stdWrap.stripHtml = 1\r\n subheader_stdWrap.crop = 150 |  … | 1\r\n subheader_stdWrap.ifEmpty.field = bodytext\r\n imageCount=1\r\n imgAltTextField = imagecaption\r\n imageWrapIfAny =\r\n category_stdWrap.wrap = | \r\n categoryItem_stdWrap.wrap =\r\n\r\n linkTitleField = title\r\n linkTitleField.wrap = \r\n linkAltField = short\r\n linkAltField.wrap = \r\n }\r\n displayLatest.image < displaySingle.image\r\n displayLatest.image {\r\n file.maxW = {$plugin.tt_news.latestMaxW}\r\n file.maxH = {$plugin.tt_news.latestMaxH}\r\n imageLinkWrap = 1\r\n wrap = | \r\n #\r\n\r\n stdWrap.spaceAfter = 0\r\n }\r\n displayLatest.imageCount = 2 \r\n \r\n\r\n # – – – – – – – – – – rendering of LIST news – – – – – – – – – – – #\r\n displayList {\r\n age_stdWrap.age = 1\r\n textNewsAge_stdWrap.wrap =\r\n date_stdWrap.strftime= %A %d. of %B %Y\r\n time_stdWrap.strftime= %d/%m/%y %H:%M\r\n \r\n # Don’t display caption in List view\r\n caption_stdWrap.if.directReturn = 0 \r\n\r\n title_stdWrap.wrap =\r\n subheader_stdWrap.stripHtml = 1\r\n subheader_stdWrap.crop = 150 |  … | 1\r\n subheader_stdWrap.ifEmpty.field = bodytext\r\n \r\n \r\n subheader_stdWrap.append = TEXT\r\n #subheader_stdWrap.append.data = register:newsMoreLink\r\n subheader_stdWrap.append.data =\r\n #subheader_stdWrap.append.wrap = |\r\n subheader_stdWrap.append.wrap = \r\n subheader_stdWrap.append.if.isTrue.field = bodytext\r\n \r\n \r\n author_stdWrap.wrap =\r\n preAuthor_stdWrap.noTrimWrap = || |\r\n imageCount=1\r\n imageWrapIfAny = \r\n\r\n category_stdWrap.wrap = | \r\n imgAltTextField = imagecaption\r\n\r\n linkTitleField = title\r\n linkTitleField.wrap = \r\n linkAltField = short\r\n linkAltField.wrap = \r\n }\r\n displayList.image \r\ntt_news = < plugin.tt_news\r\ntt_news.displayCurrentRecord = 1\r\n\r\n\r\n### CVS id ###\r\n# $Id: setup.txt 8605 2008-03-15 20:03:19Z rupertgermann $\r\n\r\n\r\n#……………………………………………………..\r\n#….. List-View: Bildgröße festlegen …………………….\r\n#……………………………………………………..\r\n\r\nplugin.tt_news { \r\n displayList { \r\n image.file.maxH = 311\r\n image.file.maxW = 484\r\n\r\n }\r\n \r\n displayLatest { \r\n image.file.maxH = 96\r\n image.file.maxW = 144\r\n\r\n }\r\n}

Schreiben Sie einen Kommentar http://bags2trade.com/

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.