[TYPO3-UG France] Formatage de la date de tt_news incorrect

maxime.maguire maxime.maguire at gmail.com
Fri Jan 9 19:30:51 CET 2009


Salut, voici mon typoscript pour l'affichage des dates sur mon site, je
crois que c'est ce que tu veux :

displayList {
    date_stdWrap.strftime= %A %d %B %Y
    category_stdWrap.value = 0
  }
  displayLatest {
    date_stdWrap.strftime= %A %d %B %Y
    category_stdWrap.value = 0
  }

Bonne journée !

2009/1/9 pcsystemd pcsystemd <pcsystemd at gmail.com>

> Bonjour,
>
> j'ai un souci avec la date pour l'extension tt_news. J'ai mis dans mon
> Setup
> le typoscript pour passer la date en français :
>
> //Dates en français avec tt_news
> plugin.tt_news {
>
> # SINGLE news
> displaySingle {
> age_stdWrap.age = 1
> date_stdWrap.strftime= %e-%b-%Y %H:%M
> time_stdWrap.strftime= %H:%M
> title_stdWrap.wrap = <b>|</b>
> author_stdWrap.case = upper
> author_stdWrap.typolink.parameter.field = author_email
>
> #imageCount=2
> #imageWrapIfAny = <div class="news-single-img">|</div>
>
> email_stdWrap.setContentToCurrent = 1
> email_stdWrap.typolink.parameter.current = 1
> #caption_stdWrap.wrap = |
> caption_stdWrap.wrap = |
> caption_stdWrap.trim=1
> caption_stdWrap.required=1
> }
>
> # LATEST news
> displayLatest {
> date_stdWrap.strftime= %e-%b-%Y
> time_stdWrap.strftime= %H:%M
> caption_stdWrap.if.directReturn = 0
> subheader_stdWrap.crop = 100 | ...
> subheader_stdWrap.ifEmpty.field = bodytext
> #imageCount=1
> #imageWrapIfAny = <div class="news-single-img">|</div>
> }
>
> # LIST news
> displayList {
> age_stdWrap.age = 1
> date_stdWrap.strftime= %e-%b-%Y
> time_stdWrap.strftime= %e-%b-%Y %H:%M
> #caption_stdWrap.wrap = |
> caption_stdWrap.wrap = |
> caption_stdWrap.trim=1
> caption_stdWrap.required=1
> subheader_stdWrap.crop = 300 | ...
> subheader_stdWrap.ifEmpty.field = bodytext
> #imageCount=1
> #imageWrapIfAny =
> }
>
> displayArchive {
> age_stdWrap.age = 1
> date_stdWrap.strftime= %e-%b-%Y
> time_stdWrap.strftime= %e-%b-%Y %H:%M
> caption_stdWrap.wrap = |
> caption_stdWrap.trim=1
> caption_stdWrap.required=1
> subheader_stdWrap.crop = 300 | ...
> subheader_stdWrap.ifEmpty.field = bodytext
> imageCount=1
> imageWrapIfAny =
> }
> }
>
> mais la date s'affiche avec un .of au milieu et de plus le parametre %e
> devrait m'afficher le jour avec un format numérique hors le jour s'affiche
> en lundi, mercredi etc..
>
> exemple :
> lundi 22. of décembre 2008
> Avez vous une idée du problème?
>
> Merci
> --
> Pcsystemd
> _______________________________________________
> TYPO3-france mailing list
> TYPO3-france at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-france
>


More information about the TYPO3-france mailing list