Override Question
Posted: Sun Jul 05, 2026 2:12 pm
I'm playing with changing a test site and so far have managed to do everything with zero core code changes.
However, there will come a time where this is not possible and I will need to change the code in a file. Now in this situation I understand that the file should first be copied to the same file structure in the templates/ override directory,which is great as the original code remains unchanged, and Phoenix uses the override version.
What then happens when a Phoenix update comes along which updates that file, or maybe even removes its requirement?
Im assuming that when updating that any changes in the override file would need to be done again to a copy of the new updated file?
Maybe I'm overthinking things
However, there will come a time where this is not possible and I will need to change the code in a file. Now in this situation I understand that the file should first be copied to the same file structure in the templates/ override directory,which is great as the original code remains unchanged, and Phoenix uses the override version.
What then happens when a Phoenix update comes along which updates that file, or maybe even removes its requirement?
Im assuming that when updating that any changes in the override file would need to be done again to a copy of the new updated file?
Maybe I'm overthinking things