Lesson 9: Collecting and storing data

This is the longest of the lessons. It demonstrates how to create forms, how to create an action, and how to save the data using Elgg's data model.

Problem

You know how to store settings for plugins, widgets, and users, but how do you collect and store more complicated data? You want your users to write testimonials about your site that you can rotate on the front page. Or you would like to have a custom feedback system that lets users report problems or offer suggestions. Maybe you are thinking that it would be great if your users could post their favorite poems or excerpts from books and then describe why they like them. The one common issue with all of these is how to gather and store the data.

Solution

A form ...

Get Elgg 1.8 Social Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.