O'Reilly logo

Elgg 1.8 Social Networking by Cash Costello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required