I have set up a site in EE 2.x so that I can edit the template files inside my editor, and not within the template manager. However, when I make changes in the editor and refresh the page, nothing happens.
If I go into the template manager, and view the template file, I can see the changes I made and if I save it again within template manager and refresh the page. The changes show up on the page.
I would much prefer to use my editor, but was wondering if anyone has seen this behaviour before and if so what was the resolution.
I do have the caching turned off the templates, so I am not sure what else it could be, any help on this would be appreciated. Thanks.
I believe you have to run “Synchronize Templates” after you edit template files directly. Are you doing that?
If I understand correctly, “Synchronize Templates” loads the template data from the file into the DB, which is where EE pulls the template data from when it creates output.
Ah, I apologize, I’m answering too quickly. After reading through the Template Documentation, I see that EE should be using the file instead of the DB:
Running your Site with Flat File Templates If a file exists for a template flagged to save templates as text files, ExpressionEngine will use the file version of the Template instead of the database whenever your pages are viewed. Because ExpressionEngine is using the file version, you can then use an external editor to make changes to the file without using the Control Panel.
If the path to your save template files location gets corrupted, changed, or does not exist, it will try and pull the last saved version of the template file that is stored in the database.
not sure what I did, but I redid the config.php file and now the changes seem to be pulling from the template file.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.