Store Event data in the Database
Issue #3
resolved
- -On-save serialize event list to JSON and put it in hidden form field-
- Make sure the information is stored in the database
Must obviously be in first release.
Proposed solutions:
- Use WordPress' new settings api to just store the JSON as plain json in the settings table(i presume)
- Create a custom table with these fields ( id, page_id, start, end, scheduled_by) parse the submitted JSON and store the relevant info into the DB manually.
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
Data is stored in a hidden field as a encodeURIComponent'ed JSON string, this way the JSON string can contain quotes and such without breaking the HTML.
everytime the events are loaded in we just decode the data and parse the json.