Yoast/Yoast-SEO-for-TYPO3

setTitleField does not work

ste101 opened this issue · 0 comments

Using 'Automatic functionality for records' works but not setTitleField does not work.

I used the example from the docu:

\YoastSeoForTypo3\YoastSeo\Utility\RecordUtility::configureForRecord('tx_news_domain_model_news')
     ->setGetParameters([
         ['tx_news_pi1', 'news'],
         ['tx_news_pi1', 'news_preview']
    ])
    ->setSitemapFields(false)
    ->setTitleField('alternative_title')
    ->setFieldsPosition('after:bodytext');

but seo_title still shows up.

Technical info

  • TYPO3 version: 12.4.14
  • Yoast SEO version: 9.0.3