Article collection page block
What's new
Page layouts accept a new block, ArticleCollectionBlock, which lists the pages of a collection. It sits next to LatestPagesBlock and takes the same selectors — collection_id, category_id, variant (linear or blur), is_paginated, and show_all_tab — plus a view_type of slider or grid that picks how the articles are laid out.
The block also joins the page_block union on AddPageBlockNode, so a page's graph_rules can insert one for a targeted audience.
Impact
An article collection can be rendered as a horizontal slider or as a grid from the same block, where LatestPagesBlock only offered a single layout and an is_featured flag.
Changes
| Resource | Change |
|---|---|
| get_pages, get_page, create_page, update_page, bulk_update_page, translate_page | Added ArticleCollectionBlock to the layout.blocks discriminator and oneOf |
| get_pages, get_page, create_page, update_page, bulk_update_page, translate_page | Added ArticleCollectionBlock to the page_block union on AddPageBlockNode inside DynamicBlock.graph_rules |
| Components | Added the ArticleCollectionBlock schema and the ArticleCollectionBlockViewType enum (slider, grid) |
Upgrade
- No action required. To use the block, add an entry to
layout.blockswithblockset toArticleCollectionBlock. - Clients that validate page responses against a generated model should regenerate, since this block type can now appear in
layout.blocksand in a parent page's layout.
Need help?
Contact our integration team at [email protected]