Skip to main content

Campaigns data source in Dash

About the Campaigns data source and available fields, filters, and conditions

About

The campaigns data source allows you to build reports and track data related to your site campaigns. By selecting this data source in your Dash blocks, you can display information ranging from general campaign identities to technical access restrictions and financial details.

Important: This data source requires the Magic Pro plugin to be installed and active on your Moodle site.


Available fields

These are the building blocks available for your layout:

Campaign

  • Name

  • Name with link

  • Background image

  • Background image (linked)

  • Header image

  • Header image (linked)

  • Logo image

  • Logo image (linked)

  • Description

  • Comments

  • Time created

  • Time modified

  • Capacity status

  • Total capacity

  • Available capacity

  • Available/total capacity

  • Status

  • Visibility

  • Restrict by role

  • Restrict by cohorts

  • Approval type

  • Approval roles

  • Available startdate

  • Available closes

  • Password

  • Enrolment key

  • Cohort membership

  • Global role

  • Campaign owner

  • Campaign owner with link

  • Payment

  • Registration fee

  • Expiration date

Details area

  • Details button

  • Details link

Note: For how to enable and arrange these fields, see Fields preferences. To configure how the details button and link behave, see the Details area preferences.


Available filters

These are the filters available in the data source:

  • Payment

  • Campaign password

  • Approval types

  • Campaign Owner

Note: For how to enable these for your users, see Filters preferences.


Available conditions

You can restrict which campaigns are included in the block using the following rules:

  • My campaigns – Restrict data visibility exclusively to campaigns owned by or associated with the viewing user.

  • Approval types – Limit data retrieval to specific campaign approval configurations.

  • Campaign dates – Limit data retrieval to campaigns falling within specific timeframe or date boundaries (past, future, or present; multiple selection allowed)

  • Available for roles – Limit data visibility to campaigns matching specific role access settings.

  • Available for cohorts – Limit data visibility to campaigns matching specific cohort access settings.

  • Hide my campaigns – Exclude campaigns owned by or associated with the viewing user from the retrieved records.

Note: For how to apply these restrictions, see Conditions preferences.


Did this answer your question?