vaersaagod/seomate

How to add relational fields to field profiles?

Closed this issue · 2 comments

Can't seem to use values from a category or related entry in field profiles right now - had to use a custom template. It would be a good idea to have support for these through the config file itself. Thanks.

Yeah, that is not currently supported, we'll look into adding it at some point.

In SEOMate 3.0 (currently in beta), values from relational fields can be used in field profiles via the new object template support:

'fieldProfiles' => [
    'default' => [
        'title' => ['{categoriesField.one().title}'],
    ],
]

See the updated docs for the fieldProfiles setting for more info.