Containers in a Doc

A page is made from a template, and the template leaves one or more containers open for the page's own components, most often one called main (see Containers). A Google Doc is one flat list of text and tables, so the Doc marks where each container's components start with a table of one cell holding the container's name: a marker.

main

Every open container of the template needs its marker in the Doc, even when there is only one. The components after a marker go in that container, until the next marker. SeedPage's editor writes the markers itself when it makes or changes a page; they matter when you write in Google Docs.

A template with two containers

A template with a main column and a sidebar has two open containers. The page Doc marks both:

main

... the components of the main column ...

sidebar

... the components of the sidebar ...

The template's page in Templates lists its containers and their names. A marker must be at the top of the Doc, not inside another table.

Simple and nested

How markers work is a setting of the whole site: container_mode in the site tab of conf/site, simple or nested. It is never guessed from the Doc, and SeedPage never changes it.

  • simple (the default): a container runs until the next marker or the end of the Doc. There are no closing markers, and containers do not go inside one another.
  • nested: every container is closed by its name after a slash, as in HTML: main ... /main. A page can then group components in containers of its own, inside the template's: container ... /container, to any depth.

A nested page with a group of its own:

main

... components ...

container

... the components of the group ...

/container

/main

When a marker is wrong

Nothing is repaired by itself. The build warns, the content concerned is not shown on the page, and the editor says how many warnings the page has; open the page menu, Warnings, to read them. Then fix the Doc:

Warning

What to do

The Doc has no marker for the container

Add a one-cell table with its name before its content.

Content before any container marker is not shown

Move it after the marker of the container it belongs to, or put the marker above it.

"…" is not an editable container of this page's template

Rename the marker to one of the template's containers, or remove it. The page may be made from another template than you think: see its properties.

The container is marked twice

Remove the second marker.

The container is never closed (nested)

Add /name where it ends.

"/…" does not close the open container (nested)

The closing markers are in the wrong order, or one is extra: close the inner container first.

Simple containers have no closing marker, and do not nest

Remove the closing marker, or the marker inside another container; or switch the site to nested.

The template container is inside another container

Move its marker to the top level, outside every other container.