Skip to content
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

Is it possible to add additional metadata fields to the xml #412

Closed
a85sharm opened this issue Aug 12, 2022 · 5 comments
Closed

Is it possible to add additional metadata fields to the xml #412

a85sharm opened this issue Aug 12, 2022 · 5 comments

Comments

@a85sharm
Copy link

I have been using this gem for some time now, and just wanted to clarify that it isnt possible to add additional metadata to the sitemaps when using this gem right? I am implementing a new search and was hoping to just add in a few fields to my sitemap service but it seems like it isnt supported by this gem. Below is an example of what I am looking to do.
https://docs.coveo.com/en/2656/index-content/index-xml-sitemap-metadata

@kjvarga
Copy link
Owner

kjvarga commented Aug 15, 2022

@a85sharm unfortunately it doesn't support it out of the box, but it's easy to add in a fork of the repo because it's just a couple of changes needed. I could show you an example of that if you'd like. Unfortunately you wouldn't get future updates to the gem, but not a lot is changing these days, and I think the parts that would be modified the changes would merge without conflicts. But depends on your skill level

@a85sharm
Copy link
Author

Hey @kjvarga thanks for the response, i had assumed as much, it would just be changes in the sitemap_url.rb right? and then just updating the gem version number?

@kjvarga
Copy link
Owner

kjvarga commented Aug 15, 2022

No need to mess with the version number, since I don't think this will make it into the mainline. Unless the solution were abstracted to make it easy to support any sitemap extension.

Here's the changes required and an example of the input #413. You can adapt the solution for whatever your particular needs are.

@a85sharm
Copy link
Author

Hey this is working perfectly! I really appreciate the responses and the time you took to build me an example!

@kjvarga
Copy link
Owner

kjvarga commented Aug 16, 2022

Awesome! You’re welcome. You caught me at a good time.

@kjvarga kjvarga closed this as completed Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants