Faq/Writer/046

How do I automatically update the headers and footers of my document when I modify a template?
You only have to create a link with a source file and then ask for the update. The following instructions are for an update of the header but can be applied to other elements, like the footer or the body of the text.


 * 1) create a new Writer file which will be the source file for the headers;
 * 2) enter the text that will appear in the header of the body of the file;
 * 3) save the file as a Writer text;
 * 4) create a new Writer template which will serve to build all the other files that will have the same header;
 * 5) select ;
 * 6) with the cursor in the header, select the  menu;
 * 7) check the Link box and click the Browse... button to select the source file;
 * 8) press Insert; and
 * 9) save the file as a template:
 * 10) * select the menu;
 * 11) * give a name to the template; and
 * 12) * press OK.

If you want to make more links, you should create a section linked to a file for each one.

Either:
 * create one file per link; or
 * create only one external file containing different sections and specify the section to insert in the dialog box.

Be careful however of the management of the links if you are working over a network. Check if the inserted link will be accessible by all the machines the same way.

To have an updated header:


 * 1) create a file using the template:
 * 2) * select the menu (or press );
 * 3) * select the template (by default it has been saved in My Templates under the dropdown menu);
 * 4) * press OK; and
 * 5) answer yes when prompted for an update of the links.

This way any change in the source file will be reflected in the files created with this template during the update.