How to automate adding custom XML feed to many sites?
Posted: 25 Jan 2017, 18:15
We have an application that creates an XML feed for the last 5 entries, similar to an RSS feed for a blog. I have the javascript and CSS to create the objects and display the feed as desired. We show the title (with a hyperlink) and an associated image for those 5 entries on only the Home page. Currently I have only done 1 site as a test and placed it into the Content section of the index page. I understand I could also place the code in Settings > Custom (aside from the div container the script uses).
The issue is I need to automate this with a script so I don't have to use the Panel because we need to install the same thing on many sites. I can inject the necessary code into either page.json for 1.index or config.user.json but then I still have to go into the Panel and Save the appropriate page. I can't inject into the appropriate file in _cache\pages because it wouldn't have been created yet anyway.
What do you suggest to make adding this "feed" functionality as quick and easy as possible on lots of sites? Thank you!
The issue is I need to automate this with a script so I don't have to use the Panel because we need to install the same thing on many sites. I can inject the necessary code into either page.json for 1.index or config.user.json but then I still have to go into the Panel and Save the appropriate page. I can't inject into the appropriate file in _cache\pages because it wouldn't have been created yet anyway.
What do you suggest to make adding this "feed" functionality as quick and easy as possible on lots of sites? Thank you!