Academy Course Enrolment CTA Publish Process

Each available academy course should have a Call-to-Action (CTA) button, which allows crew to apply to enrol with a single click. The button will send an email with the username and target course to the admin email address for further action.

Unfortunately, the process for adding these buttons cannot be automated and involves a number of steps. This is not something an instructor is expected to do.

When a course is created, the platform support team should be contacted with the URL to the course so that they can add the CTA button.

Create a button field in the Curriculum Item content type

  • Each course needs its own button field.
  • The naming convention is CTA_xx123 (where xx is the branch code and 123 is the course code).
  • The widget type should be HTML Button.
  • Ensure the Button Text field under settings says Enrol for XX-123

Create a view block under the Curriculum view

  • Each course needs a view to handle the button.
  • Clone one of the existing button blocks (they will be called XX123 CTA where XX is the branch code and 123 is the course code) and update the block’s name to match the target course.
  • Under the filter criteria:
    • Adjust the Content: Code filter value to the target course code.
    • Adjust the Field: Branch value to the target branch code.
  • Apply these settings only to the current block, and save.

Add the view to the Curriculum Item node page

  • Open to edit the Curriculum Item node page: admin > structure > pages > node template > Curriculum Item > Content
  • In the Center region click the settings icon and select Add Content.
  • Add the view you created above:
    • Select the option to override the title and leave blank.
    • The view is fine at the default location bottom of the Center region.
  • Update and Save.

Add a rule for the course

  • Go to the rules interface admin>config>rules
  • Find an existing button rule (they will be called XX123 CTA where XX is the branch code and 123 is the course code) and clone it.
  • Edit the cloned rule:
    • Under the Actions section, edit the Send Mail element. The Message section should be updated with the target course code.
    • Under the Settings section, update the rule title with the target course code.
  • Save changes.

The course CTA setup is complete.