# Composition Plan Examples

Explore layouts you can create with EasyCatalog Composition Plans, from a
simple product list to grouped catalogues, image galleries and technical sheets.
These examples require functional EasyCatalog Pagination and Scripting modules.
The sample data installer also requires the XML Data Provider.

## Try the examples in InDesign

1. In InDesign, choose **Window → Utilities → Scripts → Install/Update EasyCatalog Sample Scripts**
   to install the examples in the Scripts panel.
2. In the Scripts panel, open **EasyCatalog Sample Scripts → Composition Plans**
   and run **Try EasyCatalog Composition Recipes.jsx**. Keep its accompanying
   support files and **Composition Recipe Data** folder together as installed.
3. Choose the examples you want to create. The script installs the sample data
   and creates a new A4 document for the layouts.
4. Inspect the generated pages, including any continuation pages. Each example
   has an introductory page explaining its plan. Save the document to keep your work.

You can cancel from the progress window. Completed examples remain in the
document. Optional PDF exports go into a folder you choose; the completion
message also shows where the script saved its recipe catalogue and report.
Rerunning the sample replaces its reserved sample data source and matching
export files, so use a separate data source for your own projects.

## Download the example plans

Each **Plan JSON** link opens a complete `easycatalog-composition-plan/1` plan.
These plans reference the sample field names and formatting rules; they are not
standalone documents. Run the corresponding example first to create its assets.
When adapting a plan to another document or page size, update its resources and
layout dimensions to suit your design.

**Recipe JSON** contains the same layout as an adaptable template, with bindings
for fields and assets. Give it to an AI authoring tool together with a fresh
manifest from your document and data selection. The bindings must be resolved
before the resulting plan can be used in EasyCatalog.

<!-- RECIPE_DOWNLOADS_START -->
### Complete product list

Creates a full-width price list from the selected records. The plan first sorts by Category1, Category2 and Price, then creates a separate flow for each Category1 department. That flow places a department heading above a growing product table. If the department needs another layout area, its heading repeats and its table resumes with the remaining content. Use this as a starting point when the products should remain in a predictable grouped order rather than being rearranged to fill gaps.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/complete-product-list.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/complete-product-list/1.0.0.json)

### Two-column product directory

Creates one alphabetical directory table and lets its text story flow through two page columns. The records are sorted by AlphaSV before the table is populated. The layout supplies the columns and their gutter; the table continues into the next column or page instead of being populated again from the beginning. The final columns are balanced. Use this when you want a continuous list with table formatting, rather than a separate card for each product.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/two-column-product-directory.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/two-column-product-directory/1.0.0.json)

### Conditional multi-table text story

Builds one shared text story from three contributors in their declared order. An optional introduction contributes the complete contents of its formatting-rule text frame, including its ordinary InDesign table. A managed table then lists up to eight products alphabetically, followed by a separately populated Bath table sorted by price. Each managed table has its own data selection and table settings, although both enter the same flowing story. Changing the condition can remove the introduction without removing either managed table.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/conditional-multi-table-text-story.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/conditional-multi-table-text-story/1.0.0.json)

### Three-column product cards

Populates one card per selected record, sorting first by Category1 and then by AlphaSV. A data-dependent asset choice selects the department's coloured card design. Horizontal filling places the cards across the available width, with card widths sized for three positions and separate horizontal and vertical gutters. When there is no room for the next complete card, composition continues in the next area. The three-across arrangement comes from card sizing and packing, rather than a single table split into three text columns.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/three-column-product-cards.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/three-column-product-cards/1.0.0.json)

### Featured and recent products

Creates a short feature selection without changing the underlying data source. Before any cards are placed, the plan filters Enabled to true, sorts the matching products by Date from newest to oldest, and takes at most twelve records. One larger featured card is populated for each result and the cards fill horizontally with gutters. Change the filter, date sort or limit to choose which products qualify; change the formatting rule to alter how each chosen product looks.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/featured-and-recent-products.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/featured-and-recent-products/1.0.0.json)

### Distinct category index

Derives an index directly from the selected product records. The data-shaping step keeps one representative for each distinct Category1 value and sorts those results by Category1. A growing text-frame table then displays the reduced list. Multiple products in the same department therefore produce only one index entry, without requiring a separate category data source. The distinct field controls what counts as a duplicate; the sort controls the order of the remaining entries.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/distinct-category-index.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/distinct-category-index/1.0.0.json)

### Image gallery with product table

Places a gallery and a product table using the same batch of records. A fillSection tries a prefix of the sorted record sequence and checks whether both the image container and matching table can fit it. Its binary search adjusts the batch size until a suitable common batch is found. Both representations commit that batch together; a failed trial restores their progress together. This keeps the gallery and table aligned instead of allowing one to advance to products the other has not shown.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/image-gallery-with-product-table.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/image-gallery-with-product-table/1.0.0.json)

### Product cards with continuation headers

Wraps the product cards in nested flows. The outer flow supplies catalogue furniture, while an inner flow is created for each Category1 department and owns that department's heading and card stream. Headers marked to repeat are placed again when their flow continues into another area. The cards resume from their saved record position underneath the applicable headers. Use this pattern when a page or column break must preserve the reader's context without restarting the department's products.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/product-cards-with-continuation-headers.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/product-cards-with-continuation-headers/1.0.0.json)

### One-level grouped three-column catalogue

Uses groupFlow to turn sorted product records into Category1 departments inside a three-column layout. Each department receives a heading followed by its product cards. When content continues, the active group supplies the appropriate repeated heading. Adjacent header merging can extend a department heading over neighbouring columns used by that same group. This is useful when you want the group hierarchy to control both heading placement and continuation, rather than inserting headings manually between record batches.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/one-level-grouped-three-column-catalogue.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/one-level-grouped-three-column-catalogue/1.0.0.json)

### Two-level grouped three-column catalogue

Adds a Category2 family level beneath each Category1 department in a three-column groupFlow. The plan sorts the records into the intended hierarchy, creates headings for both levels, and places the product cards at the leaves. A continuation can therefore restore the department and family context for the next products. Each level owns its own header behaviour, so you can adapt department and family headings independently while retaining a single ordered stream of product records.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/two-level-grouped-three-column-catalogue.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/two-level-grouped-three-column-catalogue/1.0.0.json)

### Three-level grouped three-column catalogue

Extends the grouped layout through Category1, Category2 and Category3 before reaching individual products. The groupFlow creates the nested structure from the sorted data and places the active hierarchy's headings as content enters a column. Product cards are populated only at the innermost level. On continuation, the header settings restore the relevant group context. Use it to understand how a third grouping level changes the headings and available space without requiring a separate pagination pass for every subgroup.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/three-level-grouped-three-column-catalogue.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/three-level-grouped-three-column-catalogue/1.0.0.json)

### Category 3 tables with repeating hierarchy headers

Uses the Category1 and Category2 hierarchy to supply repeating flow headers, but renders each Category3 group as its own populated table instead of individual cards. The surrounding layout has three columns. When a table or group continues to another column or page, the enclosing hierarchy can repeat with continued labels while record consumption resumes. This separates two concerns: the nested flows manage the reader's group context, and the leaf table manages the products belonging to that Category3 group.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/category-3-tables-with-repeating-hierarchy-headers.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/category-3-tables-with-repeating-hierarchy-headers/1.0.0.json)

### Full-width category kept with subheader

Creates a department flow with a full-width Category1 heading above a three-column body. The body contains Category2 flows, each with a family heading and product cards. Keep-with-next on the department heading prevents it from being left behind without the next required content. The final body region is balanced and reduced to the height its content needs, allowing the next department to follow. Use this to combine broad section openers with a more compact multicolumn product layout.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/full-width-category-kept-with-subheader.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/full-width-category-kept-with-subheader/1.0.0.json)

### Product family openers

Repeats an editorial opening pattern for each Category1 group. The group's flow contains a repeating heading and a hero panel restricted to its first area; the hero is kept with the following content. Product cards then consume that group's records. If the group continues, the heading can return without repeating the large opening panel. This is useful for giving each department a strong introduction while keeping subsequent pages economical.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/product-family-openers.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/product-family-openers/1.0.0.json)

### Facing-page image and description rows

Sorts products by AlphaSV and populates a full-width row for each one. The asset resolver checks the physical page side and chooses a mirrored formatting rule: the image sits toward the outside edge and the description toward the spine. The choice follows the page on which the row is composed, so continuation can change the selected asset. Use this when facing pages need different artwork arrangements while sharing the same data selection and pagination logic.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/facing-page-image-and-description-rows.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/facing-page-image-and-description-rows/1.0.0.json)

### Technical specification sheets

Takes the first four records in ID order and builds a separate product flow for each. A repeating heading identifies the product, followed by a summary, a threadable long description, a conditional safety note and tables collected from the product's FeaturesXML and VariantsXML fields. Those tabular fields supply child rows belonging to the current product, rather than unrelated top-level records. Long content can continue through linked frames; an empty optional note is omitted. Adapt the sections independently to build a detailed product sheet.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/technical-specification-sheets.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/technical-specification-sheets/1.0.0.json)

### Promotional catalogue

Groups products by Category1 and selects presentation from the current department's value. Bath and Office receive their own promotional panel and three-across card treatment; other departments use a simpler heading and denser four-across cards. The opening panel is restricted to the first area of its department flow. The data grouping remains the same while conditional sections and asset choices change the visual treatment. Use this to give selected departments more prominence within one catalogue plan.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/promotional-catalogue.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/promotional-catalogue/1.0.0.json)

### Product variants

Selects parent products R001, R002 and R003 and creates a separate sheet flow for each. The summary uses the parent record, while the variant table collects rows from that parent's VariantsXML field. Each product starts on a new page; its heading can repeat if the variant content continues. The table displays variant attributes such as SKU, colour, size, pack, price and availability. This illustrates the difference between repeating over parent products and expanding the child rows stored within each parent.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/product-variants.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/product-variants/1.0.0.json)

### Related products and accessories

For each qualifying product, the plan reads record identifiers from RelatedProductIDs and AccessoryIDs and resolves them into product records. The related-products lookup is restricted to the original selection; the accessories lookup can search the entire owning data source. Both preserve the identifier order given in the source field. A reusable local component supplies the heading and card layout for each lookup. This lets two visually similar lists use different lookup scopes without duplicating their layout definition.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/related-products-and-accessories.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/related-products-and-accessories/1.0.0.json)

### Fit-aware formatting-rule alternatives

Takes eight records and attempts to place each using an oversized primary card beneath a repeating heading. Because that card does not fit, the engine discards the trial and tries the declared compact asset alternatives in order. The first suitable candidate is committed for the same record. This changes the formatting rule used for an individual item, rather than choosing a different layout for an entire group. Inspect the output to see the fallback design and confirm that products appear only once.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/fit-aware-formatting-rule-alternatives.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/fit-aware-formatting-rule-alternatives/1.0.0.json)

### Reusable local components

Defines one parameterised card-stream component and invokes it twice. The first invocation uses the component's default asset; the second supplies another asset and overrides the gutter within the expanded definition. Component calls are expanded when the JSON is compiled, so the resulting sections use the normal composition engine. Use this when several parts of a plan need the same structure with a few controlled differences. Editing the shared component updates both uses without maintaining two copies of the section tree.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/reusable-local-components.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/reusable-local-components/1.0.0.json)

### Dynamic content adornment

Composes product cards into two child regions and measures the content actually committed in each one. An adornment places a pale rounded panel around those measured bounds, so the background follows the products instead of filling an arbitrary fixed rectangle. A separate title remains ordinary fixed furniture. The two panels are calculated independently, even though the regions belong to the same flow. Use this for group backgrounds or borders whose size should follow the resulting layout.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/dynamic-content-adornment.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/dynamic-content-adornment/1.0.0.json)

### Multi-thread product page

Runs a main product-table thread and a sidebar-card thread in separate areas of the same page. Each thread has its own content order and progress; the sidebar does not have to consume records at the same rate as the table. A continuation layout resolver checks which work remains. Once the main table is complete, it can give the unfinished sidebar the full available width. This demonstrates independent content streams whose later page geometry changes as one stream finishes.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/multi-thread-product-page.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/multi-thread-product-page/1.0.0.json)

### Optimised coupled lanes with reclaimed main area

Composes the sidebar first and publishes the bounds of its committed content. The main product grid treats those bounds as occupied cells, allowing it to use the remaining space without covering the sidebar. The plan also trials continuation-area alternatives, including a deliberately inferior narrow layout, and commits the preferred full-width result after restoring rejected trials. Unlike a fixed sidebar reservation, this arrangement bases the space excluded from the main grid on the sidebar's measured output.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/optimised-coupled-lanes-with-reclaimed-main-area.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/optimised-coupled-lanes-with-reclaimed-main-area/1.0.0.json)

### Coupled per-product main and sidebar

Selects three products in ID order and creates a nested container with two lanes for each product. The main and sidebar sections both receive the current product as their data context. Their progress is coupled: the container completes that product's work before the outer loop advances to the next product. Geometry from a completed lane remains reserved while the other lane finishes. Use this when the two areas form one product presentation rather than independent catalogue-wide streams.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/coupled-per-product-main-and-sidebar.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/coupled-per-product-main-and-sidebar/1.0.0.json)

### Mixed-span grid - strict order

Sorts up to 24 records by ID and measures their differently sized card assets against a 12-by-12 cell grid. A card can occupy several rows or columns, but it stays intact. Strict-order placement does not let a later small card pass an earlier card that cannot be placed. Unfinished records continue to the next area, even when a smaller product could have filled a visible gap. Compare this with the other grid strategies when preserving reading order matters more than maximum occupancy.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-strict-order.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-strict-order/1.0.0.json)

### Editorial two-column catalogue

Groups all selected records by Category2 and places them in a two-column body that tracks the used height of each column separately. A category starts with a one-column heading kept with its first card. After the group's cards are placed, adjacent-header merging can widen the heading across both columns if that group actually uses both; a one-card category can retain a narrow heading. Whole product cards continue without splitting. This produces a layout whose headings follow the group's occupied columns rather than always spanning the page.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/editorial-two-column-catalogue.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/editorial-two-column-catalogue/1.0.0.json)

### Mixed-span grid - page obstruction cells

Uses dense mixed-size card placement with a real page item acting as an obstruction. The plan discovers objects on the designated obstruction layer and blocks every grid cell touched by their bounds and clearance. Cards are then placed only in the remaining cells; the obstruction does not resize or split them. The script creates the sample obstruction, so reproducing this layout from JSON alone also requires suitable page artwork on that layer. Move the obstruction to see how the available grid changes.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-page-obstruction-cells.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-page-obstruction-cells/1.0.0.json)

### Mixed-span grid - first fit

Starts with the same ID-sorted, mixed-size card sequence as the strict-order example. If a pending card cannot fit the available space, first-fit placement can defer it and choose the first later record that does fit. Deferred records remain pending for subsequent placement or continuation. This fills some gaps by changing the visible order, while keeping each product card whole. Compare product labels with the strict-order output to see which cards were allowed to move ahead.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-first-fit.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-first-fit/1.0.0.json)

### Mixed-span grid - dense

Uses the mixed-size card grid but repeatedly searches later pending records for cards that can occupy remaining openings. Small cards can therefore appear before larger deferred cards, improving use of otherwise empty cells. Every placed card reserves its full cell footprint and remains indivisible. The saved pending-record state carries deferred work into continuation areas. Use this when visual packing is more important than retaining the original record order, and compare the product labels as well as the amount of free space.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-dense.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-dense/1.0.0.json)

### Mixed-span grid - bounded dense (look ahead 4)

Applies dense hole filling while limiting each search to four pending records. The grid can bring a nearby suitable card forward, but it does not search the entire remaining dataset for a perfect match. Deferred cards remain in the pending sequence for later placement. The lookAhead value controls the size of this search window. Compare it with unrestricted dense packing to see how a bounded search trades some packing opportunities for a smaller amount of work.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-bounded-dense-look-ahead-4.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-bounded-dense-look-ahead-4/1.0.0.json)

### Mixed-span grid - bounded best fit (look ahead 4)

Examines up to four pending cards and uses the best-fit strategy to choose among candidates that can be placed. Unlike first fit, it evaluates the available choices rather than immediately accepting the first suitable record. Each card's measured dimensions determine the cells it occupies, and unchosen records remain pending. Use the same data and card assets as the other grid examples to compare the effect of the strategy itself; lookAhead controls how many upcoming records it may consider.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-bounded-best-fit-look-ahead-4.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-bounded-best-fit-look-ahead-4/1.0.0.json)

### Mixed-span grid - group aware by department

Fills grid openings with mixed-size cards while treating department membership as an ordering boundary. Cards from the current pending department may be rearranged to fit, but products from a later department cannot overtake unfinished work in that department. This offers a compromise between dense packing and catalogue grouping: the products within a department can change position, while the boundary between departments remains meaningful. Compare it with unrestricted dense placement using the department labels on the cards.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-group-aware-by-department.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-group-aware-by-department/1.0.0.json)

### Mixed-span grid - repeating slot pattern

