Note
In this article, we use the term "info elements" to refer to all elements possible to insert inside an info
element. These include copyright
, edition
, volumenum
, author
, and abstract
, see Supported Info Elements.
By default, Paligo only includes some info
elements in your Publication Topic for HTML5 output.
If you need other info elements, you can add them as hidden content in a footer. You can then use your CSS to control whether they are visible and to style them. This is useful if there are specific info
elements that you want to display, such as edition
or volumenum
.
If you choose to include the info
elements, Paligo adds them inside <div class="info-elements">
in the footer-content
div and they are set to be hidden by default.
Paligo creates a div for each info
element and include a class name that matches the element name in Paligo XML. For example, the copyright
element in Paligo XML becomes <div aria-hidden="true" class="copyright">
in the HTML. Paligo will also create <span
> elements in the HTML, where appropriate.
Note
The info elements are limited to the title pages of the publication.
To be able to add the info elements on other pages, a customization will be needed. Please contact Paligo customer support.
To include info
elements as hidden elements in the HTML5 output:
-
Select Layout in the top menu.
-
Select the Layout you want to update or Create a Layout.
Tip
You can copy the URL of the Layout Editor and paste it into a new tab in your browser. This can be useful if you frequently switch between your Paligo content and the Layout settings.
-
Select General in the sidebar.
-
Set Output info elements to:
-
Enable - To set Paligo to include the
info
elements as hidden content in the HTML5. By default, it will include allinfo
elements. -
Disable - To prevent Paligo from including the
info
elements in the HTML. -
Default to inherit the value for this setting from the base Layout. The base Layout is either a built-in Layout provided by Paligo or another custom Layout, see Layout Relationships - Base, New, Duplicate.
-
-
To exclude certain
info
elements, enter their names in the Output info elements filter field. This field is empty by default.Use a semi-colon to separate each
info
element, for example:authorgroup;releaseinfo;
Paligo will exclude any info element that you have listed in the field.
-
Select Save.
When you publish with this Layout, Paligo will generate an HTML5 output that includes the info elements that you have selected.
You can then use CSS to display the info elements and to style them, see Browser Inspection Tool and Upload Customized CSS. You could also use JavaScript to manipulate them, see Upload Customized JavaScript.
Note
When using CSS or JavaScript with info
elements, note that some pages in your HTML may include the elements in the main body as well as the footer. For example, copyright
may be shown in the body as well as the footer. They will have the same class name, and so you may need to use more specific CSS selectors to tell the browser exactly which element to target.
Comments
0 comments
Article is closed for comments.