Specifying Plugin-Related Preferences

Plugins location

Plugins for Serna are located in the sernaInstallationPath\plugins directory. Also, you can specify the path to an additional directory with plugins.

Plugins activation

When you open a document of a particular type in Serna, particular plugins are loaded depending on the applied document template:
  1. A document template specifies what plugins must be loaded for documents opened/created with this template.

    For example, DITA document templates specify that TablePlugin must be loaded for DITA documents.

    .....
    
    <t:load-plugins>TablePlugin</t:load-plugins>
    .....
  2. Serna plugin description files ( *.spd) list document templates for which they must be loaded.

    For example, dita-reference.spd specifies that DitaReference_Py plugin must be loaded for documents opened with document templates of DITA 1.0 and DITA 1.1 categories.

    .....
    <serna-plugin>
      <name>DitaReference_Py</name>
      <dll>$SERNA_PLUGINS_BIN/pyplugin/pyplugin21</dll>
      <load-for>
        <template>
          <category>DITA 1.0</category>
        </template>
        <template>
          <category>DITA 1.1</category>
        </template>
      </load-for>
    .....

It is possible to disable and enable installed plugins for all document types.

Related concepts
Preferences Dialog Tabs
Specifying Document-Related Preferences
Specifying General Serna Preferences
Related tasks
Resetting Preferences to Factory Default Settings
Related information
Preferences Dialog