I did a bad thing...
I updated a template that I should not have updated. Should have made a new one.
Now I get the message
"The template 'Name' on which this document is based, has been modified..."
Is there any way to restore the original template since OO obviously remembers it?
Thanks...
[Solved] Template Reset
[Solved] Template Reset
Last edited by Hagar Delest on Mon Jan 21, 2013 10:41 am, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Re: Template Reset
What is your operating system? Do you have a backup copy of the template? OOo/AOO doesn't remember the template. The modified date of the template is stored in each document based on the template. That's what OOo/AOO uses to determine if a template has been modified.
Re: Template Reset
As far as I know, if you simply replace the template file with a version of the template file from before you changed it (that would be the backup copy Bill asked about), then you can safely allow OOo to "update" the document when asked: Writer will update the document(s) with the same data they had before and everything will be back to normal.
If you want to avoid the prompt altogether, then you have to either reset the template info (timestamp) stored in the documents, or replace the template file and then change it's modification time so that Writer thinks it's not recently changed.
Also, whether you need to do anything at all depends on what kind of modification you made to the template. If you only changed content in the template (text/graphics/direct formatting), then the prompted document updates won't actually change anything. The update only updates changes in the document's styles--formatting and the like--not it's content.
If you want to avoid the prompt altogether, then you have to either reset the template info (timestamp) stored in the documents, or replace the template file and then change it's modification time so that Writer thinks it's not recently changed.
Also, whether you need to do anything at all depends on what kind of modification you made to the template. If you only changed content in the template (text/graphics/direct formatting), then the prompted document updates won't actually change anything. The update only updates changes in the document's styles--formatting and the like--not it's content.
AOO4/LO5 • Linux • Fedora 23
Re: Template Reset
If I had a backup copy, I'd simply replace it...Bill wrote:What is your operating system? Do you have a backup copy of the template?
Bummer. Wish I knew what I changed...Bill wrote:OOo/AOO doesn't remember the template. The modified date of the template is stored in each document based on the template. That's what OOo/AOO uses to determine if a template has been modified.
I'll try changing the timestamp of the template itself.acknak wrote:If you want to avoid the prompt altogether, then you have to either reset the template info (timestamp) stored in the documents, or replace the template file and then change it's modification time so that Writer thinks it's not recently changed.
Re: Template Reset
Nope, didn't work.
What did work, though, was looking through the document (using a binary editor) and finding where the template is specified and changing the name to a non-existent template.
What did work, though, was looking through the document (using a binary editor) and finding where the template is specified and changing the name to a non-existent template.
Re: Template Reset
Sorry--I was wrong about the file date. I forgot that OOo actually works from the "last modified" date stored in the template document, not from the file date. You'd have to edit the date stored inside the file.WaltP wrote:Nope, didn't work.
If you just want to sever the link to the template, just answer "no" to the update prompt: the link to the template is disabled and Writer will never try to update it again.What did work, though, was ... changing the name to a non-existent template.
There is also an extension available that allows you to manually set the template link to whatever template file you choose. "Template Changer" or something like that.
AOO4/LO5 • Linux • Fedora 23
Re: Template Reset
At Template Changeracknak wrote:[There is also an extension available that allows you to manually set the template link to whatever template file you choose. "Template Changer" or something like that.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Template Reset
Depending on your operating system, you might be able to recover the old version of your template.WaltP wrote:If I had a backup copy, I'd simply replace it...Bill wrote:What is your operating system? Do you have a backup copy of the template?
AOO 4.1.14 on Ubuntu MATE 22.04