Blocks
This document provides an overview of block implementation status in the Contentful CMS integration.
Implementation status
The following table shows the implementation status of all blocks available in the O2S framework:
| Block | Status | Contentful Type | Notes |
|---|---|---|---|
| article | ❌ | - | Not implemented |
| article-list | ✅ | BlockArticleList | Fully implemented |
| article-search | ❌ | - | Not implemented |
| category | ✅ | BlockCategory | Fully implemented |
| category-list | ✅ | BlockCategoryList | Fully implemented |
| faq | ✅ | BlockFaq | Fully implemented |
| featured-service-list | ❌ | - | Not implemented |
| invoice-details | ❌ | - | Not implemented |
| invoice-list | ❌ | - | Not implemented |
| notification-details | ❌ | - | Not implemented |
| notification-list | ❌ | - | Not implemented |
| order-details | ❌ | - | Not implemented |
| order-list | ❌ | - | Not implemented |
| orders-summary | ❌ | - | Not implemented |
| payments-history | ❌ | - | Not implemented |
| payments-summary | ❌ | - | Not implemented |
| quick-links | ✅ | BlockQuickLinks | Fully implemented |
| resource-details | ❌ | - | Not implemented |
| resource-list | ❌ | - | Not implemented |
| service-details | ❌ | - | Not implemented |
| service-list | ❌ | - | Not implemented |
| surveyjs-form | ❌ | - | Not implemented |
| ticket-details | ❌ | - | Not implemented |
| ticket-list | ✅ | BlockTicketList | Fully implemented |
| ticket-recent | ❌ | - | Not implemented |
| user-account | ❌ | - | Not implemented |
Mocked blocks
The following blocks return static mock data instead of fetching content from Contentful:
article-search- Returns mock search resultsfeatured-service-list- Returns mock service listinvoice-details- Returns mock invoice detailsinvoice-list- Returns mock invoice listnotification-details- Returns mock notification detailsnotification-list- Returns mock notification listorder-details- Returns mock order detailsorder-list- Returns mock order listorders-summary- Returns mock orders summarypayments-history- Returns mock payment historypayments-summary- Returns mock payments summaryresource-details- Returns mock resource detailsresource-list- Returns mock resource listservice-details- Returns mock service detailsservice-list- Returns mock service listsurveyjs-form- Returns mock survey formticket-details- Returns mock ticket detailsticket-recent- Returns mock recent ticketsuser-account- Returns mock user account data
Notes
- Mocked blocks are useful for development and testing but should be replaced with real Contentful content types for production use
- All implemented blocks support Live Preview when metadata is included in the mapper
- Block mappers should handle both published and draft content based on the
previewparameter - Metadata should only be included when
isPreviewistrueto avoid unnecessary data for regular users