The Template Manager module offers functions for bulk-updating templates either in the database based on the filesystem versions or vice versa. The following list shows what operation you can perform on multiple templates and what they do in detail:
Files => Database
: This saves the content of the template files (saved in the file-system) back to the database. Before overwriting the contents in the database, a new revision with that content is created. This ensures that no data in the database is overwritten without a backup. The module also checks whether the version saved as a file differs from your current version in the database and only synchronizes templates that have differences.
Database => Files
: This function is identical with the Save As File function in the template editor — except that you can perform it on as many templates as you like simultaneously.
Delete All Saved Files
: This function deletes all templates from the file-system that were saved as files. The setting Save As File is set to no for the selected templates.
-
Download the DC Template Manager module.
-
Unpack the archive contents to your Desktop or to a location of your choice on your hard-drive.
-
Copy the
system/modules/dc_template_manager
folder to yoursystem/modules
directory. -
Copy the
language/english/lang.dc_template_manager.php
file to yoursystem/language/english
directory (or duplicate and modify for any other language). -
Copy the
themes/dc_template_manager
directory to your themes directory on your server. This usually resides in/themes
. -
Optionally you can also install the extension in this addon. The extension currently offers no additional functionality, but if you have installed the LG Addon Updater extension it can call home and check for updates of the DC Template Manager module.
Copy the
extensions/ext.dc_template_manager.php
to yoursystem/extensions
directory.
This module/extension combo has been tested to work with ExpressionEngine 1.6.6 and higher. Many of the important template handling functions were taken and adapted from the EE codebase. Should you encounter a bug with a lower EE version, please let us know. However, we encourage you to update your ExpressionEngine installation for your own sake.