Hi there, I have a question about adding functionality to the Toolset View on this page: hidden link
Currently, the data is being displayed from a Toolset Repeating Field Group. But I have been asked by my client to create a way to display the data from a different source, most likely an XML file that will be refreshed with live data frequently.
Is there any way to make a Toolset View display data from a Repeating Field Group AND an external source(XML Feed) at the same time? and sorting the mixed results chronologically by a Date/Time field that both sources would have?
I would be happy to hire a Toolset Developer if the task proves too complicated for me, but if you can let me know if this is at all possible or share any tips I would greatly appreciate it!
Thanks in advance,
- Luigi
Hi Luigi,
Thank you for contacting us and I'd be happy to assist.
The Toolset post view feature is designed to show the data from the WordPress posts which can be segmented into different post types.
To achieve what you're planning, you'll first need to import your external data as WordPress posts and then it can be shown through a post view, just like the other posts.
There are a number of third-party plugins available, which can be used to automatically import the external data through XML, RSS, CSV type files or feeds.
Examples:
https://wordpress.org/plugins/import-xml-feed/
https://wordpress.org/plugins/wp-all-import/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
Hi Waqar~ Thanks for your response!
The only difficulty I have with using a third-party plugin to import the data is that the source will possibly be revised if there is a mistake in the original data, so I would need a solution that can keep track of the source (perhaps using the unique ID each Hazard would have) so it can update the imported data when the source changes. Do you happen to know of any tool that can do this?
I would really love to keep using Toolset for this project, so thank you so much for helping me figure out how!
You're very welcome.
That shouldn't be a problem and for source identification/tracking, you can always save a special custom field value or a custom taxonomy term with imported posts.
This way, you'll always have the ability to segregate the posts, based on their original source.
All such import plugins offer field/taxonomy mapping functionality during the import setup and for even better ideas and recommendations, you can also consult the respective import plugin's support team.