Yoast / Yoast-SEO-for-TYPO3

Yoast SEO plugin for TYPO3
Other
51 stars 56 forks source link

setTitleField does not work #572

Open ste101 opened 4 months ago

ste101 commented 4 months ago

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