Thank you to you and @ajlittoz for all tips so far. Regarding user code proposed, is it to be placed in a macro to run and try?
Proceeded that time in following sequence.
Create new document based on Writer’s default/stock template, File > New > Text Document
Save to disk as template, .ott
Create a low number of documents using this template
Work on documents, work on template - a session of duration of a number of days
If my understanding is only correct, the import of template in template manager should in this case be not needed; maybe, in contrary, interfering with present template.
–
In this particular case the link template to document worked a number of days pretty well. It became broken recently.
Latest attempt to fix doesn’t help as well:
Disconnect document from template using TemplateChanger
Make backup of the critical template at file system location the Writer was not informed about.
Unregister template the former one and the newer one.
Unregister the custom template category.
Make sure template files are not present on custom templates path.
In Writer let’s open template backup then store as template at custom templates path - for this to work the backup needed first to be placed manually on custom templates path, otherwise no visibility
in template manager.
Use TemplateChanger to connected document again with template recreated.
Do the test of style modification in template then the test of prompt for changes take-over when document gets reloaded.
One further derived document is affected as well, possibly all of those remaining are.
What myself tried before was the simple disconnect from template and connect again.
What I will try as next is @ajlittoz’s proposal to connect document temporarily to some irrelevant template.
I afraid this will not suffice when multiple derived documents are affected.
EDIT
Proposed user code helped to verify that in document the path of template is as expected - leads to intended template file and its intended location.
EDIT 2
It seems to be something at template management level. I dare to do this statement because if to create now a new document from this template the style modification doesn’t propagate to document too.
Would it be some dirt thing the document level while the remaining levels/areas being clean (I mean mainly template management right now) I would expect the link template-document to work properly for document created right now.
EDIT 3
For the prompt “caution, styles in template have been modified. do you want to take over modifications?” - is it expected to pop-up unconditionally on document reopening, reloading? I mean it in the sense how should my test look like. Can I test with paragraph style used in no paragraph of derived document? I mean unused however visible in Styles manager/viewer side bar. Writer Guide seems to be silent regarding this question.
EDIT 4
I encountered one document derived from same template but generating the prompt on document reload. That means that problem is not reproducible in this case. No more true. Became broken after repeated test.
EDIT 5
Is it eventually a bad idea to use in template Writer’s function document Versions? Two were created recent (up to) 32 hours.
EDIT 6
How are handled those modifications of paragraph style conducted by mistake in document instead of template? Will modification template level overwrite it when style name is identical and user gives agreement when the prompt pops up on document reopen/reload?
EDIT 7
There must be something dirty at template management/registration level. Why my conclusion? Answer: Last minutes following was conducted. Menu Styles > Load Styles from Template > Load from registered template (From File … not using) > select template the document is considered to be linked to > checked are
Paragraph and Character
Lists
Page
Overwrite
a click on OK > Save to disk > check that paragraph style I use to test > document and template are not in sync regarding that attribute of paragraph style in that one paragraph style I use to test. Should the use of Load Styles from Template complete with some sort of execution summary pop-up? None happens here.
Eventually the problem nature is that Load Styles and template linking are not effective when document got once a style modification document-locally. No idea how wrong this understanding is.
EDIT 8
Custom templates path (registered one in LO Options, Paths) has a whitespace in path string. How bad may it be? User code presented by @Lupp is coding whitspace to “%20” in output message.
EDIT 9
Fortunately, the conduction of mere “update of document from changed template” results in no permanent changes in document file. A subsequent yet explicit/manual save to disk is necessary to make this update permanent. It raised the Aha!-effect on my side some day in the past because, as far as Writer documentation is concerned, the behaviour is not presented to have this form. Eventually it can help in further troubleshooting here as one of derived documents has the link to template still in functional state. My current feeling is, that in case of that one document the save of document update due to modifications in template will render its linking to template non-functional.