Skip to main content

Content Reuse

Abstract

Content reuse is the practice of using the same content in multiple places to save time and effort.

With Paligo's content reuse features, you can write the content once, in one place and reuse that content in multiple topics and publications. This will save you time and effort, but also result in a more consistent look and feel.

This means that you can reuse the same warning message, procedure steps or safety chapter. By using Variables and Filtering / Profiling (conditional text) you can vary the content depending on product and still use the same topics.

Tip

If you are new to content reuse, structured authoring and single-sourcing, it's easy to be overwhelmed by the reuse features at your disposal in Paligo.

Read The 5 Principles of Single Sourcing to find the right balance for such techniques in single-sourcing.

Content reuse with topics in three publications
Content reuse in three topics

To the left - Reuse a topic in multiple publications. To the right - Reuse elements, such as paragraphs, in multiple topics.

What is the difference between content reuse and copying?

With content reuse, you use the same content in multiple places. There are no duplicates. You reuse the same piece of content. If you change it, the alterations will be applied to every topic that reuses the content. A single-source of truth that only requires you to update in one place.

reuse-v-copy-1-new.jpg

With reuse, the same element is inserted multiple times. Here, the "Select Save." para element (1) is used twice.

Copying is different, as you make a duplicate of the original. The copy is completely separate from the original. Cutting and pasting should be avoided, since it only leads to a multitude of duplicate content where you update one place, but forget another, you have to translate multiple copies of the same content just because they differ only slightly and so on.

As a general rule, we recommend that you reuse content when you want to use the same content in multiple places. Use copy if you want to use an existing piece of content as a starting point for a new, customized piece of content that will be separate to the original.

reuse-v-copy-2-new.jpg

With copy, the element (or text in the element) is duplicated. The copy (2) is a separate element to the original (1).

Tip

Learn more about copying content, see Copy Content

There are many ways to reuse your content in Paligo:

  • Topic reuse - Reuse Topics by adding them to different publications. You can also embed one topic inside another topic as a subsection.

  • Publication reuse - Create a Parent Publication by adding it to a main publication. For example, if you have a series of user guides, you can publish them all as one combined output by adding them to a single publication.

  • Structure reuse - Reuse Forks. For example, if you have a "chapter" that consists of a main topic and several sub-topics, you can reuse the entire "chapter".

  • Text fragment reuse - Every paragraph that you create is stored in a database and is available for reuse. This means that you can Reuse Text Fragments, Reuse Items in a List, steps in procedures and other types of block element without prior planning. For example, if you create a para element and add "Select Save" as the text, you can reuse that same paragraph everywhere that you need the "Select Save" text to appear.

  • Informal topic reuse - Informal topics are a way of grouping different types of elements as reusable content, for example, two paragraphs and an image. To reuse a group of elements, you can Create an Informal Topic and import it to any of your "regular" topics.

  • Admonition reuse - You can Reuse Admonitions to use in your topics.

  • Variables - You can reuse single words or phrases by using Variables. First, you create variable sets that contain the words and the text that you want to use for those words. Then you can insert these variables in your topics. Paligo has support for several types of variables, plain text variables, image variables, XML variables, and translatable variables. There are also Dynamic Text Variables, which can output today's date and similar content.

  • Filtering / Profiling - Filtering / Profiling makes it possible to make content more reusable by applying filtering (like the element attributes xinfo:product or xinfo:market) on parts of it, so that the topic becomes reusable in multiple context. With variable sets, it is possible to insert a variable that changes value according to chosen market or product.

    Filtering is sometimes traditionally called "conditional text", but it applies to more than just text, it can be any kind of content, including images, videos and so on. This is often used when information is reused between different products or markets, for example technical specifications, to change data depending on model, change images or hide information for certain markets or models.

Note

You can also reuse the images in your Paligo Media library.

When content is added to a publication, you create special links called Forks. What you see in the publication structure is actually links to the topics. This means that you can reuse each topic in as many publications as you want. This is beneficial if you produce a range of different products that use the same information (like an introduction, a safety or scrapping chapter). You only create the content once and reuse it in various publications. Then, if you need to update the content, you make the changes in one place and the update will apply wherever that topic is reused.

If you have certain parts of the content that differentiates between products (like a product name, images or specifications) or need to be able to show or hide content (like warnings or procedure steps), you can use Variables and Filtering / Profiling.

Note

To reuse a topic multiple times in the same publication, you will need to set up the topics differently, so that the search can differentiate between each instance of the topic, see Reuse a Topic Multiple Times in the Same Publication.

Tip

You can also reuse publications, see Create a Parent Publication.

SmartPhone_A.png
SmartPhone_B.png

The Safety topic is reused in the publication for both SmartPhone-A and SmartPhone-B.

To reuse topics in publications:

  1. Select the publication in the Content Manager. Publication.png

    Publication selected in the Content Editor. Paligo displays the publication's structure view next to it, showing a hierarchical structure of topics, similar to a table of contents.

    Paligo displays the publication's structure.

  2. Drag and drop the topic you want to use into the publication structure.

    Add_and_Reorganize_Content_to_publication.gif

    Added content will appear at the bottom of the publication structure.

  3. Rearrange the topic position with the arrows or drag and drop it in the structure.

    Arrow buttons used to change position of content forks in publication structure.

    Note

    Top-level topics (1, 2, 3) in the publication structure will be displayed as a top sections in PDF output and as separate pages in HTML output.

    Lower-level topics (1.1, 2.1, 3.1) will appear as subsections in PDF output. In HTML outputs, you can control whether you want the subsection topics to appear as separate pages or as subsections of a higher level "parent" page, see Use Chunking to Control Subsections.

    To find out about controlling how subsections are used, see Headings and Subheadings.

  4. Select Save to confirm the publication changes. Save_Publication.jpg

  5. Repeat this process for each publication that needs to reuse the topic.

If you need to reuse the same topic multiple times in the same publication, copy and paste the topic's fork in the publication structure. The original fork and the copy will both reference the same topic, but the forks will have unique IDs. This is important for cross-references, as it means you can cross-reference to a specific fork in a publication, rather than the topic.

To learn how to copy and paste a fork, see Reuse Forks in the Same Publication.

To learn how to add cross-references to a fork, see Add Cross-References to Other Topics.

Note

If you add a cross-reference to a topic instead of a fork, the link will work, but it may expand the wrong part of the publication structure. This is because the browser will usually open the "table of contents" at the first instance of that topic in your publication.

To help you save time when creating publications, you can reuse Forks. These are the references from a publication to its topics.

There are two ways to reuse a publication's forks:

  • Reuse a fork in different publications

    You can reuse a fork (and its lower-level forks) in a different publication. This helps to save time when creating similar publications, see Reuse Forks in Different Publications

  • Reuse the same fork multiple times in the same publication

    If you need a topic to appear multiple times in one publication, add a fork to it and then copy-and-paste that fork, see Reuse Forks in the Same Publication.

You can reuse parts of a publication's structure in other publications. This will help you to save time when creating new publications that are similar to existing ones. It will also reduce the amount of work needed when updating your publications.

To share the publication structure, you reuse the Forks. These are the references from a publication to the topics that contain the content.

When you reuse forks, there is an "origin" publication, where the original forks were made and there is the "target" publication where they are reused. In the target publication, reused forks are shown with a reuse symbol Reused_Fork_symbol.png and you can only see the top-level fork. You cannot expand the fork to reveal any lower-level reused forks inside it.

ReuseTopicsandSubtopics_1.jpg
ReuseForks.jpg

You can select a topic fork (origin publication) and reuse it in a different publication (target publication).

To reuse forks in different publications:

  1. Select the target publication in the Content Manager to open its structure. Publication.png

    BeforeForkReuse.jpg
  2. Expand the origin publication in the Content Manager.

    Expand_PublicationForks.jpg

    The number to the right of a fork represents the number of forks included.

  3. Hold down Shift and then drag-and-drop the fork you want to reuse into the target publication structure.

    ReuseForks.jpg

    The fork will appear at the bottom of the publication structure.

  4. Select the fork and use the arrow buttons to move it to a position of your choice in the structure.

    Arrow buttons used to change position of content forks in publication structure.
  5. Select Save to confirm the publication changes. Save_Publication.jpg

You can copy and paste a publication fork (and its lower-level "child" forks). This is quick way to reuse parts of the structure multiple times in the same publication. For example, let's say you had a "Safety Precautions" topic that needed to appear in two different places in a publication. Instead of adding the same topic twice, you could add it once and copy and paste its fork.

Note

A fork is a reference from the publication's structure to a component, such as a topic, in the Content Manager. The fork is only the reference to the component. It is not the actual component.

To copy and paste a fork:

  1. In the Content Manager, select the publication that you want to view.

    Paligo displays the publication's structure.

  2. Select the fork that you want to copy.

  3. Select the dotted menu ( ... ) for the fork and then select Copy with children.

    Publication structure. A fork's dotted menu is selected revealing a menu. The Copy with children option is highlighted.

    Copy with children option for a fork.

    Paligo makes a copy of the fork (and any "child" forks nested at a lower level), ready for you to paste it elsewhere in the publication structure.

  4. Select the dotted menu ( ... ) for the fork that you want to be either:

    • Directly above the fork that you are going to paste into the publication

    • A "parent" of the fork that you are going to paste into the publication.

  5. Select Paste followed by either:

    • Child

      To paste the copy so that it is one-level down from the "parent" topic.

      For example, in the following image, the"Customer Support" fork has been copied and pasted as a child of "Safety Precautions".

      Publication structure. A fork has been copied and pasted into the structure. It is pasted in one level below the topic that is above it.
    • After

      To paste the copy so that it appears after the fork you selected in the previous step. It is pasted below that fork, but at the same level.

      For example, in the following image, the "Customer Support" fork has been copied and pasted after the "Safety Precautions" fork, at the same level.

      paste-after.png
  6. Repeat the paste process for each instance of the fork that you need in the publication.

  7. Select Save.

You now have multiple references to the same topic(s) in your publication.

Note

When you save, Paligo gives the copy of the fork a new ID. This is so that you can add cross-references to a specific fork if required. For example, if you need to cross-reference the second instance of a topic in a publication, you can cross-reference that topic's fork rather than the topic itself (see Add Cross-References to Other Topics).

The Informal topic makes it possible to reuse a collection of elements. For example, if you want to reuse a paragraph and an image together, they can be combined in an informal topic.

An informal topic is not a standalone component like a regular topic and must therefore be part of another component or topic. This means you can combine informal topics as "children" inside a "parent" informal topic. You can reuse the informal topic in as many regular topics as needed.

To preview an informal topic, you have to insert it into a regular topic, see Insert Component.

Tip

Use the role attribute called reuse-range to reuse procedure steps or list items, see Reuse a Sequence of List Items.

Watch this video or read the instructions below.

To create an informal topic:

  1. Select the Dotted Menu (...) for the folder where the informal topic is to be stored.

  2. Select Create Content. Preview_HTML.png

  3. Enter a name for the informal topic.

  4. Select the checkbox for Informal topic. Informal_Topic.png

  5. Choose the Language(s) to support. Open_Settings_small.png

  6. Select the checkbox Open in editor.

  7. Select OK.

  8. Add your content the same way that you add content to a regular topic.

  9. Select Save. Save icon.

The informal topic is now ready to be inserted in regular topics.

If you have created informal topics or reusable components, you can insert them as components in topics. The components will become nested content and they can be arranged in the XML Tree View just like other content.

  1. Position the cursor where the component is to be inserted.

  2. Select the Insert tab in the Toolbar.

    Toolbar_Insert_small.png
  3. Select Component. Insert_Component.png

  4. Select the component to be inserted.

  5. Select OK.

  6. Select Save. Save icon.

You can make a reusable component of subsections or Admonitions. A subsection will turn into a standalone topic and an admonition will turn into a reusable component. This means that you can begin creating your content in one topic and then create reusable admonitions or divide it into separate topics.

The benefit of making the subtopics into standalone topics is that it will be easier:

  • To find in the published output, because it will turn up as a standalone topic.

  • To find it in the Content Manager.

Tip

