A layout is a collection of settings made in the Layout Editor that you apply to your content at the time of publication.
Paligo uses the layout settings to determine how to style and process your content when creating the published output. These settings vary depending on the type of layout, for example, the PDF layout has options relating to page borders and page breaks and the HTML layout has options for uploading CSS and JavaScript files.
To publish your content, you have to associate the publication with a layout of the appropriate type. So if you want to publish an HTML5 help center, you will need to have a HTML5 help center layout.
Before you use a layout or create your own layout, we strongly recommend that you learn about Layout Relationships - Base, New, Duplicate. This is because each layout can inherit settings from another layout, and can cause unexpected results if you are unaware of the relationships.
To find out more, see:
Note
To find out about the layouts for integrations, such as Zendesk, refer to the Integrations section.
When you publish Paligo content, you need to use a layout. The layout contains settings that affect how Paligo converts your XML content into the output you want. For example, if you are publishing to an HTML5 help center, you need to use an HTML5 help center layout. Its settings affect how Paligo converts your XML into the HTML pages you see in the finished help center.
For layouts, you can choose to:
-
Use one of the built-in layouts that are provided with Paligo. These cannot be customized, but will create a working publication.
-
Create your own layout, which you can customize to meet your own requirements.
-
Duplicate an existing layout. This creates a copy of a layout, and can save time if you have a layout that has most of, but not all, of the settings you need for your output.
In most cases, you will want to use a custom layout, either a new one, one you created earlier, or a duplicate.
But before you use a layout, it is important to understand the hierarchical relationship between the "base layout" and your custom layout or duplicate layout. Because both custom layouts and duplicate layouts can inherit settings from a base layout, and these can affect the publication that Paligo creates.
A base layout, as the name suggests, is a layout that forms the basis of another layout. It contains the configuration for a certain type of output, such as a PDF or an HTML5 help center.
When you create a new layout, you give the layout a name and choose a base layout. This is where the hierarchical "parent-child" relationship between layouts begins. The base layout defines what:
-
Type of output you can publish with the layout
-
Collection of settings are available in your new layout
-
Default settings will be used for your new layout.
The same principle applies with duplicate layouts. These are copies of existing layouts, and when you create a duplicate, it has the same base layout as the original version.
The main benefit of using a base layout is that you can save considerable time and effort when configuring your publishing settings. You can apply the typical settings in the base layout and these are passed on to the "child" layouts. In each "child" layout, you can then choose whether to use the inherited value for each setting (default value) or override it with a different value.
When you create a new layout, it has to be based on an existing layout (a base layout). This can be either one of the built-in layout types or one of your existing layouts.
The new layout and base layout have a parent-child relationship, where:
-
The new layout inherits the settings of the base layout.
-
In your new layout (the "child"), any setting that is set to Default inherits its value from the base layout. So if you change the matching value in the base layout, the change will also apply to the "child" layout.
-
Any changes that you make in a "child" layout take priority. As soon as you change a setting from Default to another value, that setting will no longer get its value from the base layout.
The following example shows how the relationship between a new layout and its base layout works. But be aware that it is also possible to create complex chains of relationships, as a layout can be a "child" of one layout, but a "parent" to another layout. We recommend that you try to keep your layout relationships as simple as possible, so that they are easier to manage. But if you do create a complex chain of layouts, always bear in mind that a default value is inherited from its base layout.
Note
To learn how to create a new layout and associate it with a base layout, see Create a Layout.
Example 54. New Layout Inherits Settings from the Base Layout
Let's say you have no layouts in your Paligo instance. You want a PDF layout, so you create a new one. When you create a new layout, you give it a name "ACME PDF" and you have to choose a base layout. As you don't have any existing layouts, you choose the Default PDF option, which uses Paligo's built-in PDF layout as the base. You cannot access the default built-in layouts.
Your new "ACME PDF" layout inherits the default settings from the built-in default PDF layout. You can use the new layout as it is, or you can make changes to its settings. All of the settings that show "Default" are inheriting the settings from the base layout.
You decide to edit the "ACME PDF" layout so that its Display language name on sidebar option is set to Enabled.
As soon as you save the layout, the Display language name on sidebar setting uses Enabled. This setting no longer has any relationship with the base layout. It will only be affected by the base layout if you were to set it back to Default.
Now you create another new layout. This time, you name the layout "ALT STYLES PDF" and you set the "ACME PDF" as the base layout.
You edit the "ALT STYLES PDF" layout and see that the Display language name on sidebar setting is set to Default. This means that it is inheriting the value from its closest "parent" base layout. In this case, it is inheriting the value from the "ACME PDF" layout (and so it is actually Enabled as that setting is Enabled in the base layout).
You go back and edit the "ACME PDF" layout and change the Display language name on sidebar to Disabled. This change from Enabled to Disabled applies not only to the "ACME PDF" layout, but also to all of the layouts that are based on it and have Display language name on sidebar to Default. So changing it to Disabled also means "ALT STYLES PDF" inherits Disabled.
You want the "ALT STYLES PDF" to display the language on the sidebar, so you change its Display language name on sidebar to Enabled. At this point, the "ALT STYLES PDF" stops inheriting the value of this particular setting from its base layout. So you have:
-
ACME PDF (base layout) with Display language name on sidebar set to Disabled.
-
ALT STYLES PDF (based on ACME PDF) but Display language name on sidebar is set to Enabled. Display language name on sidebar is not affected by changes to that setting in ACME PDF. Any changes to other settings in ACME PDF will still affect the matching settings in ALT STYLES PDF, but only if they are set to Default in the ALT STYLES PDF.
The ALT STYLES PDF will still inherit changes from the ACME PDF for all settings that are set to Default. It only stops inheriting from ACME PDF where you specifically set the value in ALT STYLES PDF.
A duplicate layout is a copy of an existing layout. It contains all of the same settings as the original version, including the same:
-
Base layout as the original version of the layout
If you make changes to the base layout, those changes will affect your duplicate layout too. This only applies to those settings that are set to Default in your duplicate layout.
-
Settings as the original version of the layout
The settings in your duplicate layout will initially be set to the same as they were in the original version of the layout. But the duplicate is independent and is intended to be a starting point for a different version. Any changes you make in the original do not affect your duplicate.
The idea with duplicate layouts is that you use them when you need a new layout, but already have one that is very similar to what you need. By creating a duplicate of it, you can save time as it already has most of the settings you want. In the duplicate, you can make the changes you want and know that they will not be affected by the original layout's settings.
Tip
To learn how to create a duplicate layout, see Copy a Layout (Duplicate).
Layouts contain a variety of settings that you can use to customize your output. There are templates prepared for HTML, HTML5, FLUIDTOPICS, PDF, MSWORD, SCORM, ELEARNING and XML. You can use Paligo's built-in layouts or you can create your own.
-
PDF layouts have an editor where you select the properties you want for a range of different content types, similar to how you create styles in Microsoft Word. To find out more about the settings, see PDF Layout Editor Options
-
HTML layouts contain many publishing options for customizing your content, including a CSS upload feature. This is where you can upload your own CSS and apply rules that will take priority over any settings in the layout. To find out more about the settings, see HTML5 Layout Editor Options.
Note
If you open the layout tab for the first time, the list will be empty because there are no created layouts.
To create a layout:
-
Select the Layout tab in the top menu.
Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.
-
Select an Output format.
The output format is the base layout for your new layout that defines the:
-
Type of content that you can publish with the template.
-
Source of default values. If you set a value to Default in your new layout, it means the value is inherited from the base layout. To learn more, see Layout Relationships - Base, New, Duplicate.
-
-
Select OK.
Paligo creates your new layout.
-
Select the new layout in the list to open it in the Layout Editor.
-
Use the Layout Editor to choose the publication settings. Paligo will apply these settings when it converts your XML content into the output format.
-
For PDF settings, see PDF Layout Editor Options.
-
For HTML5 settings, see HTML5 Layout Editor Options.
-
For HTML settings, see HTML Layout Editor Options.
-
Note
You can apply common styling features by using the layout settings and uploading your own CSS and javascript (for HTML outputs only).
If you want more advanced customization, including customizing the underlying XSLT, contact Paligo customer support with details of what you want to achieve. We can then look into what is required and provide you with an estimate for cost and timescale.
You can use the Layout Editor to define publication-level settings that are applied when your publish your content. The options available to you vary, depending on the type of layout.
-
PDF layouts have a wide range of settings for styling and customizing your content. We have designed them to make PDF styling simpler, so you can customize your PDF content without any XSLT programming skills.
-
HTML layouts also have settings for styling and customizing your content, and they also allow you to upload your own CSS stylesheets and javascript files. This means you can apply powerful styling changes using CSS or javascript, just like a website.
-
Integration layouts, such as Zendesk layouts. These are HTML layouts with some added functionality that is specific to the integration applications.
Note
If you need more advanced XSLT customization, you can request a customization from Paligo. On the Business plan or higher, you also have WebDAV access, allowing you to make simple edits to such a customization.
Note that if you want to do any XSLT customizations from scratch, you will need an onboarding developer package. Please contact your account manager if you are interested in that.
To edit a layout:
-
Select Layout.
Paligo displays a list of the layouts in your Paligo instance.
-
Select the layout that you want to change. Paligo opens the layout in the Layout Editor.
The Layout Editor has three sections. On the left is a list of categories (1). When you select a category, the settings that are available for that category appear in the middle section (2). You can make your changes there.
-
On the left is a list of categories (1). When you select a category, the settings that are available for that category appear in the middle section (2).
-
The middle section (2) shows the settings that are available for the selected category (1). You can use these settings to make your changes.
-
The preview area (3) is for PDF layouts. You can preview any publication. If you want to preview topics that are not in a publication, you can add them to a temporary publication and then view that.
Note
If your PDF preview does not display, it may be due to an issue with the Adobe Reader plug-in. To fix the problem, access your browser's settings, turn off the Adobe Reader plug-in and then switch back to the default PDF preview. Firefox, Chrome, and Safari all have their own built-in PDF viewers.
-
-
Use the categories and settings to make your changes. When making changes it is important to understand what happens if you set a value to Default.
Every layout that you create has a base layout. This can either be one of the built-in layouts or a layout that's been created in your Paligo instance. The base layout provides the values that are used when you set a value to Default.
-
When you edit a layout and set a value to Default, it means "inherit this value from the base layout".
-
If you edit a layout and set a value that is not Default, it means "use this value and do not inherit from the base layout".
To learn about the relationship between base layouts and new layouts, see Layout Relationships - Base, New, Duplicate.
-
-
When you have made your changes, select Save.
When you publish, you need to choose a layout for the publication. Your saved layout will be available to choose for the relevant publication type. For example, if you edited a PDF layout, you will be able to choose it when you publish a PDF output.
If you have an existing layout that has most of the settings you want to use for a new layout, you can copy it. This can be quicker than creating a new layout from scratch. When you copy a layout, you create a "duplicate" that is a completely separate layout that has all the same settings and values as the original layout, but no ongoing relationship with it.
This means:
-
Changes you make in the original layout have no effect on the duplicate
-
Changes you make in the duplicate have no effect on the original
-
Changes you make in the base layout of the original, can also affect the duplicate. This is because the original layout and the duplicate both have the same base layout. And so any settings that are set to "default" will inherit the values for those settings from the base layout. To find out more see Layout Relationships - Base, New, Duplicate.
Note
If you want a layout that does inherit default settings from another layout, create a new layout rather than a duplicate.
To create a duplicate of a layout:
-
Select Layout.
-
In the list, find the layout that you want to duplicate and select its option menu ( ... ).
-
Select Duplicate.
Paligo creates a copy of the layout you selected. The copy has the same name as the original layout, but with "copy <number of copy>" added.
If you have a custom layout that you no longer use, you can delete it from your Paligo instance. Once it is deleted, it is unavailable to Paligo users and so you will need to publish with one of the built-in layouts or one of your other custom layouts.
To delete a layout:
-
Select Layout.
-
In the list, find the layout that you want to delete and select its option menu ( ... ).
-
Select Delete and then if you are sure you want to remove it, select Confirm.
If Paligo will not allow you to delete a layout, it is most likely because the layout is a base layout. This means that other layouts rely on it for their default settings.
All layouts are associated with a base layout. You cannot delete a base layout until all of those associations are removed.
For example, let's say you have an "ACME PDF 1" layout. You then create an "ACME PDF 2" layout and base it on "ACME PDF 1". The two layouts now have a relationship. If you try to delete "ACME PDF 1", Paligo will reject the deletion, as "ACME PDF 2" relies on "ACME PDF 1". To delete "ACME PDF 1" you must first delete "ACME PDF 2" so the relationship and dependency is gone.
When you create a layout, you have to give it a name and set its base layout. The base layout defines what type of content the new layout can create and it also provides the default values for the new layout (see Layout Relationships - Base, New, Duplicate). If, for some reason, you need one of your layouts to use a different base layout, you can rebase it.
Rebasing means associating a layout with a different base layout of the same type. For example, if you created a PDF layout based on the built-in default PDF layout, you could rebase it on one of your own custom PDF layouts.
Note
You cannot rebase a layout on a completely different type of layout. For example, if you have a PDF layout, you can only rebase it on the various PDF layouts in your Paligo instance. You cannot rebase it on an HTML5 layout or any other type of layout.
To rebase a layout:
-
Select Layout.
-
In the list, find the layout that you want to rebase and select its option menu ( ... ).
-
Select Rebase and then choose the new base layout from the dropdown list.
-
Select OKto confirm.
Paligo rebases the layout. Your layout will now inherit its default settings from the base layout you have set.
In the Layout Editor there are some layout options for cross-references. You can customize the information included in auto-titles, make external links open in a separate tab and more. An auto-title is the text that appears when a cross-reference is added.
To customize cross-references for PDF or HTML output:
-
Select the Layout tab in the top menu.
Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.
-
Select the layout to be updated or Create a Layout.
-
Select Cross-references in the sidebar.
-
In Enable cross-reference auto-title customization select:
-
Enable to activate auto-title customization.
-
Disable to deactivate the possibility to customize auto-titles. Default
-
-
Add keywords in Cross-reference auto-title to customize cross-references for topics.
Default is
title page
. -
Add keywords in Cross-reference auto-title for formal elements to customize the cross-references for lists, figures, tables, equations and examples.
Default is
label quotedtitle nopage
. -
Add keywords in Cross-reference auto-title for appendices to customize the cross-references for appendices.
Default is
label title page
. -
Enter a character (or a combination of characters) in Cross-reference label / title separator to customize the separator.
Default is
:s
which adds a colon and a space between the label and title. -
Choose how to open external links in Open external website links in new tab or window.
-
_blank
- The link will open in a new tab (or on older browsers a new window). Default -
_self
- The link will be opened in current tab or window. -
_parent
- The link will be opened in the parent frame. Frames are deprecated in HTML5. -
_top
- The link breaks out of all frames and opens in the current tab or window. Frames are deprecated in HTML5.
-
-
Set Add rel = noopener to external links that open in new tab or window to:
-
Enable to force external links to open in a new tab. Default.
-
Disable to stop external links to open a new tab and instead open the link in current tab.
-
-
Set Use angle bracket delimiters around email to:
-
Enable to use delimiters around email addresses. Default
-
Disable if delimiters are not be used.
-
-
Select Save.
By using the keywords below, you can customize the auto-titles for cross-references. As with all auto-text, the keywords will be translated automatically when you publish to another language.
An auto-title can consist of one or more keywords. Add a space between each keyword. The order of the keywords does not matter. Paligo will automatically rearrange the components as follows (depending on which you use):
-
label
-
title
-
page (only for PDF output)
Example 55. Quoted text with page number and label
labelname quotedtitle page
Result: Section "My Topic Title" (page 15).
Tip
You can override the format for individual cross-references by using the xrefstyle
attribute. In that case, use the same values, but start with "select: "
. For example, select: quotedtitle nopage
.
Component |
Keyword |
Example |
Description |
---|---|---|---|
label |
|
Table 3 |
Complete label name and number. |
|
Table |
Only the label name. |
|
|
3 |
Only the label number. |
|
title |
|
My Topic Title |
Title without quotes. |
|
"My Topic Title" |
Title in quotes. |
|
page |
unspecified |
[12] |
Standard page citation if no value is given for the page component. |
|
(page 12) |
Page number in parentheses. |
|
|
, page 12 |
Page number after a comma. Note that this format may be unsuitable for some languages. Some languages use commas in a different way. |
|
|
Page 12 |
Capitalized page label. |
|
|
(p. 12) |
Abbreviated label in parentheses. |
|
|
, p. 12 |
Page number after a comma and page abbreviated. This option does not work with all languages. Make sure you check for languages you translate to. In many cases, languages can be added with a request to support. |
|
|
12 |
Only the page number. |
|
|
Turn off the page number for the cross-reference. |
Bibliography topics get auto titles by default for HTML, HTML5 and PDF output. If you want to add your own title, this feature can be disabled.
Tip
For PDF output, this setting is found under General → Glossary, Index, and Bibliography in Layout Editor.
To enable or disable bibliography auto titles for HTML or HTML5:
-
Select the Layout tab in the top menu.
Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.
-
Select the layout to be updated or Create a Layout.
-
Select General in the sidebar.
-
Scroll down to Bibliography auto title.
-
Select the if auto titles are to be used:
-
Enable to activate auto titles. Default
-
Disable to turn off the auto titles.
-
-
Select Save.
You can set the footnote appearance for HTML, HTML5 and SCORM output in the Layout Editor.
This instruction shows how this is done for HTML5 output.
-
Select the Layout tab in the top menu.
Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.
-
Select the layout to be updated or Create a Layout.
-
Select Footnote formatting in the sidebar.
-
Choose a number format for General footnotes from the menu.
Default value is 1.
-
Choose a number format for Table footnotes from the menu.
Default value is a.
-
Select if the footnotes are to be Enclosed in square brackets.
Default value is Yes.
-
Select Save.
The default layout setting for how images are stored in Paligo HTML outputs, makes one separate image folder per language. If you are using some images for all languages, it is possible to reduce the size of the publication by using one common folder instead. This option is set in the layout configuration for HTML or HTML5.
-
Select the Layout tab in the top menu.
Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.
-
Select the layout to be updated or Create a Layout.
-
Select Images in the sidebar.
-
Scroll down to Per-language image folders.
-
Select Common from the menu.
-
Select Save.
Comments
0 comments
Article is closed for comments.