[TYPO3-german] tt_news listenansicht modifizieren??

Maria Meilinger albica at gmx.de
Mon Apr 18 12:38:30 CEST 2011


Hallo Andreas,

herzlichen Dank für Deine Antwort!

Habe nun den Quellcode 

#display the month, only if it's "new"
# marker: ###GENERIC_MONTH###
plugin.tt_news.genericmarkers.data = datetime
plugin.tt_news.genericmarkers {
   month = COA
   month {
     10 = TEXT
     10 {
       field = generic_datetime
       strftime = %B %Y
       wrap = <h3>|</h3>
       #only display the month, if it is different than the month of the 
last displayed record
       if {
         value.field = generic_datetime
         value.strftime = %B %Y
         equals.data = register:savedmonth
         negate = 1
       }
     }

     #save the current month to the register
     20 = LOAD_REGISTER
     20 {
       savedmonth.field = generic_datetime
       savedmonth.strftime = %B %Y
     }
   }
}


eingesetzt, es wird Januar 1970 ausgegeben...  
 field = generic_datetime was ist das für ein Feld? Ist es schon in der 
Extension integriert?


ich möchte aber anstatt "Januar 1970" das hier ###ARCHIVE_TITLE### 
ausgeben lassen und zwar je nach Monat..

habe es so versucht
 anstatt plugin.tt_news.genericmarkers.data = datetime

temp.tt_news >
temp.tt_news < plugin.tt_news._LOCAL_LANG.de.ARCHIVE_TITLE
plugin.tt_news.genericmarkers.date(mein Marker) < temp.tt_news

keine Auswirkung, der genericmarkers Marker, den ich in meinem tt_news 
Template eingefügt habe, wird einfach nicht ersetzt.

Hättest Du noch eine Idee für mich?
Oder kann mir evtl. noch jemand helfen?

Vielen Dank, liebe Grüße

>             
> -------- Original-Nachricht --------
> Datum: Fri, 15 Apr 2011 12:16:27 +0200
> Von: Andreas Kiessling <kiessling at pluspol.info>
> An: typo3-german at lists.typo3.org
> Betreff: Re: [TYPO3-german] tt_news listenansicht modifizieren??
> 
>             Hi,
> 
> ungetestet weil schon ziemlich lange her:
> 
> #display the month, only if it's "new"
> # marker: ###GENERIC_MONTH###
> plugin.tt_news.genericmarkers.data = datetime
> plugin.tt_news.genericmarkers {
>    month = COA
>    month {
>      10 = TEXT
>      10 {
>        field = generic_datetime
>        strftime = %B %Y
>        wrap = <h3>|</h3>
>        #only display the month, if it is different than the month of the 
> last displayed record
>        if {
>          value.field = generic_datetime
>          value.strftime = %B %Y
>          equals.data = register:savedmonth
>          negate = 1
>        }
>      }
> 
>      #save the current month to the register
>      20 = LOAD_REGISTER
>      20 {
>        savedmonth.field = generic_datetime
>        savedmonth.strftime = %B %Y
>      }
>    }
> }
> 
> Hatte ich mal für tt_news 2.5 mit ttnewsgenericmarkers gebaut.
> Im Template für einen einzelnen Artikel in der Listenansicht kann dann 
> der Marker ###GENERIC_MONTH### verwendet werden.
> 
> Wichtig: die Formatierung muss bei den beiden strftime Angaben gleich 
> sein, sonst klappt der Vergleich für die Anzeigebedingung nicht.
> 
> HTH,
> Andreas
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
        
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl


More information about the TYPO3-german mailing list