To reuse a paragraph, a list or steps in a procedure, see Create an Informal Topic.

  1. Select the subsection or admonition in the Element Structure Menu.

  2. Select Convert to reusable component.

    Convert_to_Reusable_Component.png
  3. Enter a name for the component.

    Convert_To_Reusable_Component_2.png
  4. Select where to save it. Select_Folder.jpg

  5. Use the checkbox Reuse the component at position to decide whether to reuse the component at its current position or not. If you clear the box, the component is removed from its current position in the topic.

    Note

    When reusing the component inside the original topic, it becomes a nested component.

  6. Select OK.

  7. Select Save. Save icon.

If you want to remove an inserted component from the topic:

  1. Position the cursor inside the inserted component.

  2. Select the component in the Element Structure Menu.

    Remove_Inserted_Component.jpg
  3. Choose Delete. Delete_small.png

  4. Select Save. Save icon.

If you already have topics, it is possible to convert them into informal topics via the Structure View. This may save you time when making parts of a topic into an informal topic.

  1. Make a copy of the topic.

  2. Select the Dotted Menu (...) for the copy in the Content Manager.

  3. Select Edit and choose Open Structure. Open_Structure_small.png

  4. Change the Subtype to Informal topic in the Metadata Section. ⌄

    Metadata for a topic has a subtype option for converting into other components, including informal topics.
  5. Select Update.

  6. Close the Structure View with the X in the top right corner.

    Structure View of a publication. The Content Manager is shown in a sidebar on the left. The Structure View is shown to the right and looks like a table of contents, with topics organized into a multi-level hierarchy.
  7. Select the copy in the Content Manager to open it in the Editor.

  8. Remove its title element.

    Your topics will contain a title, so there is no need to have an additional title in the informal topic.

  9. Select Save. Save icon.

  10. Select the origin topic Content Manager .

  11. Insert the created informal topic.

  12. Remove the part that became the informal topic.

  13. Select Save. Save icon.

Every paragraph (or other textual block elements, such as titles and captions) that you write in Paligo is stored in the database and is available for reuse. Reusable paragraphs are also known as reusable text fragments. By reusing paragraphs, you can save time with content creation and updating and make your content more consistent.

The idea is to try and write a paragraph once, in one place, and then reuse it wherever needed. For example, if you are documenting software and you have a 'Click Save' paragraph, you can reuse that in all of your processes instead of writing different versions or copying and pasting. You do not need to make special types of content or store them in selected folders - as soon as you write a paragraph and save it, it becomes available for reuse.

Tip

Another way to create reusable components is to Create an Informal Topic.

Every paragraph that you write in Paligo is stored in the database as a "text fragment". This means that there is no need to store individual paragraphs separately for reuse, as every paragraph is made available for reuse automatically.

Watch this video to find out how to use the Reuse Text feature.

To find a paragraph to reuse in a topic:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Position the cursor at a valid position for a paragraph element (para).

    For example, directly above or below another paragraph or inside a step element in a procedure.

  3. Enter the text in the Reuse Text Panel search field. Search.png

    reuse-text-sidebar.jpg

    Paligo will show both close and exact matches that exist in the database.

  4. Select the match to insert it into the topic.

    reuse-text-sidebar-2.jpg
  5. Choose to:

    • Reuse fragment to insert the text as a reused paragraph.

      A chain symbol will show that the paragraph is reused.

      reused-text-fragment.jpg
    • Insert as content to insert the text as a regular paragraph. This is the same as entering a completely new paragraph as it will be saved with a unique id and is completely separate from other text fragments.

    Reuse_Fragment_menu.jpg
  6. Select Save. Save icon.

When you add a reused text fragment to a topic, it is made unavailable for editing. This helps to prevent people from changing the content of the text fragment to suit one specific topic without considering the other topics where the fragment is used.

But it is possible to edit a reused text fragment. To find out how, watch the video or read the instructions below.

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the reused text fragment (paragraph) you want to edit in the topic.

  3. Select the para#text element in the Element Structure Menu.

    Edit_Reused_Fragment.jpg
  4. Select Edit reused fragment from the menu.

  5. Edit the reused text.

    Note

    Note that any changes you make will be applied wherever the text fragment is used, and so could affect many different topics.

  6. Select Save. Save icon.

A reused text fragment gets a chain symbol in front of it. This instruction shows how to disable a text from a reused text fragment.

  1. Position the cursor inside the reused text fragment.

  2. Select the para#text in the Element Structure Menu and choose Disable reuse. Disable_Reuse.png

    Disable_Text_Reuse.jpg

    The text will now be disabled from the reused text fragment and the chain symbol in front of it disappears.

  3. Select Save. Save icon.

In technical publications, it is quite common to have list items and steps that are repeated in various different topics. For example, if you are documenting software, it is likely that you will use a 'Save' step in lots of different procedures.

In Paligo, there are two different ways to reuse steps. You can use:

  • The reuse text feature for single list items or steps

  • An informal topic to reuse a sequence of list items or steps.

Note

If you want to reuse an entire list or procedure, add the list/procedure to an informal topic. You can then add the informal topic to other topics where appropriate.

To find out how to reuse items in lists, see the following sections.

If you only want to reuse a single item or step in a list, you can use the Reuse text feature. This works in the same way as reusing a text fragment.

The text in a step or list item is enclosed in a para element. For example, a step in a procedure looks like this: <step><para>The text for the step.</para></step>. So to reuse a single step, you should first create a new step, and then reuse a para element inside it.

To find out how to reuse a single step, watch the video or read the following instructions:

  1. Open the topic that you will insert the reused step into.

  2. Add an extra step for the list or procedure. You can add an extra step by clicking at the end of the previous step and pressing Enter. Alternatively, position the cursor at the appropriate position and use the Element Context Menu to add a new step or listitem element.

  3. Click in the para element that is created for the new step.

    create-extra-step.png
  4. In the Reuse text section, search for the text of the step/listitem that you want to reuse.

    reuse-text-list.png
  5. When Paligo finds the step/listitem, select it and choose the Reuse fragment option.

    reuse-fragment-list.png

    Paligo adds the text into the step.

    fragment-added-list.png

    The text is a reused fragment and is locked. If you want to edit it, you will need to unlock it, but be aware that any changes you make will apply wherever that text is used, not just in your topic.

To reuse a sequence of items or steps in a list, add the sequence to an informal topic. You can then insert the informal topic inside a list in a regular topic. This is useful when you have multiple steps that are the same in many different topics.

You will also want to make sure that any numbering flows with the rest of the list. Paligo has a role attribute called reuse-range that makes this possible.

To find out how to reuse a sequence of steps in a list, watch the video or follow the instructions:

  1. Create an Informal Topic.

    informal-topic-list-create.png
  2. Open the informal topic in the Editor.

  3. Add the list or procedure steps you want to reuse in other topics. You can add a bullet list, number list, or procedure by using the toolbar icons in the Edit menu.

  4. Select the procedure element (itemized list or orderedlist) in the Element Structure Menu and choose the Go to element.

    informal-list-goto-element.png
  5. Add the role attribute in the Element Attributes Panel and set its value to reuse-range.

    reuse-range.png

    This allows Paligo to apply the correct sequence of numbering before and after the informal topic.

  6. Select Save. Save icon.

  7. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  8. If the topic does not already contain the list or procedure, insert one.

  9. Position the cursor at the position where you want the steps in the informal topic to appear.

    Note

    The cursor position is very important, as if it is an incorrect position, the informal topic cannot be added.

    Use the Element Structure Menu to make sure that the cursor position is correct.

    insert-inside-list.png

    For the informal topic steps to appear between other steps in a list, position the cursor between the steps.

    insert-top-of-list.png

    For the informal topic steps to appear at the start or end of an existing list, position the cursor above the first step or below the last step.

  10. Select the Insert tab in the Toolbar.

    Toolbar_Insert_small.png
  11. Select Component and browse to the informal topic. Insert_Component.png

    Paligo adds the informal topic at the selected position (as long as you selected a valid position). The numbers of the steps in the informal topic adjust to fit in with the sequence of numbers in the existing list. If you add steps before or after the informal topic, they will also continue the correct numbering sequence.

  12. Select Save. Save icon.

You can draw the reader's attention to information by using admonitions, such as warning, caution, danger, tip and note. These are special pieces of content that stand out from the rest of your content and often have a special icon.

This type of content is often highly repetitive and so ideal for content reuse. In Paligo, you can create a library of notes, warnings, and other messages and reuse them wherever they are needed. There is no need to copy and paste or duplicate the information.

warning.png

Warning Icon

There are two ways to create admonitions (Note, Warning, Caution, Danger, Notice, Important, or Tip). You can create them as elements in a topic, see Admonitions or you can create them as reusable pieces of content.

It is the same technique to create different types of admonitions, just select the appropriate admonition type..

Watch this video on how to create a reusable warning and insert it into a topic. Alternatively, follow the instructions below.

To create a reusable admonition:

  1. Select the Dotted menu (... ) to the right of the folder that is to contain the content in the Content Manager.

    If a suitable folder does not already exist, you can create a new one (Create Folder).

    Create_Content.jpg
  2. Select Create content.

  3. Name the content.

    Note

    The characters you can use for titles are: numbers, language characters, punctuation characters and spaces. The punctuation characters are:

    ! " # $ % / &amp; ' ( ) * + , - . : ; &lt; = &gt; ? @ [ \ ] ^ _ ` { | } ~

  4. Select the type of content to be created.

    Create_Content_menu.jpg

    The checkbox for topic is preselected.

  5. Select the Languages that you want to translate to later. Add_languages_button_small.png

    The original content will be labelled with the Source Language.

    Tip

    Select the one of the following checkboxes:

    • Open in editor in the lower left corner to start editing.

    • Create another in the lower right corner to continue creating content.

  6. Select OK.

  7. Select the admonition to open it in the Editor

  8. Add the text and / or images you need it to include.

    admonition-safety-warning.gif
  9. Select Save. Save icon.

  10. Open topic that you want to add the admonition to in the Editor.

  11. Place the cursor at a valid position for the admonition.

    This can be any position where text can be added. (Paligo will display an error message if you try to add an admonition in an invalid position).

  12. Select the Insert tab in the Toolbar.

    Toolbar_Insert_small.png
  13. Select Component. Insert_Component.png

  14. Select the reusable admonition that you want to add to the topic.

  15. Select OK.

    reused-safety-warning.gif

    The reusable admonition is added to the topic.

To insert a reusable admonition, such as a warning or note, in a topic:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Place the cursor at a valid position for the admonition.

    This can be any position where text can be added. (Paligo will display an error message if you try to add an admonition in an invalid position).

  3. Select the Insert tab in the Toolbar.

    Toolbar_Insert_small.png
  4. Select Component. Insert_Component.png

  5. Select the reusable admonition.

  6. Select OK.

    reused-safety-warning.gif

    The reusable admonition is added to the topic. For example, in the image below, a reusable warning admonition is added to a topic.

  7. Select Save. Save icon.

You can add "regular" admonitions by selecting Insert and choosing an admonition. Regular admonitions are designed as "one-off" messages that will not be reused.

However, it is quite possible that you will add a regular admonition to a topic and later realize that you need to use it again. In these situations, you can quickly convert the regular admonition into a reusable component.

Watch this video on how to convert the admonition or follow the instructions below.

To convert a regular admonition into a reusable component:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select any part of the admonition.

  3. Select the top-level element of the admonition in the Element Structure Menu and choose Convert to reusable component..

    select-admonition-element.png

    For example, if you have selected a warning admonition, select the warning element.

  4. Enter a suitable name and select a folder to store it in.

    convert-to-reusable-component-window.png
  5. Use Reuse the component at position checkbox to keep it in its position otherwise it will be removed.

  6. Select OK.

    To reuse the admonition, see Insert Component.

If you are creating many publications, you may want to reuse some of the information in a publication topic. For example, you may have 5 different publications, but you want them all to use the same legal notice "info elements".

To reuse "info elements", such as copyright and legalinfo, you need to take a different approach than you would for reusing most other elements. This is because "info elements" cannot be reused in informal topics. Instead, you should use a publication template.

Note

To find out about publication topics and the info elements that you can add to them, see Publication Topic.

There are several things that you need to set up to reuse "info elements". To make the information easier to follow, we have broken it down into these stages:

  1. Create a publication template and add the info elements to that.

  2. Create a variable set to define the reusable text for the info elements.

  3. Add the Variables to the Publication Template.

  4. Create new publications based on the template. These publications will automatically inherit the text from the variable set.

  5. Choose the Variable Set when you Publish .

With the template and variable set in place, you can update the variable values by making the changes once in the variable set. The changes you make there will be applied wherever the variables are used.

If you are new to the concept of variables and variable sets, you can find out about them in Variables.

A publication template contains content that is inherited automatically by "real" publications that are based on the template. So by adding "info elements" there, you can make sure those "info elements" also appear in your publications.

  1. In the Content Manager, find Templates and select its options menu ( ... ). Select the Create Content option.

    Templates options menu showing the various options, including Create content.
  2. Enter a name for the publication template and select Publication as the type of content you are creating. Remember that this is going to be a template publication, not a "real" publication.

    Create content dialog, settings in place for creating a new publication
  3. Check the Open in editor box in the bottom-left corner and then select OK.

    Paligo opens the publication's topic in the editor. It contains the default "info elements", including subtitle, copyright, and abstract.

  4. Edit the publication topic so that it contains the "info elements" that you want to appear in all of the publications that are based on this template.

  5. Consider what information you are going to need as the content for each of the "info elements" in your publications.

    • For content that is always going to be the same for all publications, add it directly to the template elements.

      For example, if all publications are going to have the same legal notice, you could add the text for it in the legalnotice element on the template.

    • For content that you want to reuse in some, but not all, publications based on the template, use a variable.

    At this stage, you can add the text that is always going to be the same. For variables, you will need to create a variable set and we will explain that in the next stage of this process.

  6. Check the box Use gateway to enable IP Allowlisting. Optional

To reuse the content of "info elements", you need to add the content to the template as variables. These are containers that can contain different content, depending on the choices you make when you publish.

To use variables, you need a variable set:

  1. In the Variable Sets section of the Content Manager, select the options menu ( ... ) and then create a new variable set and give it a suitable name.

    Variable set options menu, Create variable set option is highlighted.
  2. Edit the variable set and add variables for those "info elements" that you want to reuse in different publications. Use translatable text variables for text content and images for images.

    For example, let's say that for your publications, you want to reuse the subtitle and also the legalinfo. So in your variable set, you add a variable for the subtitle and a variable for the legal information.

    Variable set with rows for legal information and subtitle
  3. Add a variant for each different publishing scenario. Each variant is shown as a column and it is a collection of values that Paligo can insert into your publication topic.

    For example, if you publish developer guides, engineer guides, and operator guides, you might want each type of guide to have a different subtitle and legal information. So you would create a variant for each guide, and in each variant, define the content that should be used.

    Variable set. Each column represents a different variant.

    When you publish, you can tell Paligo which variant to use, and then it will "push" the values of that column into your publication topic.

    Tip

    To learn more about creating variable sets and variants, see Variables.

Now that you have your variable set, variants, and values, you can add the variables to your publication template.

When you have a variable set, you can add its variables to your publication template:

  1. In the Content Manager, select the options menu ( ... ) for your publication template, and then select Edit > Open in editor.

  2. Position the cursor inside an element that is going to contain a variable.

  3. Select the Insert menu, then Variable, and choose the variable set that you created for your reusable "info elements". Then choose the appropriate variable from the list.

    Insert a variable dialog has legal notice and subtitle options.
  4. Repeat steps 2 and 3 until you have added variables to the various elements.

    Variables inserted in a publication topic.

    The variables are shown as blue boxes, with the name of the variable set and variable shown.

  5. Check the box Use gateway to enable IP Allowlisting. Optional

Next, you will create publications that are based on the template.

Now that your publication template is in place, you can use it to create new, "real" publications.

  1. In the Content Manager, select the options menu ( ... ) for the folder that is going to contain your new publication. Then select Create content.

    Folder's options menu has a Create content option.
  2. On the Create content dialog, select From template, and then select your publication template. Give your new publication a name, select what languages you want it to support, and then select OK to create it.

    Create content dialog, From Template option is selected and set to a publication template.
  3. In the Content Manager, select your new publication to open its structure and then add topics to it. Organize its structure, and edit its publication topic, just as you would for any other publication. The only difference here is that the publication topic automatically inherits the elements from the publication topic in your template. This inheritance from the template is how the "info elements" are reused. The variables are also inherited and you will set the values for these when you publish.

  4. Repeat this process for as many publications as you need.

You will set the values for the variables in the publication topic when you are ready to publish.

To set the values that will be used for the variables in your publication topics, choose the variable set and variant when you publish:

  1. Select the options menu ( ... ) for the publication, and then select Publish.

  2. On the Publish document dialog, select the output type, language, and all the other settings that you would normally choose when publishing.

    To learn more about the publishing settings, see General Publishing Process.

  3. In the Variables section, select the variable set that contains the "info element" variables that you created for your publication template. Then select the variant that you want to use from that set.

    Variables options when publishing. The drop down menu contains a list of the available variants.

    Remember that the variant is a collection of values that will be inserted into the relevant variables. In this case, the values from the variant set that you choose will be inserted into the variables that are in your publication topic.

    Note

    If you have used other variables in the other topics in the publication, add those variable sets in the publication settings too. For each of the variable sets, choose which variant you want to use.

  4. Select Publish document to publish your content.

    Paligo will generate the content and it will download as a zip file in your browser. You can then unzip the file and move its contents to a web server, so that people can access it.

If you have a paragraph that you do not want other users to change, you can lock it. The lock means that the content is more difficult to change, as if someone wants to edit it, they first have to unlock it. You can lock and unlock any para element.

To find out how to lock and unlock content, watch the video or read the instructions below:

Tip

Locking your content can be a good idea if you have a team of writers and some are new to the concept of content reuse. Sometimes people do not realise that if they change a paragraph, it changes wherever that paragraph is used.

To lock content so that it cannot be edited:

  1. Select any part of the paragraph.

  2. Select the para element in the Element Structure Menu.

    LockContent.jpg
  3. Select Lock content from the menu to lock the paragraph.

  4. Select Save. Save icon.

To unlock content so that it can be edited again:

  1. Select any part of the paragraph.

  2. Select the para element in the Element Structure Menu.

    UnlockContent.jpg
  3. Select Unlock content from the menu to unlock the paragraph.

  4. Select Save. Save icon.

Paligo has many convenient ways to find reusable content that you can add to your topics and publications. The features you will use vary, depending on whether you want to Insert Reusable Text Fragment or Find Topics and Publications to Reuse.

Tip

Another way of finding reusable topics and other components is to use Classify Content with Taxonomies to categorize them.

Note

Paligo also has "where used" features so that you can Find Where Content is Reused.

Every paragraph that you write in Paligo is stored in the database as a "text fragment". This means that there is no need to store individual paragraphs separately for reuse, as every paragraph is made available for reuse automatically.

Watch this video to find out how to use the Reuse Text feature.

To find a paragraph to reuse in a topic:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Position the cursor at a valid position for a paragraph element (para).

    For example, directly above or below another paragraph or inside a step element in a procedure.

  3. Enter the text in the Reuse Text Panel search field. Search.png

    reuse-text-sidebar.jpg

    Paligo will show both close and exact matches that exist in the database.

  4. Select the match to insert it into the topic.

    reuse-text-sidebar-2.jpg
  5. Choose to:

    • Reuse fragment to insert the text as a reused paragraph.

      A chain symbol will show that the paragraph is reused.

      reused-text-fragment.jpg
    • Insert as content to insert the text as a regular paragraph. This is the same as entering a completely new paragraph as it will be saved with a unique id and is completely separate from other text fragments.

    Reuse_Fragment_menu.jpg
  6. Select Save. Save icon.

You can reuse topics inside other topics or in many different publications. Similarly, you can reuse a publication inside another publication. Reusing topics and publications in this way is a great way to save time when producing similar user guides.

There are several ways to find the topics and publications you want to reuse:

  • Edit the structure of a publication and then use the search bar at the bottom of the Content Manager. Enter the name of any topic or publication in here, and Paligo will find any close matches. You can then drag the topic or publication into the structure of the publication.

    search-drag-drop-publication.jpg
  • Browse through the folders in your Content Manager to find the publication or topic, and then drag and drop it into the structure of publication.

  • If you are editing a topic and want to add another topic as a subsection, select Insert > Component and then search or browse for the topic you want to reuse.

    import-component.jpg
  • If you have added taxonomy tags to your topics, you can use the taxonomy manager to find topics.

    1. In the Taxonomy Manager, select the taxonomy tag that relates to the content you want to reuse.

      taxonomy-manager.jpg

      Paligo displays a list of the topics that use that taxonomy tag.

      elements-taxonomy.jpg
    2. Select the topic from the list to open it in the editor. You can then see where the topic is located in the Content Manager. Now that you know where the topic is located, you can open a publication and drag the topic into it. Or you can edit a topic and use Insert > Component and browse to the topic to insert it as a subsection inside the topic.

Paligo has several features you can use to find out where your content is used. These are especially useful when you have reused content, as as you will need to make sure that any changes you make are appropriate for all of the places where the content appears.

Also, being able to find topics is important when you want to delete content, as you cannot delete topics or publications that are included in another topic or publication. Similarly, you cannot delete topics that other topics link to. So you will need to remove those instances of reuse and the links before you can delete a topic. (For information on how to delete reused content, see Delete Content).

What type of content are you looking for?

Tip

If you frequently reuse the same text elements, informal topics, admonitions, you can Create an Informal Topic and insert it in as many topics as needed.

When you are updating and organizing your content, you may want to find out where each topic or publication is used. You can find out this information in the structure view and also in the resource view.

To find the reuse information in the structure view:

  1. In the Content Manager, select the options menu ( ... ) for the topic or publication you are interested in. Select Edit > Open Structure.

  2. In the Metadata section, look at the following entries:

    used-in-related-publications.jpg
    • Used in - Shows where the selected topic or publication is used, either as a subsection inside another topic or as part of a publication.

      Entries marked "Component" are where the topic is embedded inside another topic as a component (subsection).

      Entries marked "Fork" are a reference between the selected topic/publication and a position in another publication. For example, in the image shown, the metadata is for a topic called "Specifications". It has been added to a publication, and the "fork" reference from the publication goes to the "Specifications" topic.

    • Uses - The selected topic or publication can contain other topics and publications. They are listed here.

    • Related publications - The selected topic or publication is reused in each publication shown in this list.

To find the reuse information in resource view:

  1. In the Content Manager, select the folder that contains the topic or publication of interest.

    If the topic or publication is not in a folder, create a new folder and move the topic or publication into it.

    Paligo displays the folder's contents in the resource view. It shows each folder, publication, and topic stored in that folder.

    resource-view-contentreuse.jpg
  2. Select the arrow icon next to the topic or publication of interest. Then select the Related Resources tab.

    related-resources-publications.jpg

    The reuse information is shown in these sections:

    • Related publications - The selected topic or publication is reused in each publication shown in this list.

    • Reused content - The selected topic or publication can contain other topics and publications. They are listed here.

    • Reused in - Shows where the selected topic or publication is reused. This includes publications and topics.

    • Related images - Shows any images that are used in the selected topic (this only applies to topics and is always set to 0 for publications).

When you edit a topic that contains reused text fragments (paragraphs), each reused text fragment is highlighted and shown with a chain icon.

reused-text-fragment.jpg

When you consider making changes to reused text fragments, it is beneficial to access the Usage Information view. It will help you to understand how the changes will affect other topics.

There are two ways to access the Usage Information view:

Text usage dialog. It is a list that has a row for each topic that reuses the selected text fragment. There are columns of information for each topic, including topic name, taxonomies, status, editor, last edited, and languages. There is also an options menu icon for each topic.

You can use the Element Structure Menu to locate the topics that reuse the selected text fragment (paragraph).

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the paragraph (text fragment) in the topic that you are interested in.

    Usage_Information_Element_Structure_Menu_small.jpg
  3. Select the para#text element in the Element Structure Menu.

  4. Select Text in the menu and choose Usage information.

  5. Paligo displays a list of the topics using the selected text fragment.

    It shows taxonomies, status, language and when the topic was last edited and by whom. To the right of each topic, there is a dotted menu ( ... ) where you can access other features, such as preview, edit, publish and more.

    If you select one of the topics, Paligo will display it in the Editor.

    Text usage dialog. It is a list that has a row for each topic that reuses the selected text fragment. There are columns of information for each topic, including topic name, taxonomies, status, editor, last edited, and languages. There is also an options menu icon for each topic.

    Text Usage view lists the topics that use selected text fragment.

  6. Select Close.

You can use the Reuse Text Panel shown on the right-hand side of the Editor to locate the topics that reuse the selected text fragment (paragraph) and also see the xml ids of the topics that matches .

  1. Enter the text fragment that you want to find in Reuse Text Panel search field. Search.png

    Reuse_Text_Usage_Information_small.jpg

    A list of matches is presented and the xml id is shown to the right of each match.

  2. Select the cog icon to the right of the text fragment and choose Usage Information. Cog icon.

  3. Paligo displays a list of the topics using the selected text fragment.

    It shows taxonomies, status, language and when the topic was last edited and by whom. To the right of each topic, there is a dotted menu ( ... ) where you can access other features, such as preview, edit, publish and more.

    If you select one of the topics, Paligo will display it in the Editor.

    Text usage dialog. It is a list that has a row for each topic that reuses the selected text fragment. There are columns of information for each topic, including topic name, taxonomies, status, editor, last edited, and languages. There is also an options menu icon for each topic.

    Text Usage view lists the topics that use selected text fragment.

  4. Select Close.

To find out where images are used, access the metadata for the media file.

locate-reused-image.jpg
  1. Open a topic that contains the media in the Paligo editor.

  2. Right-click on the topic and select Edit Properties.

  3. Look at the Reused in section on the dialog. It contains links to the topics where the media is reused.

Alternatively:

  1. In the Content Manager, expand the Media section and find the media file you are interested in.

  2. Select the options menu ( ... ) for the media file and then select Edit Image.

  3. Look at the Reused in section on the dialog. It contains links to the topics where the media is reused.

Filtering is also known as "profiling" or "conditional content" and you can use it to include or exclude content depending on certain conditions. For example, you can set a topic to be included in your publication if the intended audience is beginners, but excluded if the audience is experts.

You can use filtering to include or exclude:

  • Entire topics in a publication

  • Elements in a topic, such as paragraphs, procedures, or steps in a list.

Filtering gives you more control over your content and can also give you more opportunities for your topics. Let's say that you have a topic that could be reused, if only it did not contain a particular paragraph. By filtering that paragraph, you can make the topic suitable for reuse, as you can include or exclude the paragraph when needed.

Paligo has several different types of filtering, but to begin with, we recommend you learn about "regular" filtering.

The workflow for "regular" filtering is:

  1. You mark up the content that you want to filter. This tells Paligo what content can be filtered, and what conditions apply.

    To set the conditions, you choose a type of filtering to apply and you set a filter value.

    Paligo does not have one generic filter for everything. Instead, it has a range of filter types, called filter attributes. There are different filter attributes for filtering by product name, by audience, by country, and by market, among others.

    For example, to filter a paragraph so that it only appears in a user guide for a Windows version of a product, you could set a filter attribute of os (operating system) and a filter value of Windows.

    os-windows-section.jpg
  2. You set the filters you want Paligo to apply to the published output.

    profiling-attr-windows.jpg
  3. Paligo then:

    • Includes all of the content that does not use the filters attributes you chose for publishing.

    • Searches through your content to find any elements that have the filter attribute(s) that you set for the publication. For example, if you set an os filter attribute in the publication, Paligo will find all of the elements that are marked up to have an os filter attribute. These are the "matching" elements.

    • Searches through the "matching" elements to check the filter values. Those with the same value that you set for the publication are included in the published output. Those that have different values are excluded.

      Tip

      If you want to exclude content, create filter values for the conditions where it should be included and also for where it should be excluded. For examples, see Mark Up Elements for Filtering and Filter Topics.

Note

The process for setting up filtering is different for scoped filtering, taxonomy filtering, and filtering by language.

There are several ways of applying filters to your content in Paligo. They all involve marking up your content for filtering and then setting filters on the publication. But the process for doing this is different depending on which method of filtering you choose to use.

The two main types of filtering are:

  • "Regular" filtering, where you edit a topic and apply a filter attribute and filter value to one or more elements. You can use "regular" filtering for filtering entire topics or individual elements in a topic.

    To get started with "regular" filtering, see:

    Filter Publications

    Filter Block Elements

  • Taxonomy filtering, where you set up taxonomy tags to represent the filter attributes and values, and you drag and drop them on to your topics. You can also set Paligo to use the taxonomy hierarchy for more complex filters, where Paligo uses the taxonomy hierarchy to determine which topics to include or exclude.

    See taxonomy filtering for more details.

There is also scoped filtering. This is for when you want to use the same content in the same publication, but apply different filters depending on where the content appears.

You can use a mix of the different filtering types, if needed.

In Paligo, there are many different types of filters you can use. Some are defined by the DocBook standard and some are custom filters created for Paligo.

The filter attributes allow the user to create new profiling values, see Create Profiling Values. Filters and variables can be grouped into Favorite Profiles to make it easier to filter out the content about other products.

The following table shows the filters you can use in Paligo.

Filter attribute

Source

Description

arch

DocBook

Filter by computer or chip architecture.

audience

DocBook

Filter the content based on the intended users, for example, internal staff or customers. You could use audience for the knowledge level too, such as beginner or expert. But there is a userlevel attribute specifically for that, so can use audience or userlevel, but it is important to be consistent.

condition

DocBook

This is a general-purpose filter attribute. Use this filter if the other filters do not meet your requirements.

conformance

DocBook

Filter by conformance standards.

os

DocBook

Filter by operating system, for example, Windows.

outputformat

DocBook

Filter by the type of output, for example PDF.

revision

DocBook

Filter by publication revision, for example, v.3.1.

security

DocBook

Filter by security level, for example, Low.

userlevel

DocBook

Filter by knowledge level of the intended audience, for example, expert.

vendor

DocBook

Filter by product provider, such as a manufacturer or seller.

xinfo:country

Paligo

Filter content by the country (for example USA) that the documentation is designed for.

xml:lang

Paligo

Filter by natural language, for example, filter Swedish content. This filter attribute is a special case, as there is a different process for using language filters. To find out more, see Filter by Language.

xinfo:market

Paligo

This is similar to x:info:country except that it is less geographically rigid, for example, you can filter for the Asian market or the North American market.

xinfo:product

Paligo

Filter by product name or model.

xinfo:proglang

Paligo

Filter by programming language or to publish to API style "on-the-fly" filtering HTML5.

Paligo does not support using xinfo:proglang on table rows.

xinfo:version

Paligo

Filter by version. You can use this in combination with the version management features of Paligo, but this is not a requirement. The usage is up to you.

Scoped filtering is a powerful feature in Paligo that allows you even more flexibility when it comes to profiling / filtering content. It is designed for when you want to reuse your content in multiple places within the publication and to be able to apply different filters depending on where it appears in the publication. Scoped Filtering can be used in combination with Taxonomy Filters.

The workflow for scoped filtering:

  1. Make sure scoped filtering is enabled. It is enabled by default, but it may have been disabled on your Paligo instance, see Enable Scoped Filtering.

  2. Organize your publication structure so that you have "parent" topics (high level) with the "child" topics (lower level) as subsections.

  3. Apply filters to your "child" topic elements.

  4. Apply the "scope filters" on "parent" topic elements. Typically, you should set the scope filters on the section element.

  5. Publish your content and include the filter attributes that are set on the "scope filters" and all of the filter values that should be used.

Note

Scoped filtering is advanced. Make sure you understand the basic profiling/filtering concepts before using scoped filtering, see Principles of Scoped Filtering

The important principles of scoped filtering are:

  • Scoped filtering applies to content that is reused in the same publication.

  • With scoped filtering you can reuse topics and set them to use different filter values, depending on where the topic is positioned in the publication structure.

  • You tell Paligo which filter values a "child" topic should use by setting a "scope filter" on the "parent" topic

  • When you publish, you set the filters and include all of the values that you want to use in the publication.

To show you how scoped filtering can be used, we'll guide you through an example.

Example 1. Scoped filtering for applying different filters to reused content

Let's say you are documenting a product, for example, a fictional video conference software called ACME VCT. The software supports MacOS and Windows, and as most of the documentation is the same for both versions, you want to create a single user guide rather than two separate versions. The user guide will have a MacOS section and a Windows section.

In Paligo, you create the content and organize it in a publication structure like this:

overall-structure-scoped-filtering.png

You have a "chapter" for Windows content, called "Installing on Windows", and you have "Installing on MacOS" as a chapter about MacOS.

You have also reused two topics. The "Prerequisites" topic and the "System Requirements" topic are both used in the Windows and MacOS chapters. For this example, we will focus on the "System Requirements" topic.

In the "System Requirements" topic, you have some information that is for Windows only, and some that is for MacOS only.

A screenshot of a section of a Paligo topic in HTML5 output. There is an image and then an "Operating System Version" subsection and a "Supported Browsers" subsection. In each subsection is some content only relevant to Windows, and this is marked with a callout number (2). There is also some content only for Mac OS and this is marked with a callout number (1).

In the image above:

  1. This is for content that is only relevant to MacOS. You apply an os filter to this content and set the filter value to macos.

  2. This is content that is only relevant to Windows. You apply an os filter to this content and set the filter value to windows.

If you published the content as it is, you would only be able to set the os filter to be either Windows only, MacOS only, or include Windows and MacOS.

This is where scoped filtering comes in. You can use it to tell Paligo to use an os:windows filter in some places, but an os:macos filter in others.

To set the scoped filtering, set a "scope filter" on the section element of a topic that is at a higher level than the topic you want to filter. In this scenario, the higher-level topic is called a "parent" and the lower-level topic is called a "child".

Note that the "scope filter" is not a type of filter, it is the term we use to describe the filter that is set on the "parent" topic.

The structure view of a publication. It has an Installing on MacOS top level topic with a Prerequisites subtopic and a System Requirements subtopic. There is also an Installing on Windows top-level topic which also has Prerequisites and System Requirements subtopics. The Installing on Mac OS topic has a callout with number 1 on it. The Installing on Windows topic has a callout with number 2 on it.

In this example, there are two "scope filters" to set (1 and 2 on the image above):

  1. Set the "scope filter" for the Windows chapter on the section element of the "Installing on Windows" topic. The "scope filter" is the os filter with the value: windows.

    os-windows-section.jpg

    With this "scope filter" you are telling Paligo that if any "child" topics in this chapter contain os filters, Paligo should include any that have the value: windows. But it should exclude any that have different values.

  2. Set the "scope filter" for the MacOS chapter on the section element of the "Installing on MacOS" topic. The scope filter is the os filter with the value: macos.

    os-filter-mac.jpg

    This "scope filter" tells Paligo that if any "child" topics in this chapter contain os filters, Paligo can include any that have the value: macos. But it should exclude any that have different values.

You now have your content marked up for scoped filtering. The final step is to set the filter and values when you publish.

You publish your content and you edit the Profiling attributes on the Publish document dialog. You choose to include the os filter. Importantly, for scoped filtering, you include all of the os values that need to appear in the published output. In this case, you want the Windows filtered content to appear in one chapter and the MacOS content to appear in another chapter, so you include both values.

publish-scoped-filter.png

The published output will now have reused the same topic "System Requirements" in two parts of the documentation, but it will appear differently in the Windows and MacOS sections respectively, even though it is in the same output:

Windows version

MacOS version

windows-scope.png
macos-scope.png

In the Layout Editor it is possible to enable scoped filtering for both HTML5 and PDF output. Make sure the option is set to Yes or Default.

Note

For PDF output, you find this setting under General / Filtering and taxonomies / Enable scoped profiling / filtering.

The following instruction shows how to enable this setting for HTML5 output:

  1. Select the Layout tab in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the layout to be updated 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.

  3. Select Classes and attributes in the sidebar.

    Classes_and_Attributes.png
  4. Select Yes to Enable scoped profiling / filtering.

    Enable_Scoped_Filtering.png
  5. Select Save.

