Issue 96632 - updating a document from a template which is not in a template path is difficult
Summary: updating a document from a template which is not in a template path is difficult
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 3.0 RC4
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-11-26 18:50 UTC by Oliver Brinzing
Modified: 2013-02-07 22:34 UTC (History)
1 user (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2008-11-26 18:50:58 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- 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 for all *.ods documents)

to change the template for the *.ods documents, use the great 
"TemplateChange.oxt" extension from

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: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 ?

Comment 1 michael.ruess 2008-11-27 11:31:43 UTC
Handling of template path's refer to all OOo Applications, thus I change the
component to "Framework". 
Reassigned to requirements.