Difference between revisions of "Documentation/Administration Guide/Adding Template Files"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE: Adding Template Files to a {{OOo}} Installation}}
 
 
{{Documentation/AdminGuideTOC/v2
 
{{Documentation/AdminGuideTOC/v2
 
|ShowPrevNext=block
 
|ShowPrevNext=block
Line 6: Line 5:
 
|PrevPage=Documentation/Administration_Guide/Using Package Manager
 
|PrevPage=Documentation/Administration_Guide/Using Package Manager
 
|NextPage=Documentation/Administration_Guide/Adding AutoText Files
 
|NextPage=Documentation/Administration_Guide/Adding AutoText Files
}}
+
}}
 +
{{DISPLAYTITLE: Adding Template Files to an {{AOo}} Installation}}
  
 +
You can make custom document templates available to all users or to individual users of an {{AOo}} network installation. You can also make specific directories for document templates available to these users.
  
You can make custom document templates to all or to individual users of a network installation of {{OOo}} network installation. You can also make specific directories for document templates available to these users.
+
{{Warn|Do not give users write permission for template files.}}
  
{{Documentation/Caution|Do not give users write permission for template files.}}
+
===To Add a Template For All Users of a {{AOo}} Network Installation===
 
+
 
+
===To Add a Template For All Users of a {{OOo}} Network Installation===
+
  
 
# Become root.
 
# Become root.
# Copy the template to the <tt>&lt;{{OOo}} network installation directory&gt;/share/template/</tt> directory.
+
# Copy the template to the <tt>''network-install-dir''/share/template/</tt> directory.
  
===To Add a Template to a Workstation Installation of {{OOo}}===
+
===To Add a Template to a Workstation Installation of {{AOo}}===
  
 
# Become root.
 
# Become root.
# Copy the template to the <tt>&lt;{{OOo}} installation&gt;/user/template/</tt> directory on the workstation.
+
# Copy the template to the <tt>''ooo-user-dir''/user/template/</tt> directory on the workstation.
  
===To Add a Template Directory to a {{OOo}} Installation===
+
===To Add a Template Directory to an {{AOo}} Installation===
  
# In any {{OOo}} program, choose '''Tools &rarr; Options &rarr; {{OOo}} &rarr; Paths'''.
+
# In any {{AOo}} program, choose {{menu|Tools|Options|OpenOffice|Paths}}.
# In the list of default paths, select "Templates", and then click the '''Edit''' button.
+
# In the list of default paths, select Templates, and then click {{button|Edit}}.
# In the '''Select Paths''' dialog box, click the '''Add''' button.
+
# In the '''Edit Paths''' dialog box, click the {{button|Add}} button.
# Locate the template directory that you want to add and click the '''OK''' button.
+
# Locate the template directory you want to add and click {{button|Select}}.
# In the '''Select Paths''' dialog box, click the '''OK''' button.
+
# In the '''Edit Paths''' dialog box, click the {{button|OK}} button.
# In the '''Options &rarr; {{OOo}} &rarr; Paths''' dialog box, click the '''OK''' button.
+
# In the {{menu|Options|OpenOffice|Paths}} dialog box, click {{button|OK}}.
# Exit {{OOo}}.<br>{{OOo}} saves the template path to the <tt>user installation directory/{{OOo}}2/user/registry/data/org/openoffice/Office/Common.xcu</tt> configuration file.
+
# Exit {{AOo}}.<br>{{AOo}} saves the template path to the <tt>''ooo-user-dir''/user/registry/data/org/openoffice/Office/Common.xcu</tt> configuration file.
 
# Copy the code below into the appropriate <tt>Common.xcu</tt> file.
 
# Copy the code below into the appropriate <tt>Common.xcu</tt> file.
#* To make the template directory available to all users of the {{OOo}} network installation, copy the code into the <tt>{{OOo}} installation directory/share/registry/data/org/openoffice/Office/Common.xcu</tt> file.
+
#* To make the template directory available to all users of the {{AOo}} network installation, copy the code into the <tt>''install-dir''/basis<version>/share/registry/data/org/openoffice/Office/Common.xcu</tt> file.
#* To make the template directory available to a single user of a {{OOo}} network installation, copy the code into the <tt>user installation directory/user/registry/data/org/openoffice/Office/Common.xcu</tt> file.
+
#* To make the template directory available to a single user of an {{AOo}} network installation, copy the code into the <tt>''ooo-user-dir''/user/registry/data/org/openoffice/Office/Common.xcu</tt> file.
 
+
<syntaxhighlight lang="xml">
 
+
  <node oor:name="Path">
  &lt;node oor:name="Path"&gt;
+
   <node oor:name="Current">
   &lt;node oor:name="Current"&gt;
+
   <prop oor:name="Template" oor:type="oor:string-list">
   &lt;prop oor:name="Template" oor:type="oor:string-list"&gt;
+
     <value>$(inst)/share/template/$(vlang)
     &lt;value&gt;$(inst)/share/template/$(vlang)
+
 
       $(user)/template new_template_directory
 
       $(user)/template new_template_directory
     &lt;/value&gt;
+
     </value>
   &lt;/prop&gt;
+
   </prop>
   &lt;/node&gt;
+
   </node>
  &lt;/node&gt;
+
  </node>
 +
</syntaxhighlight>
  
 +
{{InterWiki Languages AdminGuide|articletitle=Documentation/Administration Guide/Adding Template Files}}
 
{{PDL1}}
 
{{PDL1}}

Latest revision as of 15:01, 1 February 2021


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

Documentation caution.png Do not give users write permission for template files.

To Add a Template For All Users of a Apache OpenOffice Network Installation

  1. Become root.
  2. Copy the template to the network-install-dir/share/template/ directory.

To Add a Template to a Workstation Installation of Apache OpenOffice

  1. Become root.
  2. Copy the template to the ooo-user-dir/user/template/ directory on the workstation.

To Add a Template Directory to an Apache OpenOffice Installation

  1. In any Apache OpenOffice program, choose Tools → Options → OpenOffice → Paths.
  2. In the list of default paths, select Templates, and then click  Edit .
  3. In the Edit Paths dialog box, click the  Add  button.
  4. Locate the template directory you want to add and click  Select .
  5. In the Edit Paths dialog box, click the  OK  button.
  6. In the Options → OpenOffice → Paths dialog box, click  OK .
  7. Exit Apache OpenOffice.
    Apache OpenOffice saves the template path to the ooo-user-dir/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 Apache OpenOffice network installation, copy the code into the install-dir/basis<version>/share/registry/data/org/openoffice/Office/Common.xcu file.
    • To make the template directory available to a single user of an Apache OpenOffice network installation, copy the code into the ooo-user-dir/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
In other languages