Problem/Motivation

The programmes we run are the core of the site, but there is no Program content type. The Our Programs page hand-builds five programme blocks out of Canvas components, so a site builder cannot add a programme, a programme cannot be listed or filtered, and nothing can reference one.

Steps to reproduce

  1. Install the Horizon Aid site template.
  2. Open /admin/content and try to add a programme: there is no Program content type.
  3. Open /programs: five hand-placed blocks, each about sixty Canvas components in total.

Proposed resolution

Add a Program content type the way Varbase Blog Base manages a content type, following the same structure as the Program type in the Educare site template, adapted for an aid organisation.

  • Content type program with a summary, content, featured image, a Sector reference to a new program_type vocabulary, and a Countries reference to the Country content type, so a programme states where it runs.
  • Form display, a card view display and its Drupal Canvas content template.
  • A programs view with block displays for the listing, rendered through the card view mode, and a pathauto pattern so a programme lives at /programs/[node:title].
  • Replace the hand-placed blocks on the Our Programs page with the view.
  • Five programmes carrying the copy and images already on the page: Education, Women, Agriculture, Medicine and Health, each linked to the countries where it runs.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • A Program content type is available, and programmes are published at /programs/[node:title].
  • The Our Programs page follows the content instead of hand-placed blocks.

API changes

  • N/A

Data model changes

  • New content type program, a program_type vocabulary, and the node fields field_program_type and field_countries.

Release notes snippet

  • Added a Program content type with five programmes and moved the Our Programs page onto the programs view.

Issue fork horizonaid-3613697

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 2ac07afc on 1.0.x
    feat: #3613697 Add a Program content type and render the programmes page...
rajab natshah’s picture

Assigned: Unassigned » josebc
Status: Active » Needs review
Issue tags: +horizonaid-1.0.0-alpha1
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.