Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setTitleField does not work #572

Open
ste101 opened this issue Apr 22, 2024 · 0 comments
Open

setTitleField does not work #572

ste101 opened this issue Apr 22, 2024 · 0 comments

Comments

@ste101
Copy link

ste101 commented Apr 22, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant