nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
162 stars 68 forks source link

Including indexable files within the XML sitemap via related download entries #1460

Closed mtwalsh closed 2 months ago

mtwalsh commented 2 months ago

Question

We want to include indexable files within a product section's XML sitemap, the problem is the indexable files (assets) are not related to the product entries directly but instead via entries within a downloads section. It's these download entries that have the actual assets related to them. Is there any way to make these visible to SEOmatic when it's constructing the XML sitemap? Or is our only option to adjust the approach such that the assets are directly related to the product entries?

mtwalsh commented 2 months ago

Hmm, I'm wondering if we're better off adjusting the structure here so the assets are directly related to the products.

khalwat commented 2 months ago

That is one way to do it. Another way would be with a custom sitemap: https://nystudio107.com/docs/seomatic/advanced.html#registersitemapsevent

mtwalsh commented 2 months ago

We're going to adjust the structure (so the assets are directly related), thanks for the link though 👍