6

When I do search and replace text in my Expressionengine templates, using the "Tools > Data > Search and Replace" it doesn't synch with the files.

Has anyone else had this? I guess not a big problem as can easily do a search and replace in the files too.

Samsull
  • 419
  • 2
  • 6

1 Answers1

3

Can you use the Synchronize Templates tool (In the Design->Templates menu) to synchronize the templates?

Aaron Fowler
  • 474
  • 1
  • 3
  • 8
  • Doesn't work for me. I get lots of green tick marks to say they are synched, but they're not. – Samsull Oct 30 '12 at 15:17
  • You're right - it doesn't synch the other way. From the Synchronize templates page: "Selected templates will be updated to match the current associated file." – Aaron Fowler Oct 30 '12 at 15:44
  • I guess they assume that if you store templates as files, you won't search and replace from the CP (easier to do directly in the files). I wish EE would just use the database OR files though, keeping both in sync is a nightmare. – Adrian Macneil Oct 31 '12 at 03:30
  • Note to self: only search and replace in files. I always 'save template as files' so makes sense for me. I agree, having a choice would be good, although Snippets can't save as files, unless using Low Variable. – Samsull Oct 31 '12 at 10:15
  • @Samsull You can save snippets (and global vars, templates, etc) as files in various ways: Snippet Sync, LibrarEE, SnippetsSync and MountEE – lealea Oct 31 '12 at 17:50