Specifying Default Document View

By default, Docbook documents are opened paginated, and DITA documents are opened as a single page. The default document view for documents of a particular type is defined in the corresponding Serna document template by means of the property show-paginated. When the property show-paginated has the value false, the document is opened by default as a single page. When the property show-paginated is not defined or has the value true, the document is opened by default paginated.

To configure what document view should be default for documents of a particular type, define the property show-paginated in the corresponding Serna document template:

  1. Open the document template for the document type.

    For example, for DITA 1.1 maps, you'll need the document template located at sernaInstallationPath\plugins\dita\oasis-dita-ditamap-11.sdt. For Docbook 4.5 documents, you'll need the document template located at sernaInstallationPath\plugins\docbook\dbk45.sdt.

  2. Define the property show-paginated with a desired value.
    1. To make documents of this type open as a single page, define the property show-paginated with the value false.

      For example, to make Docbook 4.5 documents open by default as a single page, add the line <t:show-paginated>false</t:show-paginated> in the file sernaInstallationPath\plugins\docbook\dbk45.sdt:

      .....
        <t:template-showup-priority>11</t:template-showup-priority>
        
      <t:show-paginated>false</t:show-paginated>
      .....
    2. To make documents of this type open paginated, define the property show-paginated with the value true.

      For example, to make DITA 1.1 maps open by default paginated, change the line <t:show-paginated>false</t:show-paginated> to <t:show-paginated>true</t:show-paginated> in the file sernaInstallationPath\plugins\dita\oasis-dita-ditamap-11.sdt:

      .....
        <t:template-showup-priority>50</t:template-showup-priority>
        
      <t:show-paginated>true</t:show-paginated>
      .....
    Note: The default value of the property show-paginated is true, so when the property is not defined in the SDT file, documents of this type are opened paginated by default.
  3. Restart Serna.