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
- Install the Horizon Aid site template.
- Open
/admin/content and try to add a programme: there is no Program content type.
- 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
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.
Comments
Comment #4
rajab natshah✅ Released horizonaid-1.0.0-alpha1
Comment #5
rajab natshahComment #6
rajab natshah