Adding Template Files to an OpenOffice.org Installation

From OpenOffice.org Wiki

Jump to: navigation, search
doc OOo
PAGE_TITLE: QWRkaW5nIFRlbXBsYXRlIEZpbGVzIHRvIGFuIE9wZW5PZmZpY2Uub3JnIEluc3RhbGxhdGlvbg==

You can make custom document templates available to all, or to individual users of a network installation of OpenOffice.org. You can also make specific directories for document templates available to these users.

Image:documentation_caution.pngDo not give users write permission for template files.

To Add a Template For All Users of a OpenOffice.org Network Installation

  1. Become root.
  2. Copy the template to the <OpenOffice.org network installation directory>/share/template/ directory.

To Add a Template to a Workstation Installation of OpenOffice.org

  1. Become root.
  2. Copy the template to the <OpenOffice.org installation>/user/template/ directory on the workstation.

To Add a Template Directory to a OpenOffice.org Installation

  1. In any OpenOffice.org program, choose Tools → Options → OpenOffice.org → Paths.
  2. In the list of default paths, select "Templates", and then click the Edit button.
  3. In the Select Paths dialog box, click the Add button.
  4. Locate the template directory that you want to add and click the OK button.
  5. In the Select Paths dialog box, click the OK button.
  6. In the Options → OpenOffice.org → Paths dialog box, click the OK button.
  7. Exit OpenOffice.org.
    OpenOffice.org saves the template path to the user installation directory/OpenOffice.org2/user/registry/data/org/openoffice/Office/Common.xcu configuration file.
  8. Copy the code below into the appropriate Common.xcu file.
    • To make the template directory available to all users of the OpenOffice.org network installation, copy the code into the OpenOffice.org installation directory/share/registry/data/org/openoffice/Office/Common.xcu file.
    • To make the template directory available to a single user of a OpenOffice.org network installation, copy the code into the user installation directory/user/registry/data/org/openoffice/Office/Common.xcu file.
<node oor:name="Path">
  <node oor:name="Current">
   <prop oor:name="Template" oor:type="oor:string-list">
    <value>$(inst)/share/template/$(vlang)
      $(user)/template new_template_directory
    </value>
   </prop>
  </node>
 </node>
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools