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 5: Creating a custom widget

Elgg's widget system is demonstrated through this lesson.

Problem

You need to add some custom content to your users' profiles. This may be information related to the purpose of the site (a site for sports fans could allow members to display the schedule for their favorite team on their profiles). It could be statistics about how many people have read their latest blog posts or looked through their newest photos. You may want to add a special welcome to new members or provide links to featured content.

Solution

Elgg has a widget framework that makes it easy to add content like that described above to profiles and dashboards. All that is required to create a new widget is adding two views and registering the widget. ...

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