Skip to Main Content

Collaborate with Database guide

Collaborate with students to create, display and search a bank of content using Database.

About Database

The Database activity allows lecturers and students to contribute to and search a bank of content. The Database can consist of text entries, images, numbers, URLs, files and so on. You can export the entries in a Database to import into a Database in a new module for use in subsequent years.

Create Database

  1. Turn Edit mode on.
  2. Open the relevant section. Select the plus symbol at the end of the section, select Activity or resource.
    • To add the activity between existing content, hover your mouse until the plus symbol displays. Select Activity or resource.
  3. The Activity chooser opens. Select Database.
  4. Input a meaningful Name for the Database. 
  5. In Description, add the description of the Database. You may want to introduce the purpose of the database and any submission instructions to students.
  6. Check the box Display description on module page if you added a Description. When enabled, the activity description will display on the module page below the link to the activity.
  7. Complete the settings as required and more information on the different options is available below.
  8. Select Save and display to complete the Database setup.
  9. In Moodle 4, select Use a preset button and choose from one of the four presets available 
    • Image gallery 
    • Journal  
    • Proposals 
    • Resources 
  10. You can create additional fields for student contributions.

Entries options

Approval Required

Allows you to require each entry to be approved by staff users before other students can view the entry.

Allow comments on entries

Enables commenting on entries. The comments field appears on the single view template when this is enabled.

Entries required before viewing

The number of entries the student needs to submit before they can see entries by other students. If the student has not submitted the required number of entries, they will only see the entry page and not the list or single view pages.

Note: If entries are required before viewing, the Database auto-linking filter should be disabled. This is because the Database auto-linking filter can't determine whether a user has submitted the required number of entries.

Maximum number of entries

The maximum number of files that students can submit.

Availability options

Available from/to

The dates the Database is visible to students. The Database will also be open for data entry, provided it is not within the date range specified by the "read only from/to" settings. You can select a precise time as well as date for these availability settings.

Read only from/to

The dates the Database is available for viewing, but not open for data entry. The "available from/to" settings override the "read only from/to" settings. So if a database has "read only from" 1 January, and "available from" 1 February, students will not be able to view its content during January. You can select a precise time as well as date for these availability settings.

Ratings options

Aggregate type

This setting defines how ratings are combined to form the final grade in the gradebook.

If No ratings is selected, then the activity will not appear in the gradebook.

If a rating is selected, the scale, grade category and grade to pass settings will appear.

Scale

This setting controls the scale of ratings.

Grade Category

This setting controls the category in which this activity's grades are placed in the gradebook.

Grade to pass

This setting determines the minimum grade required to pass. The value is used in activity and course completion, and in the gradebook, where pass grades are highlighted in green and fail grades in red.

Restrict ratings from/to

Select this option if ratings are allowed at a restricted time period only. Set the from/to date and time.

Restrict access and Completion conditions settings

You can use the Restrict access settings to control the availability of content and activities based on one or more conditions, including date and group. 

Completion conditions allows you to set completion criteria for a specific activity or resource.

Activities or resources with a completion criteria display a circle next to them in the Module index. The circle turns green (and is filled in) when the student meets the criteria. On the main module page, a tick and the word "done" appears against the item when the student meets the criteria. This helps students manage their progress on a module and staff can easily review student engagement and progress against key activities.

You can combine Restrict access and Activity completion to provide structured pathways through your module.

Apply the settings

  1. Open the activity or resource.
  2. Select Settings from the contextual navigation menu. This opens the activity settings.
  3. Change the settings required.
  4. Select Save and display to save any changes made.

View Activity restrictions on module page

If you have applied activity restrictions to an activity or resource, the restriction will be visible to you on the main module page.

Restriction is shown on module page

When edit mode is on, you will be able to edit the restriction by selecting Edit restrictions.

Edit mode is on. Edit restriction is available

View Completion condition on module page

You can view the completion condition on an activity or resource from the main module page by opening the dropdown menu next to Competion.

Completion condition menu is open.

When edit mode is on, you will be able to edit the completion condition by selecting Edit.

Completion menu is open. Edit condition menu is available

Related guidance

Export/Import entries

Database activity entries may be exported by downloading as a text file if you have no attached files or as a .zip file, if you have files attached. The resulting file may then be edited for other purposes or used for importing entries to another Database.

To export:

  1. Open the Database activity from which you want to export entries.
  2. Open the Actions drop-down menu and choose Export entries from the options.
  3. Under Choose the format you wish to export to.
    • If you are only exporting text, select CSV text with selected delimiter: [,]
    • If you are exporting text and files, select CSV text with selected delimiter: [,] However, please note that you will download a zip file.
  4. Then select the field(s) which you want to export under the next section Choose the fields you wish to export. If you select a files field, you will automatically download a .zip file.
  5. Don't select include user details or include date/time modified, as these will all default to being modified by you on the date you imported the files when imported into the new database.
  6. Select Export entries button.

Export page with each field selected for export

To import:

  1. Open the Database activity into which you want to import entries.
  2. Ensure that your fields in the new database match the fields in the database you exported from.
  3. Select the Import entries button. If you have already added an entry, open the Actions drop-down menu and select Import entries.
  4. Browse to locate your database file, .csv or .txt or zip and upload the file to the Database.
  5. Select Submit button.
  6. Please note that large databases with file attachments may take some time to import, so be patient.

Reuse Database entries from 2022/23 module

Taught modules from 2022/23 were restored onto Moodle 4. Database entries were not included in restored modules.

To export database entries, navigate to the module on Moodle 3.9 - moodle.city.ac.uk. Open the activity, open the Settings menu on the right of the page and select export entries and select the Export entries button. The file will download to your computer. You can then import the entries to your module for the new academic year on Moodle 4 - moodle4.city.ac.uk.

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License