GetSimple Support Forum

Full Version: TMDB Functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have put together a series of functions that will pull data from themoviedb.org.
Now I want to take this information and save it into a page xml.

Given an array of data, how can I save it to a GS xml page file. I will base the xml on a special page type.

A quick overview
I have a special page setup with fields that match each of the fields I want to save. If the field begins with a specific character it triggers the functions to access that fields information from tmdb. I have this working so far, now I would like to be able to save that information back into the special page so I don't have to pull it for every page veiw (tmdb TOS allows caching of data for a "reasonable amount of time").

functions.php
movei-page-xxx.xml
Can/should I use this function?
Code:
I18nSpecialPagesBackend::save