vaersaagod / seomate

SEO, mate! It's important. That's why SEOMate provides the tools you need to craft all the meta tags, sitemaps and JSON-LD microdata you need - in one highly configurable, open and friendly package - with a super-light footprint.
MIT License
36 stars 8 forks source link

How to add relational fields to field profiles? #25

Closed architchandra closed 7 months ago

architchandra commented 5 years ago

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.

aelvan commented 5 years ago

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

mmikkel commented 7 months ago

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.