When you mark up your content for filtering, you can use the preview feature to see the effects of the filters. This is a good way of making sure that the filters work as expected, and is especially useful if you have used a combination of filters.

The filter is applied to the preview applies to any content that is:

  • Not marked up to use the types of filter you have applied is included in the content.

  • Marked up to use the filters you have applied, with the same values you have set, is included in the content.

  • Marked up to use the filters you have applied, but with different values, is excluded.

Example 2. To show the market filter attribute

If you set the preview to show the Market filter attribute with a value of Europe, the topic would show any content that is:

  • Not marked up to use the Market filter attribute

  • Marked up to use the Market filter attribute and a value of Europe

The preview would exclude any content that has the Market filter attribute and any other value, such as Asia, North America or Australasia.


To preview the filters:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the Preview tab in the Toolbar.

    Preview_menu_small.png
  3. Select Profile settings. Profile_settings_button_small.png

  4. Select the Profiling tab.

    profile-settings-blank.png
  5. Select the filter to be applied for each filter attribute for the preview.

    profile-settings-values.png

    If you do not want to apply a particular filter, leave its field blank.

  6. Select Apply.

    Paligo updates the topic to show the filters that will be used with the variant you have selected.

  7. Repeat steps 4 and 5 to change the filters for the preview and see how they affect the content.

Tip

To stop applying the filter preview, display the Profile settings dialog select the Profiling tab, and then select Reset.

You can use the xml:lang attribute to filter content by (natural) language for HTML and PDF outputs. This means you can mark an element as being appropriate for a language, and the element will only be included if the content is published to that language. If you publish to different languages, the element is excluded.

The xml:lang attribute works a little differently to the other filter attributes. Firstly, to use it, you need to enable the feature on the layout that you will use for publishing. Then you can add it to elements that you want to filter, and finally, you publish and choose what languages to publish to. Paligo applies the language filters automatically, based on what languages you are publishing to.

  1. Select the Layout tab in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the layout to be updated 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.

  3. Select Classes and Attributes for HTML layouts OR General > Filtering and Taxonomies for PDF layouts.

  4. Select Enable for Use xml:lang as profiling attribute.

    xml-lang-layout-editor.png
  5. In your content, select an element that you want to filter by language.

  6. Use the Element Attributes Panel to add the xml:lang filter attribute and set its value to the appropriate language. For the language values, use the two-letter language codes, for example, en for English and sv for Swedish.

    Important

    Use the two-letter codes shown in the Languages section (see step 6). Only these two-letter codes are supported. You cannot use alternative language codes.

    xml-lang-attribute-value.png
  7. Repeat steps 3 and 4 for other any other elements you want to filter by language.

  8. Publish your content and choose the layout you edited in step 1 and the language(s) that you want to publish to:

    filter-by-language-language-selection.png
    • If you publish to a language that matches the value of the xml:lang filtered content, that content is included in the output.

    • If you publish to a language that does not match the value of the xml:lang filtered content, that content is excluded from the output.

  9. Set any variables and other profiles as required and then publish.

You can use the phrase element to apply filters to inline elements. This is useful when you need to filter part of a block element, for example, if you wanted to filter one sentence in a paragraph rather than the entire paragraph.

To filter inline elements:

  1. Select the content you want to filter.

    highlight-inline-text.jpg
  2. To display the element context menu, press Alt and Enter (Windows) or Option ⌥ and Enter (Mac).

  3. Add the phrase element.

    Paligo inserts your selected content into the phrase element.

  4. Click in your selected content so that the phrase element is shown in the Element Structure Menu.

    phrase-added.jpg
  5. In the Element attributes section, add the filter condition that you want to apply to the phrase. This works in the same way as filtering any other element, for example, you could set an xinfo:country attribute if you wanted to be able to include/exclude the phrase based on the country.

    phrase-filter-by-country.jpg

    To find out about filter types, see Filter Attributes.

  6. Set the value for the filter and apply it to your phrase element.

    To find out about filter values, see Filter Block Elements.

  7. Check the box Use gateway to enable IP Allowlisting. Optional

When you publish, you can choose which filters to apply to your content. As the inline content is now wrapped in a phrase element, it can be filtered in the same way as any other element. The settings you choose when you publish will determine whether the phrase is included or excluded from the published content.

In this section, you can learn how to apply filters to block elements, such as paragraphs, lists, and images. These filters apply to an entire block of content. If you want to filter inline content, such as one sentence or one word in a paragraph, see Filter Inline Elements.

Filtering block elements is useful when you have entire elements that you want to include or exclude, depending on certain criteria. For example, you could have a paragraph that is only relevant to Mac users, so you could add a filter to include or exclude it, depending on whether the publication is for Windows or Mac.

Note

To apply filters to elements in a topic, use the "regular" type of filtering (you cannot use taxonomy filters for filtering elements in a topic).

To learn how to set up filters on block elements, watch the video or read the following sections. The video shows a list item being filtered, and you can use the same technique to filter other block elements.

To filter elements in a topic:

  1. Mark up your content for filtering. For filtering elements in a topic, use the "regular" type of filtering. You cannot use taxonomy filters for filtering elements in a topic.

  2. Preview your content to see how the filters will affect your content (this is an optional step).

  3. Set the filters that you want your publication to use and then publish.

Before you can apply filtering to your publications, you need to tell Paligo what elements can be filtered, and what filter conditions apply. You can do this by "marking up" the elements that you want to filter.

To mark up your content, you can select an element and then apply a filter attribute and a filter value. The filter attribute tells Paligo which type of filter to use, and the filter value sets the condition for the filter.

element-para-os-windows.jpg

Element (1), filter attribute (2), filter value (3).

Paligo does not have one generic filter for everything. Instead, it has a range of filter types, called filter attributes. There are different filter attributes for filtering by product name, by audience, by country, and by market, among others.

Note

Marking up the content tells Paligo what content can be filtered. It does not apply the filter. You apply the filter in the publishing settings when you publish the content.

  1. Edit the topic that contains the element you want to filter. Select any part of the element so that it is shown in the Element Structure Menu.

  2. In the Element Structure Menu, select the element you want to filter and then select Go to element.

    select-step-element.png

    Tip

    If you want to filter text inside a paragraph, and not the entire paragraph, highlight the text and add the phrase element to it. You will then be able to apply the filter attribute and value to the phrase element so that it can be included/excluded when you publish.

  3. In the Element attributes section, select Add attribute and search for the filter attribute you want to use. Note that the Add attribute list includes all attributes, not just filters

    There are many different types of profile attribute (filter) that you can use, including product name, country, and audience. To find out about the different profile attributes, see Filter Attributes.

    select-filter-attribute.png
  4. Use the Profiling values dialog to set the filter value. Think of setting the value as a way of telling Paligo where the content is applicable.

    For example, if you have a paragraph that is only applicable to a product named "ACME 1050", you could give it the xinfo:product filter attribute and set the filter value to ACME 1050.

    You can have single values or you can add multiple values, where Paligo will include the content if either of the values are a match.

    Choose from any of the available values or use Add value to create more values if needed.

    profiling-values.png

    Note

    We have included some more detailed examples of how you can use filter conditions to include and exclude content at the end of this section.

  5. Repeat steps 2-4 inclusive to apply filters to as many elements as needed.

You have now set the profile attributes and values for the content you want to filter. We recommend that you preview the filters to see how they work before you publish.

Example 3. Use multiple filter values to create an OR filter

Let's say you have a paragraph that is only applicable for customers in North America and the EU. You want to include the paragraph when you are publishing to those markets, but want to exclude it when you are publishing to the Middle East, Australia, and other markets. This is where you need an OR filter, as you want the content to appear when the market is North America OR the EU.

To mark up the paragraph, you:

  1. Select the para element.

  2. Add the xinfo:market attribute in the Element Attributes Panel.

  3. Set the attribute value.

FILTER-MARKET-EUNORTHAMERICA.jpg

When you publish the content, you can choose the filters for the publication.

FILTER-MARKET-PUBLISH.jpg
  • If you set the publication's market filter to North America, EU, or both North America and EU, the filtered paragraph is included.

  • If you set the publication's market filter to another region, such as Australia, the filtered paragraph is excluded.

  • If you do not set a market filter for the publication, the filtered paragraph is included. It is only excluded from the publication if the market filter is applied and the value for the market filter does not match North America or EU.


Example 4. Exclude a filter value rather than include it

Paligo's filtering is inclusive, which means that when you set a filter, you are telling Paligo what content you want to be included in the output. But there may be times where you want to exclude certain content rather than include it. For these situations, set up filter values for:

  • The conditions where you want the content to be included

  • The conditions where you want the content to be excluded.

Then, when you publish, you can tell Paligo which content to include. By including one condition, you automatically exclude the other possible conditions.

Note

The "inclusive" filtering strategy may take a while to wrap your head around if you are new to filtering or if you come from another environment where you used filters for both including and excluding specifically. But once you get the idea, the inclusive strategy is very powerful in that it can accomplish exactly the same, but with a much cleaner structure, so you will have a more robust long-term solution.

Let's say you have three types of users: administrators, engineers, and operators. You have a paragraph that you want to be included for the engineers and operators, but excluded for the administrators. To set this up you:

  1. Select the para element.

  2. Add the audience attribute.

  3. Select the value for the audience attribute and create these values: "administrators", "engineers", "operators".

    Note that it is important to create values for where you want the content to be included and also for where you want it to be excluded.

    profiling-values-audience-add.jpg
  4. Set the audience attribute value to "engineers" and "operators".

    profiling-audience-engineers-operators.jpg

When you publish the content, you can choose the filters for the publication.

To publish for the administrator audience, you set the audience to "administrators".

publish-administrators-audience.jpg

The published output will then include:

  • Any content that has an audience filter with a value of "administrators". The paragraph that you marked up has an audience filter with a value of "engineers" and "operators", and so it is not included in the published output.

  • All content that does not have an audience filter

To publish for the engineers or operators, you set the publication's audience filter to "Engineers" and "Operators".

publish-engineers-audience.jpg

The published output will then include:

  • Any content that has an audience filter with a value of "Engineers" or "Operators". So the paragraph that you marked up is included in the published output.

  • All content that does not have an audience filter.


When you mark up your content for filtering, you can use the preview feature to see the effects of the filters. This is a good way of making sure that the filters work as expected, and is especially useful if you have used a combination of filters.

The filter is applied to the preview applies to any content that is:

  • Not marked up to use the types of filter you have applied is included in the content.

  • Marked up to use the filters you have applied, with the same values you have set, is included in the content.

  • Marked up to use the filters you have applied, but with different values, is excluded.

Example 5. To show the market filter attribute

If you set the preview to show the Market filter attribute with a value of Europe, the topic would show any content that is:

  • Not marked up to use the Market filter attribute

  • Marked up to use the Market filter attribute and a value of Europe

The preview would exclude any content that has the Market filter attribute and any other value, such as Asia, North America or Australasia.


To preview the filters:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the Preview tab in the Toolbar.

    Preview_menu_small.png
  3. Select Profile settings. Profile_settings_button_small.png

  4. Select the Profiling tab.

    profile-settings-blank.png
  5. Select the filter to be applied for each filter attribute for the preview.

    profile-settings-values.png

    If you do not want to apply a particular filter, leave its field blank.

  6. Select Apply.

    Paligo updates the topic to show the filters that will be used with the variant you have selected.

  7. Repeat steps 4 and 5 to change the filters for the preview and see how they affect the content.

Tip

To stop applying the filter preview, display the Profile settings dialog select the Profiling tab, and then select Reset.

When you publish your content, you can choose which Filter Attributes to be applied to the output. Recommended is to choose one profiling value for each profiling attribute (available filter attributes). However, it is possible to choose multiple values for a profiling attribute. The filter then works as an OR filter, where Paligo will filter topics that contain any of the profiling values set.

When you choose profiling attributes, Paligo knows what content to include in the published output. But sometimes, you may want to exclude content rather than include it. For example, you might want to publish content for all audience types except administrators. To do this, you need to mark up the content so that the content you want to:

  • Include has a filter attribute and a profiling value

  • Exclude has the same filter attribute, but a different profiling value for the topics you want to exclude.

When you publish, you choose which condition value to include. Paligo will then:

  • Include any content that has the filter attribute and profiling value.

  • Include any content that does not use the matching filter attribute

  • Exclude any content that uses the matching filter attribute, but has a different profiling value.

To apply publishing filters:

  1. Select the Dotted menu (...) for the topic or publication in Content Manager.

    selectpublish.png
  2. Select Publish. Publish_button_small.png

    publish-document-jan23.png

    Paligo displays the Publish document dialog.

  3. Select an Output type (PDF, HTML, HTML5, Word, XML, eLearning or SCORM).

  4. Set the Languages, Variables and Optional Parameters.

    Tip

    These are common publishing settings, see General Publishing Process.

  5. Select Edit in the Profiling attributes section. Filter_symbol_small.png

    profiling-attributes-blank.png

    The Profiling attributes dialog contains a field for all available filter attributes.

  6. Select one or multiple profiling value from the menu in the fields to be applied to your publication.

    profiling-attributes.png

    To create more profiling values, see Create Profiling Values.

    Note

    Leave the fields blank for attributes not to be used. When there is no attribute set, Paligo ignores that type of filter.

  7. Repeat step 5 and 6 for each profiling attribute you want to apply.

  8. Select OK.

  9. Select Publish document to publish your content.

You can filter topics to include or exclude them in your published output.

For example, if you have a topic only relevant to Mac users, you could set an os (operating system) filter on the topic, with a filter value of macos. Then, when you publish, you can set Paligo to include the topic if you publish a Mac user guide or exclude it if you publish a Windows user guide.

In this section, we explain how to filter topics using the "regular" way of filtering. But you can also filter topics using Taxonomy Filters, where you apply the filter attributes and values by dragging and dropping taxonomy tags.

Watch this video or read the following instructions to find out about filtering topics.

To use the "regular" way:

This section describes how to add a new profiling value to an attribute.

Note

In this procedure, a profiling value is added to a single procedure step to show that It is possible to Filter Inline Elements, Filter Block Elements and Filter Topics.

  1. Select the element in the topic.

  2. Place the cursor in the Element Structure Menu below the toolbar.

    Element_Structure_Menu_small.png

    Note

    When you select an element in the Element Structure Menu, Paligo highlights it in yellow.

  3. Select the element and choose Go to element to show the attributes for this particular element.

    Remove_element_attributes_2.png

    The Element Attributes Panel. now shows the attributes for the selected element.

  4. Select a profiling value to the right of the attribute (for example Beginner or Business).

    Remove_element_attribute_3_small.png
  5. Select Add value in the lower left corner.

    Add_Profiling_Value.jpg
  6. Enter a name for the profiling value.

    New_Profiling_Value.jpg
  7. Select OK.

  8. Check the box in front of the new profiling value to add it to the attribute.

  9. Select Apply.

  10. Select Save. Save icon.

It is possible to Filter Inline Elements , Filter Block Elements as well as topics. If you want to filter entire topics, you need to add the profiling values to the top section element (1). This tells Paligo which topics can be filtered and what filter attributes (2) and profiling values (3) to apply. The filters are applied when the content is published, see Apply Publishing Filters.

element-attribute-value.jpg

1 = Section element, 2 = Filter attribute, 3 = Profiling value

To filter a topic:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the section element in the Element Structure Menu.

    Section_Go_to_element.jpg
  3. Select Go to element.

  4. Select Add attribute in the Element Attributes Panel.

    section-element-attributes.jpg
  5. Search for the Filter Attributes you want to use.

    Note

    Note that the Add attribute menu includes all attributes, not just filters.

  6. Select one or multiple checkboxes in front of the profiling values to be used.

    Or use Add value to create more profiling values if needed.

    profiling-values.png

    Paligo will include the topic if either of the profiling values are a match.

  7. Add as many Filter Attributes as needed.

    Note

    The filter attributes that you add will appear as Profiling attributes when you publish.

  8. Repeat this process for all topics to filtered.

  9. Select Save. Save icon.

If you add the xinfo:market attribute to a section element to a topic, it is possible to filter a topic or publication for different markets (like America, EU, Middle East, Australia and other markets). The markets are added as profiling values. When you publish you select the profiling attribute (market) and the profiling attributes (America and EU) to be used. The markets not selected during the publish will be excluded.

Tip

To learn more about available filter attributes (for example xinfo:product, audience), see Filter Attributes .

To filter topics for different markets:

  1. Select the section element in the Element Structure Menu.

    Section_Go_to_element.jpg
  2. Select Go to element.

  3. Add the xinfo:market attribute in the Element Attributes Panel.

  4. Add one profiling value for each market.

    filter-section-euamerica.jpg
  5. Select Save. Save icon.

  6. When you publish, you choose market as profiling attribute and the profiling values to be used for the publication.

    FILTER-MARKET-PUBLISH.jpg
    • If you set the profiling attribute to North America, EU, or both North America and EU, the filtered topic is included.

    • If you set the profiling attribute to another region, such as Australia, the filtered topic is excluded.

    • If you do not set a market filter for the publication, the filtered topic will be included. It is only excluded from the publication if the market filter is applied and the value for the market filter does not match North America or EU.

  7. Select Publish document.

To filter topics for different audience, you add the audience attribute to the topic.

Let's say you have three types of users: administrators, engineers and operators. You have a topic that you want to be included for the engineers and operators, but excluded for the administrators.

To filter a topic for a specific audience:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the section element in the Element Structure Menu.

    Section_Go_to_element.jpg
  3. Select Go to element.

  4. Add audience attribute in the Element Attributes Panel.

  5. Select Add value to add new profiling values. Open_Settings_small.png

    profiling-values-audience-add.jpg

    Available profiling values in this case: Administrators, Engineers and Operators.

    Note

    Note that it is important to add profiling values to be able to include and exclude content.

  6. Enter a name for the profiling value.

  7. Select OK.

    Add as many profiling values as needed.

  8. Select the checkbox in front of one or multiple profiling values.

  9. Select Apply.

    filter-section-engineer.jpg

    Selected profiling values are shown in the Element Attributes Panel.

  10. Select Save. Save icon.

  11. When you publish, you choose audience as profiling attribute and the profiling values to be used for the publication.

    publish-administrators-audience.jpg

    Any topics with administrator as profiling value will be included and topics without audience as profiling attribute. All others are excluded.

When you publish your content, you can choose which Filter Attributes to be applied to the output. Recommended is to choose one profiling value for each profiling attribute (available filter attributes). However, it is possible to choose multiple values for a profiling attribute. The filter then works as an OR filter, where Paligo will filter topics that contain any of the profiling values set.

When you choose profiling attributes, Paligo knows what content to include in the published output. But sometimes, you may want to exclude content rather than include it. For example, you might want to publish content for all audience types except administrators. To do this, you need to mark up the content so that the content you want to:

  • Include has a filter attribute and a profiling value

  • Exclude has the same filter attribute, but a different profiling value for the topics you want to exclude.

When you publish, you choose which condition value to include. Paligo will then:

  • Include any content that has the filter attribute and profiling value.

  • Include any content that does not use the matching filter attribute

  • Exclude any content that uses the matching filter attribute, but has a different profiling value.

To apply publishing filters:

  1. Select the Dotted menu (...) for the topic or publication in Content Manager.

    selectpublish.png
  2. Select Publish. Publish_button_small.png

    publish-document-jan23.png

    Paligo displays the Publish document dialog.

  3. Select an Output type (PDF, HTML, HTML5, Word, XML, eLearning or SCORM).

  4. Set the Languages, Variables and Optional Parameters.

    Tip

    These are common publishing settings, see General Publishing Process.

  5. Select Edit in the Profiling attributes section. Filter_symbol_small.png

    profiling-attributes-blank.png

    The Profiling attributes dialog contains a field for all available filter attributes.

  6. Select one or multiple profiling value from the menu in the fields to be applied to your publication.

    profiling-attributes.png

    To create more profiling values, see Create Profiling Values.

    Note

    Leave the fields blank for attributes not to be used. When there is no attribute set, Paligo ignores that type of filter.

  7. Repeat step 5 and 6 for each profiling attribute you want to apply.

  8. Select OK.

  9. Select Publish document to publish your content.

Paligo uses a blue filtering symbol to show that content has a profiling attribute, see Filtering / Profiling.

This section describes how to add or remove a profiling value from an attribute. A removed profiling value will not be deleted, only not used on the attribute.

  1. Select the element in the topic.

  2. Place the cursor in the Element Structure Menu below the toolbar.

    Element_Structure_Menu_small.png

    Note

    When you select an element in the Element Structure Menu, Paligo highlights it in yellow.

  3. Select the element and choose Go to element to show the attributes for this particular element.

    Remove_element_attributes_2.png

    The Element Attributes Panel. now shows the attributes for the selected element.

  4. Select a profiling value to the right of the attribute (for example Beginner or Business).

    Remove_element_attribute_3_small.png
  5. Use the checkboxes in front of the profiling values to decide whether to use it on the attribute or not.

    • Check the box to add it to the attribute (for example Expert).

    • Clear the box to remove it from the attribute (for example Beginner or Business).

    Add_Remove_Profiling_values_small.png

    Available profiling values are shown.

  6. Select Apply.

  7. Select Save. Save icon.

You can edit or delete a profiling value if needed. Before you do, make sure that all content that uses it is checked in. To find topics that use a specific profiling value, see Search for Attributes.

If you regularly delete outdated profiling values, it will be easier to know which ones to use.

Note

When a profiling value is deleted it will be removed from all content that uses it. The action is irreversible.

Tip

If you only want to deselect a profiling value from an attribute, see Add or Remove Profiling Values.

To edit the name or delete a profiling value:

  1. Select the element in the topic.

  2. Place the cursor in the Element Structure Menu below the toolbar.

    Element_Structure_Menu_small.png

    Note

    When you select an element in the Element Structure Menu, Paligo highlights it in yellow.

  3. Select the element and choose Go to element to show the attributes for this particular element.

    Remove_element_attributes_2.png

    The Element Attributes Panel. now shows the attributes for the selected element.

  4. Select a profiling value to the right of the attribute (for example Beginner or Business).

    Remove_element_attribute_3_small.png
  5. Hover over the profiling value to be edited or deleted.

    Delete_or_Edit_Profiling_Value.jpg
  6. Select one of the options to the right of the profiling value:

    • Delete_small.png Select the X to delete the profiling value from your Paligo instance. You will need to confirm the deletion.

    • Comment_small.png Select the pen to edit the name of the profiling value.

  7. Select Apply.

  8. Select Save. Save icon.

You can use taxonomy filters to control whether a topic is included in a publication. For example, you could use them on a topic so that it is included when you publish a Mac version of a user guide, but excluded when you publish a Windows version.

Some Paligo users prefer to use taxonomy filters instead of the "regular" filters, see Filter Publications, as they are quick and easy to use. All you need to do is create your taxonomy tags, drag and drop them onto your topics and choose which tags to include when you publish. Taxonomy filters can be used in combination with Scoped Filtering.

Another benefit of taxonomy tags is that you can use them to create more complex filters, similar to Scoped Filtering. For this, you organize the tags into a hierarchy. You can then set Paligo to include all of the tags in a branch of the hierarchy, rather than one specific taxonomy tag.

For example, let's say you have set up the following taxonomy tag hierarchy:

taxonomy-hierarchy-usa.jpg

1 is the tag that represents the type of filter you want to use, in this case, the filter is called "Market". This is known as the filter attribute.

2 are all tags for individual filter values. Note that the value tags can be organized into a hierarchy too. Here we have a value tag for the overall market, "USA", and then at a lower level, value tags for the different sub-markets. In this case, the sub-markets are states of the USA.

You can then set Paligo to use the hierarchy in different ways. For example, you can set Paligo to only include those topics that have the "Arizona" tag. Or you could set Paligo to include topics that have the "USA" tag and/or the "Arizona" tag.

To find out about using taxonomy filters, watch the video or read the following instructions.

Note

You only need to Add Filter Values for Taxonomy Tags and Create Tags for Taxonomy Filtering when you first set up taxonomy filtering or when you want to add a new filter or filter value.

Before you create taxonomy tags for filtering, you should add the filter values you need. Then, when you create your taxonomy filter tags, you can give them the same names as the filter tags. This is how Paligo recognizes the relationship between a taxonomy tag and a filter value - they have to have the same name.

Note

If your Paligo instance already contains the filter attributes and values that you need to use, ignore this procedure. Your next step is to Create Tags for Taxonomy Filtering.

  1. Select the Publish option for any publication or topic, and then edit the Profiling attributes.

    publish-document-edit-profiling-values.jpg

    When you select Edit, Paligo displays the Profiling attributes dialog, which contains a list of the filter attributes that are available. The filter attributes define the types of filter, for example, there is a Market attribute for filtering by different regions.

  2. Select the field for each profiling attribute to see what values are available.

    profiling-attributes-check-options.jpg
  3. If you need to add values, create a new topic and select an element in it, such as a para element. Then use the Element attributes section to add a new filter attribute, for example, xinfo:product. Paligo displays the Profiling values dialog and you can use that to add new values for the element.

    add-profiling-value-markets.jpg

    Repeat this step for each filter attribute and value that you need for your publication.

When Paligo has all of the filter values that you need, you can Create Tags for Taxonomy Filtering.

When you have added the filter values you need to Paligo, you can create the taxonomy tags that you will use to mark your content for filtering.

Note

For this section, we assume that you already know how to create taxonomy tags. If you need to find out more, see Create Taxonomy Tags.

You should create a taxonomy tag to represent:

  • Each filter attribute that you want to use. The filter attributes define the type of filter, for example, PRODUCT.

  • Each filter value that you want to use. The filter values define the condition, for example, ACME 1050 could be a condition for a PRODUCT filter.

    The filter value tags have to be at a lower-level than the filter attribute tags in the taxonomy hierarchy.

The taxonomy tags you create need to have the same names as the filters and filter values that they represent. For example, if you have a topic that is only relevant to an "ACME 1050" product, you could use an xinfo:product filter. For this, you would create a tag called "product" and then add a lower-level tag for "ACME 1050". (When setting the taxonomy tag names, do not include the xinfo prefix).

Note that the taxonomy tags for filter attributes should be named to match the filter attribute name

taxonomy-filters-mapping-to-filter-values.jpg

To set up taxonomy tags for filtering:

  1. Select the Taxonomy Manager in the Content Manager to open the structure. Taxonomy_Manager.jpg

    Taxonomy_Manager_Expanded.jpg
  2. Create taxonomy tags for the filter attributes and the filter values that you need.

    For filter attribute tags, the tag name has to match the attribute name (but do not include any xinfo prefix). For example, if you want a taxonomy filter for the xinfo:market filter attribute, create a tag named: market.

    To find out more about the attributes you can use, see Filter Attributes.

    For filter value tags, set the name to match the value. For example, if you have a market filter with a value of "USA", the taxonomy tag for this should also be named "USA".

  3. Drag and drop the taxonomy tags into a logical hierarchy. The hierarchy has to be organized so that:

    • The filter attribute tags are at the highest level (below the taxonomies tag, but above all other tags)

    • The value tags are at a lower level than the filter attribute that they relate to.

    The filter attribute tags must be the "parent" and the value tags must be "children" in the hierarchy.

    taxonomy-hierarchy-usa.jpg

    In the image "Market" (1) is the filter attribute tag. All of the other tags are filter value tags (2). Note that you can have many levels of filter value tags, so that you can have greater control when filtering.

Tip

When you have set up the taxonomy tags, you can Apply Taxonomy Tags to Topics.

When you have the appropriate tags and hierarchy in place, you can apply the taxonomy filter tags to your topics.

  1. In the Content Manager, select the dotted menu ( ... ) for the Taxonomies tag, and then select Floating content panel.

  2. In the floating content panel, find the tag that you want to apply to a topic. Drag the tag onto the topic in the Content Manager. Repeat this step for each topic that you want to filter.

    Drag and drop taxonomy

When you have applied the taxonomy tags to your topics, the next step is to choose how Paligo uses the taxonomy hierarchy when it applies the filters.

For taxonomy filters, Paligo gives you the option to choose a filter strategy. The strategy affects how Paligo matches the filters and determines what topics should be included or excluded from your publication.

To choose the taxonomy filter strategy:

  1. Select the Layout tab in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the layout to be updated 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.

  3. Select Classes and attributes.

    Classes_and_Attributes.png

    Note

    For PDF layouts, they are in the General > Filtering and Taxonomies settings.

  4. Select Enable for Output taxonomies.

    Output_Taxonomies.png

    This setting has to be enabled for taxonomy filtering to work.

  5. Select Exact Value or Descendants for Taxonomy filtering strategy.

    Taxonomy_Filtering_Strategy.jpg

    This setting is labelled as Taxonomy filtering on some layouts.

    • Exact value

      If you choose Exact value, Paligo will ignore the taxonomy hierarchy. When you publish and choose what filters to apply, Paligo will only include topics that:

      • Have a taxonomy tag that matches the filter attribute and filter value that you set for the publication.

      • Are not marked up to use the filter attribute that you set for the publication.

    • Descendants

      If you choose Descendants, Paligo will use the taxonomy hierarchy to determine which topics should be included or excluded.

      When you publish and choose what filters to apply, Paligo will only include:

      • Topics that have a taxonomy tag that matches the filter attribute and filter value. We will call this tag the "descendant" tag.

      • Topics that have a tag that is a "parent" of the "descendant" tag in the taxonomy hierarchy. Note that Paligo includes not only the immediate "parent" tag, but also the "parent" of that tag and so on, until the top-level is reached.

      • Topics that are not marked up to use the filter attribute that you set for the publication.

    Note

    There is also a Disabled option, which turns off the taxonomy filter feature.

  6. Select Save.

When you have set a taxonomy strategy, you can publish your content and set the filters that you want it to use.

This example gives a detailed look at how the exact value and descendant value taxonomy strategies affect the results of a filter.

Example 6. Taxonomy strategy

Let's say you have the following hierarchy for a Product filter, and you filter the publication to include Product: ACME 1050. This is how the filtering strategies will work:

exact-match-example.jpg

Exact value filter strategy applied

descendants-match-example.jpg

Descendants filter strategy applied

The first image shows how the Exact value filter strategy works.

Paligo will ignore the structure of the taxonomy hierarchy. This means that the published output will include:

  • Topics that have the "ACME 1050" tag. Note that it has to be a "child" of the "Product" tag.

  • Topics that do not have any "Product" taxonomy tag

Paligo will exclude any topics that have a "Product" tag but with a different value to "ACME 1050".

The second image shows how the Descendants filter strategy works. Paligo uses the taxonomy hierarchy and includes topics that have the matching tag ("ACME 1050") or are "parents" of the matching tag. This means that the published output will contain:

  • Topics that have the "ACME 1050" tag. Note that it has to be a "child" of the "Product" tag.

  • Topics that have the "ACME 1000" tag or "ACME" tag, as these are "parent" tags of the "ACME 1050" tag in the taxonomy hierarchy.

  • Topics that do not have any "Product" taxonomy tag

Paligo will exclude any topics that have a "Product" tag but with a different value to "ACME 1050".


When you publish your content, you can choose which Filter Attributes to be applied to the output. Recommended is to choose one profiling value for each profiling attribute (available filter attributes). However, it is possible to choose multiple values for a profiling attribute. The filter then works as an OR filter, where Paligo will filter topics that contain any of the profiling values set.

When you choose profiling attributes, Paligo knows what content to include in the published output. But sometimes, you may want to exclude content rather than include it. For example, you might want to publish content for all audience types except administrators. To do this, you need to mark up the content so that the content you want to:

  • Include has a filter attribute and a profiling value

  • Exclude has the same filter attribute, but a different profiling value for the topics you want to exclude.

When you publish, you choose which condition value to include. Paligo will then:

  • Include any content that has the filter attribute and profiling value.

  • Include any content that does not use the matching filter attribute

  • Exclude any content that uses the matching filter attribute, but has a different profiling value.

To apply publishing filters:

  1. Select the Dotted menu (...) for the topic or publication in Content Manager.

    selectpublish.png
  2. Select Publish. Publish_button_small.png

    publish-document-jan23.png

    Paligo displays the Publish document dialog.

  3. Select an Output type (PDF, HTML, HTML5, Word, XML, eLearning or SCORM).

  4. Set the Languages, Variables and Optional Parameters.

    Tip

    These are common publishing settings, see General Publishing Process.

  5. Select Edit in the Profiling attributes section. Filter_symbol_small.png

    profiling-attributes-blank.png

    The Profiling attributes dialog contains a field for all available filter attributes.

  6. Select one or multiple profiling value from the menu in the fields to be applied to your publication.

    profiling-attributes.png

    To create more profiling values, see Create Profiling Values.

    Note

    Leave the fields blank for attributes not to be used. When there is no attribute set, Paligo ignores that type of filter.

  7. Repeat step 5 and 6 for each profiling attribute you want to apply.

  8. Select OK.

  9. Select Publish document to publish your content.

Variables allow you to swap out small parts of content for different publications. They are very useful when you have topics that you want to reuse, but need to have parts of the text changed, such as product names.

For example, let's say you have a topic and you insert the product name "Acme 100" as plain text. By adding it as plain text, you have limited where the topic can be reused, as it is specific to the "Acme 100" and so cannot be used for other products. But if you use a variable to set the product name, you can reuse the topic and tell Paligo which product name to use each time you publish.

variable-diagram.jpg

In Paligo, there are several types of variable that you can use:

  • Text: for plain text that does not need to be translated, such as product names, number values, etc.

  • Text (translatable): this variable type will let you enter translations of each variable value (for the languages you have selected). If you use this type of variable, remember that different languages can have very different grammars. Translated variables can read badly if the grammar, gender, etc., of each language has not been considered.

  • Image: these variables allow you to swap out images. They are useful when you have topics that contain images that need to be changed for different variants or publications. It is often more convenient to have a variable for the image, rather than many images with filtering.

  • XML: these variables are similar to plain text variables, but allow you to add XML tags too, so you can include inline tags if needed.

  • Dynamic text variables: These are a special type of variable, and you can use them for inserting things like today's date or for inserting the content from an element that is elsewhere in the publication. They are different to other variable types as you do not create them in variable sets. Read more about them in Dynamic Text Variables.

To use variables in your topics and publications, follow this process:

  1. Create a Variable Set - This is a collection of variables and the possible values that they can contain.

    • In the variable set, add variables for each type of information that needs to change in different scenarios.

    • Create variants for the variables. A variant is a collection of values that will be inserted into the variables when you publish. For example, if you have a product name variable, you could have a variant where the product name is "ACME 100X" and you could have another variant where the product name is "ACME 200X". Think of each variant as the values that will be used in one particular scenario.

    You can skip this step if you already have suitable variable sets available in Paligo.

  2. Insert a Variable into your topics where appropriate.

  3. Preview Variables to check that they are providing the correct information.

  4. Publish your conten and choose the variants that Paligo should use.

Note

The process is different for Dynamic Text Variables.

You can use variables for many different types of changeable content, but one of the most popular uses is for product names and company names. With these, you may want to add superscript text to the variable, for example, to add a trademark TM after the product name.

To add superscript text to a variable:

  1. Create or edit a variable set (see Create a Variable Set).

  2. In the variable set, create an XML variable and give it a name, for example, ProductNameTM.

    add-new-xml-variable.jpg
  3. Set the value for the XML variable. The value is called a variant. As this is an XML variable, include the inline <superscript> element. For example:

    ACME<superscript>TM</superscript> 1000
    
  4. Insert the variable in your topics as needed.

With variables you can alter small pieces of content (text, images, values, links) that you want to change for different scenarios. This makes it possible to reuse more content. The variables are defined in a Variable Set, which is a collection of variables and their possible values.

When you publish with a variable set containing variants, you can choose which variant to be used. The variables (like height, product name, variant image, weight and width) fetch the values from the column that represents the chosen variant.

Variables_Editor_small.png
  • The left column contains the variables, which are the placeholders that you add to your topics. In this column, you enter the variable names.

  • The second, third and fourth columns contain variants. Each variant column represents a different scenario and contains the terms or values that will be used for the variables, for example different weights.

Tip

Once the Variable Set is created, you can use the variables in your topics, see Use Variables.

To create a variable set, watch the following video or read the instructions below.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the Dotted Menu (...) for Variable Sets.

    VariableSet_Create_small.png
  3. Select Create variable set.

  4. Name the variable set.

  5. Select the new variable set to open it in the Variable Editor.

    Variables_Editor_small.png

    Paligo displays it in the Variables Editor.

  6. Select Add Variable .

    variableset.png
  7. Select the Variable type to create.

    CreateVariable.png
    • Text: for plain text that does not need to be translated, such as product names, number values.

    • Text (translatable): this variable type will let you enter translations of each variable value (for the languages you have selected). If you use this type of variable, remember that different languages can have very different grammars. Translated variables can read badly if the grammar, gender of each language has not been considered.

    • Image: these variables allow you to swap out images. They are useful when you have topics that contain images that need to be changed for different variants or publications. It is often more convenient to have a variable for the image, rather than many images with filtering.

    • XML: these variables are similar to plain text variables, but allow you to add XML tags too, so you can include inline tags if needed.

    Tip

    If you create a text variable and later realize that you need it to be a translatable variable, you can convert it by using the Convert Variable Type option. Similarly, you can convert a translatable variable into a text variable.

  8. Repeat step 4 to create as many new variable types as needed for this variable set.

  9. Select Add variant and enter a name.

    The variant is going to be one set of values that can be used for the variables. You might want different values for depending on the product model you are publishing for, so add product models as the variant columns.

  10. Enter values for each variable.

    These values will only be used if this particular variant is selected when publishing.

    AddVariableValue.png
  11. Repeat steps 9 and 10 to create as many variants and variant values as needed.

    Variableset

You can convert an existing text variable into a translatable variable or vice versa by using the Convert Variable Type option. Paligo automatically detects the type of variable you have selected and will convert it into the other type.

Tip

If you have made a mistake, you can always do another conversion to change the variable back to its previous type.

To convert a variable:

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the variable set that contains the variables you want to convert.

    Variables_Editor_small.png

    Paligo displays it in the Variables Editor.

  4. Select the Dotted Menu (...) for the variable you want to convert.

    Variables_Editor_DottedMenu_small.png
  5. Select Convert Variable Type.

    Convert_Variable_small.png
  6. Select Confirm to convert the variable.

You can copy an existing variable set to use as a starting point for a new set. This is sometimes quicker than creating a new variable set from scratch.

Note

For performance reasons, we recommend that your variable sets have less than 2,000 entries. For example 100 variables x 20 variants = 2,000. In most cases it's better to divide your variables into a number of smaller sets in different categories.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the Dotted Menu (...) for the variable set you want to copy.

    copyvariableset.png
  4. Select Copy.

    Paligo makes a copy of the variable set and adds it to the list of variable sets. It has the same name as the original version, but is appended with a number.

A variable set cannot be deleted unless all the variables from the variable sets are removed from the instances where they are used. To see where a variable is used, see Display Usage Information.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the Dotted Menu (...) for the variable set you want to delete.

    VariableSet_Delete_small.png
  4. Select Delete.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the variable set that contains the variables you want to display.

    Variables_Editor_small.png

    Paligo displays it in the Variables Editor.

  4. Select the Dotted Menu (...) for the variable you want to display the usage information for.

    Variables_Editor_DottedMenu_small.png
  5. Select Usage information.

    Usage_Information_small.png
  6. Paligo shows the usage information for the chosen variable.

    Usage_Information_2.png

If you need to reorganize your variables, you can move them from one variable set to another.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the variable set that contains the variable you want to move.

    Variables_Editor_small.png

    Paligo displays it in the Variables Editor.

  4. Select the Dotted Menu (...) for the variable you want to move.

    Variables_Editor_DottedMenu_small.png
  5. Select Move variable.

    Move_Variable_small.png
  6. Choose the Variable set that will receive the variable.

    move-variable.png
  7. Select OK.

    Paligo moves the variable to chosen variable set.

A variable cannot be deleted unless it has been removed from the instances where it is used. To see where a variable is used, see Display Usage Information.

  1. Scroll down to Variable sets in Content Manager. Re-index_Translations_button_small.png

  2. Select the arrow in front of the Variable sets to expand it. Insertion_point_small.png

    Paligo content manager side panel. It has sections for Documents, Media, Templates, and Variable sets. The Variable sets section is expanded to reveal two variable sets in a list.
  3. Select the variable set that contains the variables you want to remove.

    Variables_Editor_small.png

    Paligo displays it in the Variables Editor.

  4. Select the Dotted Menu (...) for the variable you want to remove.

    Remove_Variable_small.png
  5. Select Remove Variable.

A variable is a piece of content that can have many different values, and when you publish, you choose which value Paligo should use. For example, you can have a product name variable and when you publish, you choose which product name should be used in the published content.

To use variables in your topics, you first need to create a variable set. In the variable set, you define what variables you need, and the different possible values that they can have. Each set of possible values is called a variant.

To find out how to insert variables in a topic, watch this video or read the sections that follow:

To insert a variable in your content:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Place the cursor in a valid position for a variable.

    You can insert variables into most types of text block, including para elements.

    usingvariables1_50.png
  3. Select the Insert tab in the Toolbar.

    Toolbar_Insert_small.png
  4. Select Variable. Insert_Variable.png

  5. Select the variable set that contains the variable to be used.

    Alternatively, use the Search field to find the variable.

    usingvariables3_50.png

    A dialog opens, showing all of the variable sets you have available.

  6. Select the variable.

    usingvariables4_50.png
  7. Select OK.

    usingvariables5_50.png

    The variable is inserted at the cursor position.

  8. Select Save. Save icon.

After adding a variable, you can use the Preview feature to choose different variants. These allow you to see what value Paligo will use for the variable for each different variant.

When you are ready to publish your content, you can choose which variant Paligo should use for the published output.

You can use the Preview feature to see what values that are applied for your variables. This is useful for checking that the value you need is actually included in a variable set. If the value is not there, you will need to edit the variable set or create a new one.

To preview variables:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Select the Preview tab in the Toolbar.

    Preview_menu_small.png
  3. Select Profile settings. Profile_settings_button_small.png

  4. Select the Variables tab.

  5. Select the variant that you want to preview in the topic.

    profile-settings-variables.png

    The variant is a collection of values, as defined in a variable set.

  6. Select Apply.

    preview-variables-shown.png

    Paligo updates the topic to show the variables that will be used with the variant you have selected.

When you publish your content, you can choose which values (variants) should be used for the variables in your content.

  1. In the Content Manager, select the options menu ( ... ) for the topic or publication you want to publish, and then select Publish.

  2. On the publish dialog, choose the type of output you want Paligo to create, and set the Languages and Profiling Attributes.

  3. Select the Edit option for Variables.

    select-edit-on-variables.png

    Paligo displays a list of all of the variable sets that are available.

    variables-list-publish.png
  4. For each variable set that is used in your topic or publication, select a variant. The variant's values will be inserted into the relevant variables in your content. Select OK to confirm.

    choose_a_variant.png
  5. Select Publish document to publish your content.

Dynamic text variables are pieces of content that take their value from either the client session or from other elements in your content. They are resolved when you publish and you can use them to insert content such as:

Important

If you publish to PDF in multiple languages, there is an option to Combine selected languages in the PDF layout.

You can only use dynamic text variables if Combine selected language is disabled (unchecked). Dynamic text variables are only supported when publishing individual PDFs.

You can use dynamic text variables to insert the value of an element or attribute from your content into a topic. For example, you could add the value of the edition, author or releaseinfo elements from a Publication Topic into the topic. To learn more, see Supported Elements, Supported Info Elements and Supported Attributes.

To reference elements and attributes, you will need:

With dynamic text variables, you can enable time and date to be automatically added to your content during the General Publishing Process. Since the information is retrieved from your browser's client session time and date, it will be accurate for your location. To find out more about the syntax for time and date variables, see SimpleDateFormat (Java 2 Platform SE 5.0).

To Insert a Dynamic Text Variable in your topics, add the references using the appropriate syntax in a phrase element. There are many different ways of displaying the time and date and we have included some examples below.

Syntax

Returns

${date:date-time()}$

The current date, time, and timezone information.

${date:format-usertime('h:m')}$

The current hour and minutes. Use this function for greater control over the format of the date and time in the output.

Set the arguments for the function in brackets, where string arguments must be enclosed in single quotes (as shown in the table).

${date:format-usertime('EEE, MMM d, yyyy')}$

The current day, month, and year.

${date:format-unixtime(ancestor::d:section[@xinfo:time-modified][1]/@xinfo:time-modified, 'EEE, MMM d, yyyy')}$

This syntax formats the Unix time stamp into readable text: Thu, Aug 10, 2023. Replace the date format in the syntax to change how the date is presented. To find suggestions, see Simple Date Format.

If ${@xinfo:time-modified}$ is used on its own, it presents the date as a computer code (1691661600). Embedding the syntax (like in the left column) the date becomes readable.

Timestamp_small.jpg

When you know what elements and attributes you want to use for your dynamic text variables, you add them to your topics. This works for both HTML5 and PDF output.

To write XPath expressions, there are several things you need to be aware of:

  • Include the "d:" prefix for navigatingthe XML, for example: ${/*[1]/d:info/d:title}$. The namespace prefix d is bound to http://docbook.org/ns/docbook

  • Some DocBook attributes and Paligo extension attributes do not require a prefix. To access the extension attributes, use the @xinfo prefix, for example ${@xinfo:time-modified}$. It will show the date as a computer code, see Dynamic Text Variables for Time and Date for examples of how to make it readable. The namespace prefix xinfo is bound to http://ns.expertinfo.se/cms/xmlns/1.0.

  • For PDF output the top-level node that you can access is article. You cannot access the article's parent node (part).

To insert a dynamic text variable:

  1. Select the topic or component in the Content Manager.

    ContentManager_1.jpg

    Paligo opens the content in the Editor.

  2. Position the cursor at a valid position for the dynamic text variable.

    For example, inside a para element.

  3. Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.

    Element_Context_Menu_small.png
  4. Enter phrase and select it from the menu.

  5. Select the phrase element in the Element Structure Menu and choose Go to element.

    Phrase_Go_To_Element.jpg
  6. Add the role attribute in the Element Attributes Panel and set its value to dyntextvar.

    phrase-role-dyntextvar.jpg

    This will add the minimum required syntax for the dynamic variable

    <phrase role="dyntextvar">${}$</phrase>
  7. In the phrase element, enter the syntax for the relevant XPath expression to access the element or attribute you want to use.

    Important

    If you use an expression to access an element or attribute that does not exist, the dynamic text variable will be empty (blank) in the output.

  8. Select Save. Save icon.

  9. Preview the topic to verify the timestamp.

Paligo can provide you with a single XML file that contains all of the content in a publication (the publication itself and all of the topics). You can use this XML file to get a better understanding of the structure of your content, so that you plan the XPath expressions for your dynamic text variables. Use XPath 1.0 expressions to access the elements and attributes in your content.

To find out how to get the XML file, watch the video or read the following instructions:

  1. In the Content Manager, find your publication, select its option ( ... ) button, and then select Publish.

  2. On the Publish document dialog, choose the type of output you want, set the Languages, Profiling Attributes, and regular Variables, and then select the Make debug build option.

    The Make debug build option tells Paligo to include the build files in the output as well as the actual output. One of the build files is an XML file that contains your content.

    Publish document settings. Make debug build is enabled.
  3. Select Publish document to publish your content.

    When it downloads, unzip it and look for the XML file that contains your content.

    For PDF outputs, the XML file has the same name as the publication and has a language suffix. For example, "Acme_100_user_guide-en.xml".

    For HTML, HTML5, XML, Word, and SCORM outputs, the XML file is named index and has a language suffix, for example, index-en.xml.

  4. Open the XML file from step 3 and use it to plan your XPath 1.0 expressions. When you have planned the expressions, you can insert dynamic text variables into your content and add the relevant expressions.