Spotlight

Missing Link

Manage your site’s content from the frontend.

Switchboard

Control panel search & navigation made easy.

EE2 Addons

VayaCode

Templates2Files

for ExpressionEngine 1

Templates2Files takes any templates that do not have the 'save as file' option set, creates the corresponding file and updates the database accordingly.

Usage

Installation

Simply upload the included /modules and /language folders to your /system folder (which may have been renamed). Enable the module in your CP, click on the T2F link on your modules page and then it’s as simple as clicking a button.

1.1 Update

The script is now compatible with the multi-site manager. When you run Templates2Files it will export all of the templates for the active site. To export another site’s templates select it from the Sites drop-down menu and run Templates2Files again.

Notes

  • If the script comes across a template that has ‘save as file’ set to no but a file already exists then said file will be overwritten with the database copy.
  • If a template already has ‘save as file’ set to yes AND a file already exists then said file will be left as it is, the assumption being that that data is current as opposed to whatever’s in the DB.
  • This module is NOT currently a two way street. I.e. you cannot bulk import files to the database, you can only bulk export from the db to files.
  • Because of the above, do take care using this module. You may want to backup your exp_templates table and your templates folder before running the script. If you don’t and there is a problem for some reason, don’t say I didn’t warn you.

This addon is released under the Creative Commons Attribution-No Derivative Works license.

Download