How do i skip controller and action for custom extension in typo3


This is really necessary to remove extra parameter for SEO purpose

Following script will help you more. you need to set this typoscript in your setup file

config.tx_jsfaq.features.skipDefaultArguments = 1
plugin.tx_jsfaq.features.skipDefaultArguments = 1

Note : tx_jsfaq

This is the extension name. you have to use your extension name

After applying this controller and action will be removed from url

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

Advertisements

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