Custom Search Help #4915
Replies: 3 comments 7 replies
-
Sorry I don't understand. You HAVE the data in Statamic, so what do you need the external bit for? |
Beta Was this translation helpful? Give feedback.
-
@edalzell Thanks for getting back. I believe that supercontrol requires you to directly query their API for the available properties and prices information that is returned in XML Format. I only have the data for properties, not if they are available or prices. The data I already have in my statamic site it from this url -> https://api.supercontrol.co.uk/xml/filter3.asp?siteID=46111 To show the properties that are available it needs to use this link -> https://api.supercontrol.co.uk/xml/filter3.asp?siteID=46111&startdate=2021-12-21&numbernights=7&basic_details=1 I'm basically wondering what the 'correct' way in statamic is to: Read the custom URL created by the form (It will have filters) e.g (https://api.supercontrol.co.uk/xml/filter3.asp?siteID=46111&startdate=2021-12-21&numbernights=7&basic_details=1) to parse the results from the above url onto a results page. I hope that clears it up a little more, apologies if not :{. Regards, Jake. |
Beta Was this translation helpful? Give feedback.
-
Ya so you might need to do what I did w/ shopify and make my own Algolia indexer. You could also use some custom search transformers to get the search stuff in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Im pretty new to Statamic but really enjoying my time with it soo far but i'm a little stuck on how best to achieve this.
Im using a solution called supercontrol and this is how they say to get search results:
As a result, when populating your website search results and property pages the information can come directly from your own database. You only need to query the API for the property list and prices. For example: https://api.supercontrol.co.uk/xml/filter3.asp?siteID=46111&startdate=2021-12-21&numbernights=7&basic_details=1
I currently have the properties as a collection using the fantastic YumYum plugin with help from Duncan.
What i'm trying todo is something very akin to this site -> https://luxurycoastal.co.uk/properties?region=10131&startdate=2022-05-13&numbernights=7&datevar=3&sleeps=2 which also uses supercontrol.
Is there a way to connect the results that are shown from this link https://api.supercontrol.co.uk/xml/filter3.asp?siteID=46111&startdate=2021-12-21&numbernights=7&basic_details=1 to display the content from the collection based on different searches.
Apologies if something similar has already been asked.
Any help is greatly appreciated.
Please let me know if I need to describe anything in more detail.
Regards, Jake.
Beta Was this translation helpful? Give feedback.
All reactions