Skip to content

Automatic functionality for records not working #550

@ste101

Description

@ste101

I tried to add the Yoast field to an extension via 'automatic functionality' but I'm having some problems.
This is my configuration:

\YoastSeoForTypo3\YoastSeo\Utility\RecordUtility::configureForRecord('tx_sfeventmgt_domain_model_event')
     ->setGetParameters([
         ['tx_sfeventmgt_pieventdetail', 'event'],
     ])
     ->setSitemapFields(false)
     ->setAddDescriptionField('seo_description')
     ->setDescriptionField('seo_description')
     ->setFieldsPosition('after:custom_text');

The field will show up in backend but 'SitemapFields' show up, 'description' also although I set ->setAddDescriptionField('seo_description')
->setDescriptionField('seo_description')
grafik

The biggest problem is that the seo field are not added to the database and so I'm getting errors like
PHP Warning: Undefined array key "og_image" in /html/typo3/typo3conf/ext/yoast_seo/Classes/MetaTag/Generator/OpenGraphGenerator.php line 29
Preview config:

TCEMAIN.preview {
    tx_sfeventmgt_domain_model_event {
        previewPageId = 10
        useCacheHash = 1
        useDefaultLanguageRecord = 0
        fieldToParameterMap {
                uid = tx_sfeventmgt_pieventdetail[event]
        }
        additionalGetParameters {
                tx_sfeventmgt_pieventdetail.controller = Event
                tx_sfeventmgt_pieventdetail.action = detail
        }
    }
}

Technical info

  • TYPO3 version: 12.4.5
  • Yoast SEO version: 9.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions