Lesson 3.4: Containers and the Full view block
Two blocks are different from all others. Containers hold other blocks, so a zone can be split into columns without a new layout type. The Full view block shows the page's own content item inside a layout, so a layout can frame ordinary content pages. This lesson teaches both.
At a glance
| Course | Exponential Layouts |
| Module | Module 3: Blocks |
| Duration | 45 minutes (15 presenting, 30 exercise) |
| Level | Intermediate |
| Audience | Editors, site builders and designers |
| Prerequisites | Lesson 3.3 |
Learning objectives
After this lesson, learners can:
- add a Two columns, Three columns, Four columns or Column container and fill its placeholders;
- change a two-column container's split with its view type;
- explain why nesting should stay shallow;
- add a Full view block and explain what it shows on each page the layout is used for;
- name the component blocks and where their use is listed.
Trainer's notes
How to present it
Sources: Exponential Layouts: Containers and nesting and Block catalogue.
Containers (4 minutes). Four container blocks, each with placeholders (named slots like small zones):
Container Placeholders Two columns left,rightThree columns col_1,col_2,col_3Four columns col_1tocol_4Column mainTwo columns has the view types
two_columns_66_33andtwo_columns_33_66for the width split; changing the view type reflows without moving blocks.Nesting (2 minutes). Containers can nest; two levels are easy to edit, four are not.
Full view (4 minutes). In the Placeholders group. It renders the current content item in its normal full view: on an article it shows the article. Most page-shell layouts need exactly one. A layout with a Full view block mapped to a subtree frames every page in it.
Components (3 minutes). The Components group holds pre-designed sections (hero, features, about, logos, quote, lead) with several styles each. The Components screen of the Layouts tab lists where each is used.
Common questions
Why does my Full view block show nothing in the editor? The editor has no current content item; the preview or the site shows it with real content.
Containers or a layout type with more zones? Containers inside a simple shell are more flexible; a new layout type is a developer's task.
Are containers responsive? The column templates carry the theme's responsive classes; check on a phone width.
Pitfalls
- Dropping into the container instead of a placeholder. Aim for the drop area inside the container.
- Two Full view blocks. The content appears twice.
- Deep nesting. Stop at two levels.
Hands-on exercise
Use the training installation and your course layout.
- Open your course layout with Open (continue your draft if asked).
- Press Add a block, open the Containers group and drag Two columns into MAIN above the Rich text block.
- Drag the Rich text block into the container's left placeholder and the Button / Link block into the right placeholder.
- Select the container and, in Design, change its view type between
two_columns_66_33andtwo_columns_33_66. Watch the split change. - Open the Placeholders group and drag a Full view block into MAIN below the container.
- Open the Components group and read the block types it offers. Do not add one.
- Choose Save draft and close.
- Open Components in the Layouts tab's left menu and find where one component is used on the training site.
Expected result
- The draft has a two-column container with the rich text left and the button right, and a Full view block below.
- The learner saw the split change with the view type.
- The trainer checks by opening one learner's draft on the projector and naming the placeholders.
Quiz
- What is a placeholder?
- Which view types does the Two columns container have?
- What does a Full view block show? A. A list of articles B. The current content item in its full view C. The site's header D. A picture
- How deep should containers nest?
- Where do you see which pages use a component?
Answers
- A named slot inside a container that holds blocks, like a small zone (Exponential Layouts).
two_columns_66_33andtwo_columns_33_66.- B.
- Shallow: two levels are easy to edit.
- On the Components screen of the Layouts tab.
Further reading
Related pages
- Module 3: Blocks
- Exponential Layouts: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.