Apache OpenOffice (AOO) Bugzilla – Issue 96632
updating a document from a template which is not in a template path is difficult
Last modified: 2013-02-07 22:34:52 UTC
if you create a writer document from a template, you will be asked to update the styles in your document whenever the template changes. this is a really nice feature e.g. if you work with multiple documents in global document project. there is only one drawback: the template must be stored in one of the oo template paths (Tools-Options- OpenOffice.org-Paths) otherwise you will never see the an update dialog while opening the document... in a shared project you may want to have the following file structure: + MyProject + Pictures (contains linked pictures) + OLE Object (contains linked resources) + Documents (contains all *.ods documents) + other stuff template.ott (template for all *.ods documents) to change the template for the *.ods documents, use the great "TemplateChange.oxt" extension from http://extensions.services.openoffice.org/project/templatechanger. what i found out so far is that the "meta.xml" of the documents will contain a *relative* path to the template (like linked pictures will have too) <meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:href="../../template.ott" xlink:title="template" meta:date="2008-11-16T12:14:23"/> but as long as you do not add the absolute path "\MyProjects" to the oo template paths updating seems not work :-( on the other side, if you add the path to oo before changing the *.ods documents with the "TemplateChange.oxt" the "meta.xml" will contain an *absolute* path :-( imho this makes it difficult to share the project .. so is it necessary to force a user to add the project's template path, (even if a relative path is given) before start updating ? and what about to add the "TemplateChange.oxt" to the oo installation ? Oliver
Handling of template path's refer to all OOo Applications, thus I change the component to "Framework". Reassigned to requirements.