Installing the viewer plug-in

Installing the plug-in
After the plug-in package has been created it can be installed as described in Section 2.7.5, “Installing Plug-ins”.
Content handler versions
Docmenta does not track versions of a content handler. However, it is possible to install different versions of a content handler in the same Docmenta environment, as long as different identifiers are used for the different versions of the content handler. This can easily be achieved by including the version number in the content handler identifier. Given our example, the identifier my_text_viewer_v1-1 could be used for version 1.1 of the content handler. Though, for Docmenta the content handlers my_text_viewer_v1-0 and my_text_viewer_v1-1 would just be two different content handlers.
Note: Plug-in and content handler identifiers
In the example given in this section, the plug-in identifier is my_html_viewer_v1_0, whereas the content handler identifier is my_html_viewer_v1-0. The identifiers are identical, except that the plug-in identifier uses an underscore in the version number, instead of a dash character. Though, for Docmenta there is no relation between plug-in identifier and content handler identifier. Nevertheless, by convention the same or a similar identifier should be used. This makes it easier to track which content handler has been installed by which plug-in. Note that Docmenta tracks the version of plug-ins. That means, Docmenta can only install one version of a plug-in at the same time. Therefore, if the installation of different versions of a content handler at the same time shall be prevented, then the version number just needs to be removed from the plug-in identifier. Given our example, we could use the plug-in identifier my_html_viewer instead of my_html_viewer_v1-0, to prevent installation of different versions of the viewer at the same time.