Blocks and autoblocks
Explore how blocks and autoblocks are used in document authoring and how these can improve the site and authoring experience.
Transcript
Let’s talk about blocks and autoblocks. Blocks serve as a method to handle both structured content and to add special functionality to your site. Irrespective of the site, block structure remains consistent. A table with a merged first row acts as the block name. Blocks typically encompass content configuration or references to other content from documents, spreadsheets, or both. Parentheses can include options for blocks. For instance, a column’s block may feature a highlight option providing a layout hint to the block display logic. In order to explore further about the pre-built blocks available, refer to the block collection document. In an ideal scenario, content is primarily authored outside of blocks to improve readability and editing convenience to achieve the benefits of both approaches. A technique called autoblocking is commonly utilized. Autoblocking simplifies the block creation process by automatically converting default content and metadata into blocks, eliminating the need for manual intervention. Consider, for example, an article header in a blog post which typically includes information such as the author, blog post title, hero image, and publication date. Instead of requiring the author to painstakingly construct a block containing all these elements, an autoblock referred to as the article header block is automatically inserted into the page based on the H1 tag, the first image, the blog author, and publication date metadata.
recommendation-more-help
bb44cebf-d964-4e3c-b64e-ce882243fe4d