Inline label

Key point: Use inline labels to give a specific meaning or purpose to a portion of text.

Inline labels have a name and can highlight a portion of text within a paragraph or a list. By wrapping them, you can associate semantics with them and make them appear inside a colored background in the user interface.

Inline labels play the equivalent role for PageSeeder as “character” or “inline” styles play in traditional publishing or word processing systems.

To use a label on a block of content, use a block label instead.

Inline labels use the  icon in the editor.

Usage

Inline labels are useful to highlight small portions of text.

For example, you can use an inline label named “keyword”. Any text that you highlight with that label now has a colored background. 

Apart from showing the text differently, inline labels are also available to the publishing engine and third-party tools. They can be useful to flag portions of content.

For example, if you publish your document to a website with a “keyword” inline label, your website might collect all the keywords on the page.

Configuration

Project managers can define inline labels:

  • As part of the document type – in which case they are only available for that type of document.
  • As part of the project configuration – in that case, they are available for any document in all the groups within that project.
  • As part of the global template – which makes them globally available.

You can configure your inline labels to use different colors so that they can be more easily distinguished.

For developers

In PSML, inline labels are represented using the <inline> element.

For more information, see the inline element in the PSML reference on the PageSeeder developer's website.