If you are producing "clean" HTML or XHTML outputs, you can style and customize them in several ways:
-
Edit the settings in the HTML Layout.
-
Create a custom CSS file and upload it to your layout. It will be applied the next time you publish with the layout.
The tree of items you can choose to style in the Layout Editor is divided into a number of sections. Each section is described below, with the items you can style and the options available for them.
Many of the items and options are self-explanatory and have explanations right in the Layout Editor. So only the items that may not be immediately transparent are explained below.
Note
The options here are only for the clean HTML/XHTML, not for HTML5. However, it also has options that apply when you choose to create a Zendesk layout. (Last section)
Tip
Learn how to set the footnote appearance for HTML, HTML5 and SCORM output, see Footnote Settings.
Category |
Description |
---|---|
Output taxonomies as class names |
If enabled, you can get your taxonomy categories into your output as class names for further processing (e.g by css and javascript). |
Value structure for taxonomy class names |
You can set whether class names from taxonomies should output the value and all its descendant values in a taxonomy tree, just the value itself, or the value and its parent. Default: Value and descendants |
Underscore delimiter for taxonomy class names |
When enabled, an underscore ('_') will be used to separate the parts of a taxonomy value output for class names in HTML5, instead of a dash ('-'). For most common purposes this is not necessary, but can be useful if you need to further process the separate parts of the value. Default: disabled (dash is used) |
Taxonomy filtering strategy |
You can set whether taxonomies should be used for filtering, and whether to output the value and all its descendant values in a taxonomy tree, or just the value itself. If you want to enable taxonomies for filtering, the most recommended value is to select "Descendants" to take advantage of the hierarchy of a taxonomy. Default: Disabled |
Output |
If enabled, you can get your role attributes into your output as class names for further processing (e.g by css and javascript). |
Output profile/filtering attributes as class names |
If enabled, you can get your profile/filtering attributes into your output as class names for further processing (e.g by css and javascript), such as creating "on-the-fly" filtering. |
Use |
If enabled, the language attribute |
Glossary popovers |
When enabled, glossary terms will display the definition in a pop over in HTML5 Help Center output, when the user hovers over it. Note: This currently has no effect on legacy HTML5. Default: enabled for Help Center output. |
Category |
Description |
---|---|
Use graphics for code callouts |
If you'd prefer, you can use a graphic for the code callout, an svg image will then be used. Max 30 callouts with this option. |
Use unicode symbol for code callouts |
Another option is to use a unicode symbol for callouts. If this is set a symbol similar to the graphic and Font Awesome version will be used. Max 20 callouts with this option. |
Use Font Awesome glyphs for code callouts |
If you use calloutlist for annotating code samples, you can use Font Awesome for the "callout bugs". This is the default for HTML5. |
Category |
Description |
---|---|
Image Size |
To find out more, see Adjust Image Resolution. |
For HTML outputs (not HTML5), you have the option to suppress navigation. When enabled, this will remove the header and footer navigation from the HTML output. This feature is useful if you are embedding your Paligo content in a custom application that already has its own navigation features.
To enable or disable the navigation suppression:
-
Select Layout and then edit the layout that you are going to use for publishing.
Alternatively, you can create a new HTML layout and edit that.
-
Select Toc and chunking.
-
Set Suppress navigation to:
-
Enable to turn on navigation suppression so that the navigation is not shown.
-
Disable to turn off navigation suppression so that the navigation is shown.
The default is Disable.
Note
If you enable Suppress navigation, make sure that you provide a way for users to access the pages in your HTML output. You could use a custom application to provide the navigation or you can rely on the HTML output's table of contents.
If you are going to rely on the table of contents, set the TOC section depth to a higher value than the Chunk section depth. This will mean that all chunked topics will appear in the table of contents, and so users can navigate to them. (Chunked topics are topics that appear on their own page in the HTML output).
If the Chunk section depth is higher than the TOC section depth, there may be pages that are not shown in the table of contents, and so users cannot navigate to them.
-
-
Check the box Use gateway to enable IP Allowlisting. Optional
When you publish to HTML using this layout, the output will include or exclude the header and footer navigation, based on the setting in the layout.
To customize and style HTML outputs, use a CSS stylesheet. There are also some general settings in the HTML layout that affect the output as a whole.
We recommend that you follow these steps to style your HTML:
-
Create your content in Paligo topics and add to a publication. Some parts of the content can be styled by using attributes, for example, you can set image sizes. But you will apply most of the styling in the HTML layout and in a CSS stylesheet.
-
Create an HTML5 (or plain HTML) layout or edit an existing one.
-
Use the layout settings to choose your publishing settings. These are "overall" settings that apply to the content as a whole. You do not set styles such as headings, font sizes, font colors etc., in the layout. For HTML, you define those in a CSS stylesheet that you can then upload to your layout.
-
Use a code or text editor to create a CSS file. Give it a suitable name and save it with the
.css
extension. -
Give your CSS a simple rule to start with, so that the file is not empty. The rule does not have to contain any styling yet, for example, you could add:
body { }
-
Upload your CSS file to the HTML layout.
The CSS setting for uploading your CSS file is in the CSS, JS, logos and other assets section.
-
Check the box Use gateway to enable IP Allowlisting. Optional
-
Publish any publication that contains a sample of the content that you want to style. When you publish, use the HTML layout that you edited in steps 2-7.
-
When your content is published, unzip the zip file that is downloaded in your browser.
-
Open the Index.html file to display your HTML output.
-
In the unzipped files, go to the out/en/css folder, and find the custom CSS file that you uploaded to your layout. It is called "layout-custom-style.css" if you have enabled the Persistent CSS file name option for your layout. Otherwise, it has a random number ID as its name.
-
Open the CSS file in a text or code editor and add rules in the CSS. Then refresh your browser to see the effects on your help output.
Tip
Use the browser tools to inspect elements and test style changes directly in the browser, before you add styles to your CSS file. For tips on using the browser tools, see Style with CSS.
-
When you are happy with your styling, upload your customized CSS file to your layout again. Paligo will apply your new styles the next time you publish.
Tip
For tips on styling a HTML5 help center, see HTML5 Help Center Styling.
Comments
0 comments
Article is closed for comments.