How to display Quality image in tt_new list, latest and single records.


 
If your image is not generate properly while display tt_news list, latest and single records.

then just you have to set below typoscript in your setup file.

plugin.tt_news = USER
plugin.tt_news {
  
  displaySingle{
    image.file.params = -quality 100
  }
  
  displayList{
    image.file.params = -quality 100
  }
  
  displayLatest{
    image.file.params = -quality 100
  }
}

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

 


 

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

How to remove page from pagination in tt_news + typo3


 
For remove “page” title from page Browser of tt_news then you have to use below typoscript.

plugin.tt_news._LOCAL_LANG.default.pi_list_browseresults_page = 

Note* : It will not supported in older version of TYPO

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

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

Hide non-translated elements of tt_news in typo3 + typoscript


 
If you do not want to display non translated tt_news record then you must have to set below typoscript

plugin.tt_news.sys_language_mode = strict

if you want to display default news record then you have to set “content_fallback” as system language overlay
like :

config.sys_language_overlay = content_fallback

it will be better if you use “plugin.tt_news.sys_language_mode = strict”.

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

How to set Customize page title in news detail of typo3 + typoscript


 

How to set Customize page title in news detail of typo3 + typoscript

First of all we have to remove by default title tag.

Below script will remove title tag from source

config.noPageTitle = 2

After hiding of main title we can set news title as page title

Following script will help you for display page title.

This is only work when we have page id 72

[globalVar = TSFE:id = 72]

 newsTitle=COA
 newsTitle {
    5 = RECORDS
    5 {
        source = {GPvar:tx_ttnews|tt_news|tx_ttnews[tt_news]}
        source.insertData = 1
        tables = tt_news
        conf.tt_news >
        conf.tt_news = TEXT
        conf.tt_news.field=title
        wrap = <title>|</title>
    }
 }
page.headerData.5 < newsTitle

we can set condition based upon get parameter

[globalVar = _GET|tx_news_pi1|news > 0]

  config.noPageTitle = 2

  temp.newsTitle = RECORDS
  temp.newsTitle {
    dontCheckPid = 1
      tables = tx_news_domain_model_news
      source.data = GP:tx_news_pi1|news
      source.intval = 1
      conf.tx_news_domain_model_news = TEXT
      conf.tx_news_domain_model_news {
        field = title
        htmlSpecialChars = 1
      }
      wrap = |
  }
  page.headerData.1 >
  page.headerData.1 < temp.newsTitle

[global]

i hope it will work for you. 🙂

it will be good for SEO purpose

If you have any query then feel free to contact me at Jainish Senjaliya