Manually change PHP templates in Docker container
-
wrote on May 27, 2022, 9:52 PM last edited by
On my dolibarr instance, i would like to edit some php templates. Once i placed the app in recovery mode and made the desired changes. After running ./start.sh the changes are visible and running fine. However, when i disable the recovery state, my changes are somehow reset to the original state.
How can i make the changes persist?
Thanks in advance! -
On my dolibarr instance, i would like to edit some php templates. Once i placed the app in recovery mode and made the desired changes. After running ./start.sh the changes are visible and running fine. However, when i disable the recovery state, my changes are somehow reset to the original state.
How can i make the changes persist?
Thanks in advance!@opensourced What files are you changing?
-
@opensourced What files are you changing?
wrote on May 28, 2022, 8:35 AM last edited by@girish one of the files i want to change is htdocs/public/members/new.php
-
@opensourced What files are you changing?
wrote on Jun 1, 2022, 4:18 PM last edited by@girish Any news on how to accomplish that? Thanks a lot!
-
@girish Any news on how to accomplish that? Thanks a lot!
@opensourced I have to investigate whether those files are supposed to be writable/customizable by user or not. Do you know if those files are source code or files that are meant to be user modifiable?
-
@opensourced I have to investigate whether those files are supposed to be writable/customizable by user or not. Do you know if those files are source code or files that are meant to be user modifiable?
wrote on Jun 2, 2022, 6:53 PM last edited by@girish Basically these are php files that make use of db variables and properties defined in the GUI. However, to make (in my opinion essential) customizations, I need to edit these templates. These changes however are mostly to optimize the user experience.
For me they dont need to be editable during runtime. If i could make the changes persist in recovery mode and the restart the app with the adapted files in readonly, that would be perfect.
Best