-
Notifications
You must be signed in to change notification settings - Fork 13
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
Different feed.xml structure #8
Comments
@jengalas Yes, that is a different structure. And a valid one I suppose, according to https://validator.w3.org/feed/. So I guess, it a different format for Atom 1.0 (old but valid) and should be supported by super-search. I'll try modifying the script to support this format. You are welcome to contribute too :) |
Hi @jengalas Made a patch in 0.0.4 version. Please try the latest library. |
Thanks for the fast response! I've replaced |
Have you passed in the correct required parameters as in the example:
If you have it on some public website, I can check there. |
Sure, check it out here: https://jengalas.github.io/thegourmetmoose/ Thanks for your help! |
@jengalas Please change the init code to this:
|
OK, I've done that. After adjusting the z-index to work with my theme, the search box is showing, and displaying the results' titles when I type into the search box. However, right after the title I see "Invalid Date" and the search result links are trying to go to https://jengalas.github.io/thegourmetmoose/[object%20Object] |
Noticed that your feed uses |
Ahh...I suppose there are some more differences in the format than I initially saw. Will have to take into account all of them. Will take it up. |
I've switched to RSS for now (by adding a feed.xml template) just to get the search working ... but since I can switch back to Atom to help with testing if you'd like; just let me know. Great work, by the way! |
I'm having exactly the same issue here, the search results come up but the links and the dates don't work, is there a way to resolve this? |
@garethjohnsdesign While I fix this in the library itself, you can do a quick fix in the For eg., like @jengalas mentioned she has |
I'm not massively up on these the XML feed and how that works, if I wanted to get the link from this how would I do it? |
I tried putting post.link |
But it doesn't work |
Your's is same as @jengalas's. Replace |
Oh no I meant the link, I don't actually need the date in there so took that out of the JS, post.link doesn't work |
@garethjohnsdesign Your link is actually in the Edit: Also, it would help to know how is your feed xml generated. It might be valid, and I might have to support that also. |
This looks great, but it isn't working for me, I think because the feed generated by my site has a different structure than what your script is looking for.
See: https://jengalas.github.io/thegourmetmoose/feed.xml
Do you have any ideas how to fix this? Will I need to create a different template for the feed?
The text was updated successfully, but these errors were encountered: