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

Use value from matrix field in sitemap criteria (question) #61

Closed bt-mo closed 2 years ago

bt-mo commented 2 years ago

Hi there,

is it possible to use a value from my seoFields matrix block in my sitemap criteria?

I get values from the same matrix field for default meta like this: seoFields:settings.description

Trying the same in my sitemap criteria 'criteria' => [ 'section' => 'singlePages', 'seoFields:settings.removeFromSitemap' => false, ],

throws an unknown property error.

Is there a different syntax or is it not possible?

Thanks!

mmikkel commented 2 years ago

Sorry for the late response.

This is not possible; the 'criteria' array resolves to an element query and nested criteria params are not supported in element queries.

bt-mo commented 2 years ago

Thanks for getting back to me!