Supported blocks
This document provides an overview of block implementation status in the Contentful CMS integration.
- 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
Implementation status
The following table shows the implementation status of all blocks available in the O2S framework:
| Block | Status | Contentful Type | Notes |
|---|---|---|---|
| article-list | ✅ | BlockArticleList | Fully implemented |
| category-list | ✅ | BlockCategoryList | Fully implemented |
| faq | ✅ | BlockFaq | Fully implemented |
| quick-links | ✅ | BlockQuickLinks | Fully implemented |
| ticket-list | ✅ | BlockTicketList | Fully implemented |
| category | ❌ | - | Not implemented |
| article-search | ❌ | - | Not 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 |
| product-details | ❌ | - | Not implemented |
| product-list | ❌ | - | Not implemented |
| recommended-products | ❌ | - | Not implemented |
| service-details | ❌ | - | Not implemented |
| service-list | ❌ | - | Not implemented |
| surveyjs-form | ❌ | - | Not implemented |
| ticket-details | ❌ | - | Not implemented |
| ticket-recent | ❌ | - | Not implemented |
| user-account | ❌ | - | Not implemented |
| article | ❌ | - | Not implemented |
| bento-grid | ❌ | - | Not implemented |
| cta-section | ❌ | - | Not implemented |
| document-list | ❌ | - | Not implemented |
| feature-section | ❌ | - | Not implemented |
| feature-section-grid | ❌ | - | Not implemented |
| hero-section | ❌ | - | Not implemented |
| media-section | ❌ | - | Not implemented |
| notification-summary | ❌ | - | Not implemented |
| pricing-section | ❌ | - | Not implemented |
| ticket-summary | ❌ | - | Not implemented |
Mocked blocks
Mocked blocks are useful for development and testing but should be replaced with real Contentful content types for production use. The following blocks return static mock data instead of fetching content from Contentful:
article-search- Returns mock search resultscategory- Returns mock category datafeatured-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 summaryproduct-details- Returns mock product detailsproduct-list- Returns mock product listrecommended-products- Returns mock recommended productsservice-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