2012-09-06, 22:45:04
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
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