We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

template changes are not updating when I edit the phyiscal template file

Development and Programming

IrishManInUSA's avatar
IrishManInUSA
15 posts
14 years ago
IrishManInUSA's avatar IrishManInUSA

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.

       
Click Rain 1's avatar
Click Rain 1
9 posts
14 years ago
Click Rain 1's avatar Click Rain 1

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.

       
IrishManInUSA's avatar
IrishManInUSA
15 posts
14 years ago
IrishManInUSA's avatar IrishManInUSA

is this something that can be done automatically, because I swear I have done this on another EE2 site and didn’t have to go through this process.

       
Click Rain 1's avatar
Click Rain 1
9 posts
14 years ago
Click Rain 1's avatar Click Rain 1

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.
       
IrishManInUSA's avatar
IrishManInUSA
15 posts
14 years ago
IrishManInUSA's avatar IrishManInUSA

no worries, still puzzling as to why it doesn’t work correctly for me though.

       
IrishManInUSA's avatar
IrishManInUSA
15 posts
14 years ago
IrishManInUSA's avatar IrishManInUSA

not sure what I did, but I redid the config.php file and now the changes seem to be pulling from the template file.

       
lexusgs430's avatar
lexusgs430
49 posts
14 years ago
lexusgs430's avatar lexusgs430

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.
       
IrishManInUSA's avatar
IrishManInUSA
15 posts
14 years ago
IrishManInUSA's avatar IrishManInUSA

must have been that, because as soon as I redid the config file, everything worked the way I was expecting. Thanks.

       
w84me's avatar
w84me
95 posts
14 years ago
w84me's avatar w84me

I had the same problem and it started when I changed the path to the templates folder from absolute to relative. EE gurus is it possible to make it work with relative urls?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.