Uses a declared sequence of grid slots instead of allowing the placer to choose arbitrary holes. The pattern supplies positions and spans for small, wide and full-width card presentations. Records are assigned through that sequence, which repeats on continuation areas. This gives the page a predictable rhythm even though the content changes. Adapt the slot sequence when artwork must follow a designed arrangement, rather than choosing a strategy that rearranges cards mainly to improve packing.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-repeating-slot-pattern.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-repeating-slot-pattern/1.0.0.json)

### Mixed-span grid - facing-page patterns

Places 24 ID-sorted records using one of two mirrored slot patterns. At each continuation area, the plan checks whether the physical page is left- or right-hand and selects the corresponding small-wide or wide-small arrangement. The records retain their order while their positions follow the chosen pattern. This demonstrates page-side-dependent area geometry rather than simply swapping the artwork inside a card. Inspect both sides of a spread to see the difference.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-facing-page-patterns.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-facing-page-patterns/1.0.0.json)

### Mixed-span grid - largest first

Measures the remaining product-card assets, ranks them by the grid-cell area they occupy, and places larger cards before smaller ones. This intentionally changes the ID-sorted input order to prioritise the most demanding shapes. Smaller cards can then use space left around the large cards. Use the example to compare size-priority packing with strict order and dense strategies; a fuller-looking page can have a very different product reading order.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-span-grid-largest-first.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-span-grid-largest-first/1.0.0.json)

### Mixed strategies - restart regions

Divides each page into an upper region using an orange four-card slot pattern and a lower region using a blue twelve-card dense grid. One gridSequence feeds the same stream of 40 labelled records through these different placement rules. With restartRegions, a continuation page starts again in the upper region before using the lower region. This is useful when every page should repeat the same top-to-bottom design, even though the two parts use different packing strategies.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-strategies-restart-regions.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-strategies-restart-regions/1.0.0.json)

### Mixed strategies - resume region

Uses the same upper patterned region and lower dense region, but places an obstruction over the lower region on the first page. With resumeRegion, continuation starts in the region where progress stopped. The next page therefore resumes the blue lower region with the next record and leaves the orange upper region unused for that pass. Compare this with restart regions to see how the continuation policy changes area traversal without restarting or duplicating the records.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/mixed-strategies-resume-region.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/mixed-strategies-resume-region/1.0.0.json)

### Native text-wrap product floats and callout

Places product-image floats and separate callout floats before composing the associated narrative text. Native text wrap makes the story avoid the imagery, while the float lane accounts for occupied bounds when stacking callouts. The following text frames use the corresponding product records and flow around the resulting geometry. This differs from a rigid image-and-text row: the text's usable shape is affected by the actual floats. Inspect where the lines wrap and how multiple callouts avoid colliding.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/native-text-wrap-product-floats-and-callout.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/native-text-wrap-product-floats-and-callout/1.0.0.json)

### Row-wrapped product cards

Creates ten card sections, each selecting one record by its offset in the ID-sorted selection. Their enclosing flow runs left to right with wrapping enabled, so a card that cannot fit beside the previous one begins a new row. Horizontal and vertical gutters control the two directions independently. Space-between distribution spreads cards across each row, and distributeFinalRow applies that behaviour to the incomplete last row too. Change those distribution settings to compare aligned and spread-out final rows.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/row-wrapped-product-cards.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/row-wrapped-product-cards/1.0.0.json)

### Column-wrapped product cards

Creates eight card sections and places them in a flow that runs top to bottom with wrapping enabled. Once the current column cannot accept the next complete card, placement advances into a new column. Each section selects its own record from the ID-sorted data, so the order is down first and then across. Compare this with row wrapping: changing the primary flow direction changes which neighbouring cards share a row or column, without changing their contents.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/column-wrapped-product-cards.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/column-wrapped-product-cards/1.0.0.json)

### Atomic responsive layout alternatives

Tries a layout containing three product cards as one indivisible choice. The initial full-page-card version cannot fit as required, so the engine restores the whole trial, including its geometry and record progress, before trying the compact fallback. Only the successful alternative is committed. This differs from per-card asset alternatives: the choice applies to an entire section subtree. Use it when a product presentation must switch consistently between several complete arrangements.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/atomic-responsive-layout-alternatives.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/atomic-responsive-layout-alternatives/1.0.0.json)

### Authored template container

