This topic is locked

Change templates

9/17/2007 1:47:05 AM
PHPRunner General questions
A
alang author

Is it possible to change templates for a project that has already been created:

  1. For one that was created without using an existing template
  2. For one that was created using an existing template where you may want to make some subtle changes to a template by copying the folder structure under templates and making manual changes to the new one leaving the original intact
    I have not used templates for projects created to date. I had the situation where I clicked on a template by mistake when PHP Runner was first opened. I then opened an existing project, built it, and suddenly found the project was using a different header file. Unfortunately I can't recreate this behaviour now for some reason.

Alexey admin 9/17/2007

Alan,
I'm not sure I understand you fully.

To change a Template-based project to simple modify its .phpr file with a text editor.
Change this line:

<m_strBusinessTemplateName>Cars</m_strBusinessTemplateName>



to this:

<m_strBusinessTemplateName></m_strBusinessTemplateName>



Then open it with PHPRunner and reset all pages in Visual Editor.
I recommend you to create a backup of project directory before doing that.

A
alang author 9/17/2007

That's just what I wanted Alexey - thanks for the tip. I now see how to switch templates and set the template file to the "default" settings when doing a "reset page" in the visual editor - very cool. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=21425&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
Could I suggest a future enhancement would be to add the ability to edit this value directly from one of the pages in PHPRunner as "Template in use" for eample.