Template design - Multiple-Column Layouts

Introduction

EDS Publisher offers the possibility of setting the flow to be displayed on multiple columns, like in a case of a newspaper, or magazine. This option can be added for the whole document or for just one layout.

This article will guide you on how to split your content in multiple columns according to your needs, covering the following topics:

  • How to add columns to your Page Layout;
  • How to span some content on multiple columns

How to create multiple-column Page Layouts

In order to have the flow content set to be shown on multiple pages, please follow these steps:

  • From the Ribbon navigate to the View tab;
  • Click the Pagination button;
  • Select the Add new layout button to create a new layout;
  • From the Regions Layout tab choose the number of columns from the Count numberbox;

Note: The "Gap" property indicates the distance set between each two columns.

How to Span content over multiple columns

Once you have your Page Layout set, there are some cases when you want to ignore the Page Layout and just span the entire content of a paragraph as if you wouldn't have any columns defined (for example, if you have a title, or an image).

If you wish to have elements that span all of the columns, please follow these steps for each paragraph:

  • From the Ribbon navigate to the View tab;
  • Click the Properties button;
  • Select the element you wish spanned;
  • From the Miscellaneous group give the all attribute to the Span property.

Important! The "span" property is mandatory to be set on elements that are direct children of the <fo:flow/> element! If the element with the span property is not a direct child of <fo:flow/>, then the span property will not be taken into account.

Solution: If the element we wish to span on multiple columns is inside another element, like a block or conditional element, the following property must be used on each ancestor of the spanned paragraph: xf:force-remove-on-xslt="true".

To set this property, you need to follow these steps:

  • From the Ribbon navigate to the View tab;
  • Select the XML View button from the Document Views group;
  • Add the xf:force-remove-on-xslt="true" property to all the parents of the element you wish to span, until you reach the <fo:flow flow-name="ssl-region-body"> tag;

    In the example below, the spanned block is not a direct child of <fo:flow>, because it is nested in two elements: an <fo:block/> and an <xfd:block-repeat> (which is converted into a new <fo:block> for each iteration).

    Because of this, both elements (main <fo:block> and <xfd:block-repeat>) have the xf:force-remove-on-xslt property set.

  • For a better understanding of this property, attached you will find two samples, one that has elements set as direct children of the flow, and one that doesn't.

 

Have more questions? Submit a request

Comments

Powered by Zendesk