Making a live microblogging timeline part 1 Extending the users entity type
In this set of tutorials you're going to make a live-updating microblogging timeline. Before we start with the timeline itself, we're going to create some user accounts to use with the timeline. To keep things straightforward we're going to make them through the administration interface, but if you want to extend it with a user registration system you can.
Before you do this tutorial it'll be best to run through both setting up an Iris site and the making a blog site tutorial.
Before you start you should have an iris site set up, we're going to call it mysite
, with an active theme (called mytheme
in this tutorial).
Log in as an administrator on your site and enable the following modules:
- Entity UI
- Permissions UI
To make our microblogging site a bit more fun we're going to add some fields to the user entity type. Go to the entities
page in the structure
tab in the admin menu and press manage fields
on the user entity type in the table.
First add an avatar
field of type image
to your entity. Make sure its permissions are set so both anonymous
and authenticated
users can see it.
Add a display name
field of type Textfield
.
Now you've got all the user entity fields you need, go to the entities
page in structure
and create some users to post to your timeline.
- Setting up an Iris site
- Folder structure
- Module system
- Restarting the server after code changes
- Hook system
- Entity system
- Theme and template system
- Form system
- Text filters
- Message system
- Routing system
- Sessions, authentication, user and permission systems
- Configuration system
- Menu system
- Translation system
- Triggers
- Websocket system
- Logs
- Adding tags (meta, css, javascript) to templates dynamically
- Block and region system