-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to include custom pages in sitemap #50
Comments
Whoops, wrong issue number... re-opening! |
Love this idea, but I might prefer a |
Adding urls via config sounds like a nice addition. 👍 I still think that an additional event would be good to have, if you need to create dynamic sitemap entries based on data coming from an API. For example, we had a project where we displayed product detail pages from Shopify products in Statamic with a single route. As a developer, I would like to have the possibility to dynamically extend the sitemap :) |
Just thinking on this more with a user... Maybe also a closure based setter, or maybe even a hook (since Jason recently added hooks) to programatically add pages to sitemap in a service provider. |
Problem/Motivation
SeoPro currently includes pages, entries and terms in the sitemap. This does not include routes directly rendering a template.
Proposed solution
Throw an event in
Sitemap::pages()
allowing modules to alter pages rendered in the sitemap. This event could be used to add, modify or remove pages.I will submit a pull request if you think the proposed solution makes sense. :)
The text was updated successfully, but these errors were encountered: