sitemap-plugin icon indicating copy to clipboard operation
sitemap-plugin copied to clipboard

Accept custom providers in the configuration

Open elcuro opened this issue 5 years ago • 1 comments

Allow to enable/disable custom providers in the config sitemap.providers. Only core providers can be enabled/disabled now.

InvalidConfigurationException

Unrecognized option "cms_sections" under "sylius_sitemap.providers". Available options are "products", "static", "taxons".

It will be useful for plugins which works with the sitemap plugin. E.g. https://github.com/BitBagCommerce/SyliusCmsPlugin/blob/master/doc/sitemap.md

elcuro avatar Dec 11 '19 10:12 elcuro

Sounds useful @elcuro, but I doubt if this shouldn't be the responsibility of the other plugin to enable/disable this, or register/unregister it. I'm trying to think of a way to handle this best while keeping configuration sane. Do you have a suggestion and are you able to provide a PR?

stefandoorn avatar Jan 10 '20 11:01 stefandoorn