Last active
January 1, 2026 15:20
-
-
Save ramijames/01093b97ce69bfb2ad5d4ccc7052a1f9 to your computer and use it in GitHub Desktop.
Gizra - Home Assignment BE Tickets for the News component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BE-1: Create News Content Type | |
| **Type:** Backend / CMS | |
| **Priority:** High | |
| **Description:** | |
| Create or validate a `News` content type to support the News Carousel. | |
| **Fields:** | |
| - Title (core) | |
| - Featured Image (image, required) | |
| - Summary / Excerpt (formatted text) | |
| - Body (long text) | |
| - Publish Date (date; defaults to created date) | |
| - URL Alias (Pathauto) | |
| **Acceptance Criteria:** | |
| - Editors can create and publish News items | |
| - Featured image supports responsive image styles | |
| - Summary can be trimmed for previews | |
| - Publish date is editable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BE-2: Create View for News Carousel | |
| **Type:** Backend | |
| **Priority:** High | |
| **Description:** | |
| Create a Drupal View to serve as the data source for the News Carousel. | |
| **View Configuration:** | |
| - Content type: News | |
| - Display: Block | |
| - Sort: Publish Date (DESC) | |
| - Filter: Published | |
| - Items per page: Configurable (default 3–6) | |
| - Pagination: Disabled | |
| **Fields Returned:** | |
| - Featured Image | |
| - Title | |
| - Summary (trimmed) | |
| - Publish Date | |
| - Node URL | |
| **Acceptance Criteria:** | |
| - Returns correct number of items | |
| - Sorted correctly | |
| - No frontend-specific markup assumptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BE-3: Prepare View for Theming | |
| **Type:** Backend / Theming | |
| **Priority:** Medium | |
| **Description:** | |
| Ensure the View output is clean and theme-ready. | |
| **Requirements:** | |
| - Custom Twig template (e.g. `views-view--news-carousel.html.twig`) | |
| - Semantic HTML structure | |
| - No inline styles or JS logic | |
| - All fields individually accessible in Twig | |
| **Acceptance Criteria:** | |
| - Frontend controls all markup | |
| - View is reusable across multiple pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment