This topic is locked

When are template source files created?

1/18/2011 10:51:26 PM
PHPRunner General questions
K
karmacomposer author

Hello.
I am attempting to turn on fields that I want to show up in the editor. I can turn them on and shuffle their placement with no problems. I then save the project file. I can even close PHPRunner and when I open it, the fields I turned on are there.
However, the second I go to the editor, those fields are now turned off as before. If I reset the list pages (I am only affecting list pages), it uses the source template - which is an old, old version at this point. If I delete or move those source template list files, then PHPRunner comes up with a blank page that says "Load External File".
My question is, when are new source template files written so that the reset uses THEM and not old, old files. Did something go wrong in my project file for this to happen? Did I do something stupid or is this not my fault? Can you force PHPRunner (5.2) to re-write these source template files? If so, how?
Has anyone else experienced this? If so, how did you fix it?
Thanks.
Mike

V
Vienna 1/19/2011



Hello.
I am attempting to turn on fields that I want to show up in the editor. I can turn them on and shuffle their placement with no problems. I then save the project file. I can even close PHPRunner and when I open it, the fields I turned on are there.
However, the second I go to the editor, those fields are now turned off as before. If I reset the list pages (I am only affecting list pages), it uses the source template - which is an old, old version at this point. If I delete or move those source template list files, then PHPRunner comes up with a blank page that says "Load External File".
My question is, when are new source template files written so that the reset uses THEM and not old, old files. Did something go wrong in my project file for this to happen? Did I do something stupid or is this not my fault? Can you force PHPRunner (5.2) to re-write these source template files? If so, how?
Has anyone else experienced this? If so, how did you fix it?
Thanks.
Mike


I am a new user but I can tell you this much-- if you are using a style such as "Paris" and if in the Editor on a LIST page you choose RESET!--- it goes all the way back to the core template for that Style as applied in the Theme editor ---that's really what RESET means...not to a previous version YOU made, but the CORE start-of-the-project Templates.
file:///C:/Program_Files/PHPRunner5.3/templates/layouts/Paris/list.htm
that's why you see such radical changes....RESET takes you all the way back to the start of a project, to the default way Paris or the other templates make the List or Add pages, etc.
Otherwise you might go search the temporary file in whatever file path you are working in--
file:///C:/xampp/htdocs/yourprojectname/tmp/list.htm
and
file:///C:/xampp/htdocs/myproject/visual/original/list.htm
or similar names and project path according to your project.
It is my GUESS that the tmp files are what you are working on until you do a Save, Close, or Build.
Check out the save times next to file:///C:/xampp/htdocs/myproject/visual/original/list.htm (or whatever path for your project) to see when it was last saved or modified to help resolve what version that is. And does it have a counterpart in the tmp directory with a different save time?
If you want to make PERMANENT changes about how the PHPRunner template ASSEMBLES or GENERATES the list, add, edit, view...etc pages in the FIRST place you will have to jigger with the template files in
file:///C:/Program_Files/PHPRunner5.3/templates/layouts/Paris/
I have not tried it but I am imagining if you made a complete folder copy of Paris or London or Madrid etc and renamed that folder such as "ParisMod" and made experimental changes inside the template files in your copied version-- "ParisMod" or "MadridMod" whatever, that you could see the changes by having this show up in the THEME selector.
You may have to restart PHPRunner to get it to read and include the new style folder....I haven't tried this myself.

K
karmacomposer author 1/19/2011



I am a new user but I can tell you this much-- if you are using a style such as "Paris" and if in the Editor on a LIST page you choose RESET!--- it goes all the way back to the core template for that Style as applied in the Theme editor ---that's really what RESET means...not to a previous version YOU made, but the CORE start-of-the-project Templates.
file:///C:/Program_Files/PHPRunner5.3/templates/layouts/Paris/list.htm
that's why you see such radical changes....RESET takes you all the way back to the start of a project, to the default way Paris or the other templates make the List or Add pages, etc.
Otherwise you might go search the temporary file in whatever file path you are working in--
file:///C:/xampp/htdocs/yourprojectname/tmp/list.htm
and
file:///C:/xampp/htdocs/myproject/visual/original/list.htm
or similar names and project path according to your project.
It is my GUESS that the tmp files are what you are working on until you do a Save, Close, or Build.
Check out the save times next to file:///C:/xampp/htdocs/myproject/visual/original/list.htm (or whatever path for your project) to see when it was last saved or modified to help resolve what version that is. And does it have a counterpart in the tmp directory with a different save time?
If you want to make PERMANENT changes about how the PHPRunner template ASSEMBLES or GENERATES the list, add, edit, view...etc pages in the FIRST place you will have to jigger with the template files in
file:///C:/Program_Files/PHPRunner5.3/templates/layouts/Paris/
I have not tried it but I am imagining if you made a complete folder copy of Paris or London or Madrid etc and renamed that folder such as "ParisMod" and made experimental changes inside the template files in your copied version-- "ParisMod" or "MadridMod" whatever, that you could see the changes by having this show up in the THEME selector.
You may have to restart PHPRunner to get it to read and include the new style folder....I haven't tried this myself.


Unfortunately, I am NOT talking about templates, such as PARIS. I am not talking about the colors, look, feel or fonts of a template. I am talking about the files that are found in the \source\templates folder. Right now, the list templates (as in abcdefg_list.php) are TOTALLY F----D up! I would love to just have a clean copy of said templates and start again - so that changes I make in the field and totals tabs actually work. Right now, they revert back to the state that is saved in the now ruined template file.
I was curious if PHPRunner creates these templates once in the beginning or each and every time.
Mike