Create demo content

Last updated on
24 May 2023

This documentation needs review. See "Help improve this page" in the sidebar.

This section is about how to generate demo content and how to login with the created demo accounts.

Process of creating content

Currently the following content is being created during installation. First some files (images) are uploaded. After this users are being created. Next some topics and events are created. The files are being added to the events and the topics, so they look nice. Also users are added to the events and topics, so they have different authors.

Next some event enrollments are being created for the events. Also here different users are being used.

Finally some comments are begin added to the created content that can have comments, namely events and topics

Where to use

This demo content will be available on the nightly build and on all development machines that install the site with the provided install script in this repository.

How to use

Currently it's only possible to add or remove ALL the content on a per content type basis. We use drush to add and remove the demo content. First step is then to enable the social_demo module:

drush pm-enable social_demo -y

After this you might want to clear the cache of your drush app:

drush cc drush

Adding content

To add content use the following command:

Version < 11:

drush demo-content-add file user group topic event event_enrollment comment post like

Version >= 11:

drush social-demo:add file user group topic event event_enrollment comment post like

The order (e.g. file -> user -> group) is important because the content is dependent on each other.

Removing content

To remove content use:

 Version < 11:

drush demo-content-remove file user group topic event event_enrollment comment post like

Version >= 11:

drush social-demo:remove file user group topic event event_enrollment comment post like

Demo accounts

The demo account that are create have a simple username and the password is the same as the username. Below the demo account you can login with:

  • alisonhendrix
  • benflorez
  • chrishall
  • darrenjohnson
  • EAA_official
  • jannamiesner
  • michelleclark
  • paulharris
  • petershaw
  • robertandrews
  • shaunberkley
  • student_01
  • susanwilliams
  • thomaswolf

Technical information

The demo content is being generated from YML files. All content is unique by a UUID. Also all entity references are done using these unique UUIDs.

Help improve this page

Page status: Needs review

You can: