How to set tt_news date language wise in typo3


For set date in tt_news you can use below typoscript

Typoscript conditions:

plugin.tt_news{
  displayLatest{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
  displayList{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
  displaySingle{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
}

Output will be :

Tuesday, 1985-11-19

If you want to localize name of month & days in tt_news then you can use below typoscript

[globalVar = GP:L=1]
  ## set Italy date/time format for tt_news
  plugin.tt_news{
    displayLatest{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
    displayList{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
    displaySingle{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
  }
[global]

Output will be :

Martedì, 1985-11-19

if you use “date_stdWrap.strftime = %e %B %Y” then output will be “19 November 1985”
if you use “date_stdWrap.strftime = %b, %Y then output will be “Nov 1985”

All date format are available here

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

How to set tt_news date in typo3


For set date in tt_news you can use below typoscript

Typoscript conditions:

plugin.tt_news{
  displayLatest{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
  displayList{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
  displaySingle{
    date_stdWrap.strftime = %A, %Y-%m-%d
  }
}

Output will be :

Tuesday, 1985-11-19

If you want to localize name of month & days in tt_news then you can use below typoscript

[globalVar = GP:L=1]
  ## set Italy date/time format for tt_news
  plugin.tt_news{
    displayLatest{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
    displayList{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
    displaySingle{
      date_stdWrap.strftime = %A, %Y-%m-%d
    }
  }
[global]

Output will be :

Martedì, 1985-11-19

if you use “date_stdWrap.strftime = %e %B %Y” then output will be “19 November 1985”
if you use “date_stdWrap.strftime = %b, %Y then output will be “Nov 1985”

All date format are available here

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Indexed search results at multi language sites of TYPO3


 
Indexed search results at multi-language sites in TYPO3

For get search result language wise. you have set below typoscript in “Setup”

[globalVar=GP:L=X]
  plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = X
[end]

X is stand for language id.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya