[TYPO3-german] genericmarker Kategorie-ID in tt_News 3

Timo Zimmermann timoz at web.de
Thu Dec 20 16:32:39 CET 2012


Hallo Liste,

ich bekomme das Kategorien-Problem nicht in den Griff. Ständig wird mir nur <div class="cat-"> ausgegeben, aber die Kategorien-Nummer wird nicht ausgegeben.
Ich verwende folgendes TS (hab auch schon statt COA TEXT probiert):

[CODE]
##################################
## tt_news-Einstellungen ##
#############################

plugin.tt_news {
        useSubCategories = 1
        displaySubCategories = 1
        categoryMode=0
        categorySelection=1,2,3
	genericmarkers {
		data = uid
		catid = COA
		catid.10 = TEXT
		catid.10 {
		value = cat-
		wrap = |{register:newsCategoryUid}
		# source.data=
		insertData = 1
		}
		}
	# Bezeichnung des "more"-Links ändern
    	_LOCAL_LANG.de  {
        	more = Mehr erfahren...
    		}
		
	
    	# Länge des Teasertextes anpassen
    	displayList.subheader_stdWrap {
        	crop = 250| ... | 1
        	ifEmpty.field = bodytext
    		}

	getRelatedCObject {
		20.strftime = %d.%m.%Y %H:%M
		}

	displaySingle {
		date_stdWrap.strftime= %d.%m.%y
		time_stdWrap.strftime= %H:%M
		age_stdWrap.age =  Minuten | Stunden | Tage | Jahre
		}

	displayLatest {
		date_stdWrap.strftime= %d.%m.%y
		time_stdWrap.strftime= %H:%M
		}


	displayList {
		# entfernt doppelten More-Link   
		subheader_stdWrap.append >  
		date_stdWrap.strftime= %d. %B %Y
		time_stdWrap.strftime= %d.%m.%y %H:%M
  		}

}

[/CODE]

Ich verwende tt_news in der Version 3.4.0 und habe mir als Design-Template mal das aus der EXT tt_news_template_v2 genommen. Natürlich um den Marker ###GENERIC_CATID### ergänzt in der List-View:

[CODE]

<h3>TEMPLATE_LIST</h3>
<em>This is the template for the list of news in the archive or news page or search.</em>
<br />
<br />
<br />
<br />
<!-- ###TEMPLATE_LIST### begin
  This is the template for the list of news in the archive or news page or search
-->
<div class="news-list-container">
###NEWS_CATEGORY_ROOTLINE###
  
  <!-- ###CONTENT### begin
      This is the part of the template substituted with the list of news: 
  -->
    <!-- ###NEWS### begin
      Template for a single item 
    -->
      <div class="news-list-item">        
        <div class="###GENERIC_CATID###"><h3>
<span class="news-list-date">###NEWS_DATE###</span>
        <!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h3></div><!-- Ende CATID -->
        <!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###-->
       ###NEWS_SUBHEADER###
      ###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
      <div class="news-list-morelink"><!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></div>

<hr class="clearer" /></div>
    <!-- ###NEWS### end-->
  <!-- ###CONTENT###  end -->
  <div class="news-list-browse">###BROWSE_LINKS###</div>
</div>
<!-- ###TEMPLATE_LIST### end -->

[/CODE]

Grüße

Timo

Am 16.12.2012 um 16:56 schrieb Timo Zimmermann <timoz at web.de>:

> Hallo Julian,
> 
> danke für die Hilfe. Ich verwende die List-View. Wie erfahre ich, ob es dort gesetzt wird? Bleibt ja sonst nur noch die Single, oder?
> 
> Grüße
> 
> Timo
> 
> Am 16.12.2012 um 15:29 schrieb Julian Hofmann <typo3lists at webenergy.de>:
> 
>> Hallo Timo.
>> 
>>> vielleicht das DB-Feld newsCategoryUid von der Bezeichnung geändert hat 
>> 
>> "newsCategoryUid" ist kein DB-Feld, sondern ein Register. Dies wird
>> jedoch nicht in jedem View von tt_news gesetzt. Insbesondere im
>> LatestView ist es _nicht_ gesetzt.
>> 
>> 
>> Viele Grüße
>> 	Julian
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> 
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list