Places a formatting-rule asset whose container already stores its own composition plan. The outer plan selects one record and invokes that retained plan through a templateContainer section, using the declared size requirements when trying to fit it. The internal plan controls the content inside the authored container rather than having its sections copied manually into the outer plan. Use this to reuse a prepared layout component; adapting the outer JSON also requires the corresponding authored container asset.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/authored-template-container.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/authored-template-container/1.0.0.json)

### Transactional content bundle

Gives a heading, image placeholder and product card the same required named constraint group. All three use the selected product and must commit in the same physical area. If the bundle cannot satisfy that requirement, the engine rolls back the grouped work instead of leaving a partial presentation behind. This is stronger than simply placing three consecutive sections: the group explicitly defines which pieces belong to one all-or-nothing layout decision.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/transactional-content-bundle.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/transactional-content-bundle/1.0.0.json)

### Group footer kept with content

Sorts products by Category1 and ID, then uses groupFlow to create a heading, product body and footer for each department. The footer is emitted after the group's products and carries keepWithPrevious. If the footer would be stranded in another area, the keep rule prevents it from being separated from the preceding product content. Use this for department summaries or closing furniture that should visually finish a group rather than appear alone at the start of a column.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/group-footer-kept-with-content.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/group-footer-kept-with-content/1.0.0.json)

### Routed continuation layout

Places up to thirty ID-sorted cards into a two-column flow whose area traversal runs right to left. A continuation parent selector chooses the parent used for generated pages. The sample parent includes a full-width obstruction at the top of each page; layer-based obstruction discovery excludes that band so products resume below it. The parent and obstruction are prepared by the sample script, so adapting the JSON requires those document resources as well as the card rule.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/routed-continuation-layout.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/routed-continuation-layout/1.0.0.json)

### Vertical record table without merging

Populates a vertical record table with all 40 products, inserting Category1 subheaders while leaving repeated values in the first three category columns unmerged. This makes the individual record boundaries easy to compare with the merging examples. Post-population cell rules add crossed diagonals to Price values above 100 and generate a separate 7 mm Premium column with a 3 mm rounded blue marker. The two CSS definitions are stored as plan constants, allowing several overrides to reuse the same formatting definition.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/vertical-record-table-without-merging.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/vertical-record-table-without-merging/1.0.0.json)

### Vertical record table with subheaders

Builds a vertical table from two-row record prototypes and merges hierarchical category cells within each composed area. Category1 values choose body and group-furniture prototypes, with defaults for other values. A page obstruction splits the first page's usable space into areas above and below it, forcing continuation. Opening and continued headers identify incoming groups; fragment footers use the last record leaving an area, while final footers use the group's final record. Start/end keeps protect the group boundaries. Resize linked containers to see those decisions recomputed.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/vertical-record-table-with-subheaders.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/vertical-record-table-with-subheaders/1.0.0.json)

### Globally planned vertical record table with subheaders

Uses the same record prototypes, merging, obstruction and continuation furniture as the preceding table example, but considers alternative fragment breaks through bounded global planning. Category1 requests keep-together when possible: the planner first favours retaining complete groups, then applies page-count and balance scoring. Oversized groups may still split subject to their start/end keeps. Candidate sizes include the headers and footers needed at each break. Compare the two table outputs, then resize the first linked container to see how replanning can choose different boundaries.

[Plan JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/plans/globally-planned-vertical-record-table-with-subheaders.json) · [Recipe JSON](EasyCatalog%20Composition%20Recipe%20Catalogue/recipes/globally-planned-vertical-record-table-with-subheaders/1.0.0.json)

<!-- RECIPE_DOWNLOADS_END -->

## Adapt an example to your own data

Start with the example closest to your intended layout. Use the
[UI guide](Composition%20Plan%20UI%20Guide.html) to create a plan from an authored
selection or edit a plan container. Export a fresh composition manifest to
identify the available fields, formatting rules and document resources.

For AI-assisted changes, supply that manifest, the example recipe and a clear
description of your desired layout. Ask for a complete plan JSON with the
bindings resolved. See the [AI Authoring Guide](Composition%20Plan%20AI%20Authoring%20Guide.md)
for the workflow and the [JSON Reference](Composition%20Plan%20JSON%20Reference.md)
for individual settings.

Validate the adapted plan before pagination, then check its first and
continuation pages. Changes to text, images, tables and page dimensions can
change where content fits.
