| 1 | The content was taken from the MapGuide mail list conversation: "Is it possible to maintain a separate viewerfiles for a project", |
| 2 | by Jackie Ng. |
| 3 | |
| 4 | A virtual directory called /mapguide is created in IIS by the installer. |
| 5 | This points to your physical path: C:\Program Files\OSGeo\MapGuide\Web\www |
| 6 | |
| 7 | 1. Copy this physical path to another directory of yourchoice. eg. C:\Program Files\OSGeo\MapGuide\Web\custom_www |
| 8 | 2. Then in IIS create another virtual directory eg: /mapguide_custom |
| 9 | 3. Make sure this virtual directory maps to your new physical path above, and has the same IIS settings as the original /mapguide virtual path. |
| 10 | Now you can do your required customizations in the copied directory. |
| 11 | |
| 12 | To use the original ajax viewer, use your original |
| 13 | url: eg. http://localhost/mapguide/mapviewerajax/... |
| 14 | |
| 15 | To use your customized ajax viewer, change the virtual directory in the |
| 16 | url: eg. http://localhost/mapguide_custom/mapviewerajax/ |
| 17 | |
| 18 | Please note that There are relative path references inside many of the *.templ files in the viewerfiles folder & *.aspx located in mapviewnet folder. If you have changed any of these and copy them to another folder as instructed you should change ALL of the relative references to ensure the new folder is using your modified files. |