-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Change Request] Add the ability to create an Image XML Sitemap #81
Comments
@marisks I managed to prototype this for our client build and we will probably solve it this way. The way you have structured the XML builders here to be so extensible is brilliant as this allowed me to leverage a lot of the functionality you've created.
I may make this my next blog subject if you're okay with that :) I was thinking the more long term solution would be an interface a page could implement?
|
Looks good and a blog post is welcome. If this is some standard or common feature, we can add it to the sitemaps and make it configurable. I haven't heard about images in sitemaps before. |
Normally our clients are happy with standard XML Sitemaps, this is literally the first time I've had a requirement for it. It should be noted that the following nodes are deprecated as of May 2022 by google:
I find this quite odd because then you have an image without context, unless they are more interested in the version where images are child nodes of the url elements e.g. tied to pages. |
And here is the announcement: |
@marisks Is this something you'd be open to a PR on? Though I suspect that has a greater implementation concern, how it should fit into the existing module. |
We are definitely open for PRs to make the package more flexible and feature-rich. Let's exchange some ideas here about how you might see this as part of the library.. (that would save time spent already on implementing something that needs to be changed later on). |
@GeekInTheNorth Your implementation of generator looks good. A question is if it should be a default one and should replace the current generator or if it should be an additional generator. And then how it would work with other generators - commerce one for example. |
You could make it so you have interfaces for both Image Sitemap enabled content and Video Sitemap enabled content. Your standard and commerce builders could then Consume those common properties. Then it would be up to the individual implementation to decide whether it wants to provide that data or not. The challenge would be to decide whether you need the additional namespaces or not. But then maybe that could be additional conditions on the Sitemap configuration? E.g. You choose standard or commerce etc, then tick "include images" and/or "include videos" There's a very definite product decision to be made either way. And maybe that decision is to do nothing or query the community to see how much of a real demand there is. Because if it's a one off, then that build can override the functionality itself. |
thanks @GeekInTheNorth for some insights/ideas.. @marisks it could be also something between the lines how I refactored Google ProductFeed - with "production pipeline" consisting of extractors, enrichers, transformer and what not. not necessary to be that complex as Google Feed (it had it's own complexity and performance penalty to extract Commerce data more than once for different feeds).. but just as an idea that the whole sitemap generation process is transparent, flexible and extendable to suit implementing projects. more details on the refactoring - https://blog.tech-fellow.net/2022/04/21/googleproductfeed-for-optimizely-reloaded/ |
I just looked more at what is needed, and the best solution would be to include image and video element generation as base functionality.
|
We are using the Geta Sitemaps module on a number of clients. One has recently requested the addition of an image xml sitemap.
Based on: https://www.holisticseo.digital/technical-seo/image-sitemap/
An Image only sitemap may look like this:
An Images within a regular sitemap may look like this:
Do you have any plans to expand your functionality into including an Image Sitemap? are you open to collaborations if this is not on your roadmap?
The text was updated successfully, but these errors were encountered: