In addition to topic properties available from the table of contents, the Topic properties panel allows you to configure additional information and settings for each topic in your project. These properties are separate from the table of contents structure and provide finer control over how topics behave and how they are processed in generated documentation.

System properties

System properties define core information about the topic:

HTML properties

HTML properties define settings related to web-based output:

Word/PDF properties

Word/PDF properties control formatting for document-based outputs:

Custom properties

Custom properties allow you to define additional metadata specific to your documentation needs.

Accessing custom topic properties in scripting and templates

Custom topic properties can be accessed programmatically:

The scripting API makes it possible to query and use custom topic properties in templates. You can call HndTopicsProperties.GetTopicCustomPropertyExists to determine whether a property is defined for a given topic, and HndTopicsProperties.GetTopicCustomPropertyValue to retrieve its content. For example, a template might first check if a property named "Reviewer" exists and, if so, insert its value into the generated output.

Here's a minimal sample script showing how to check for a Reviewer property and retrieve its value using the correct API methods:

if HndTopicsProperties.GetTopicCustomPropertyExists(TopicId, 'Reviewer') then
begin
  var Reviewer := HndTopicsProperties.GetTopicCustomPropertyValue(TopicId, 'Reviewer');
  PrintLn('Reviewer: ' + Reviewer);
end;