Where does libreoffice store the base templates for write docs and spreadsheets?

I would like to be able to add a footer to the templates so that every document I create shows it’s file path. Is this possible?

Insert/Field/More Fields…

Pick the Type and Format you need.

(File/Templates/Manage Templates)