[Cartoweb-users] Re: problem with template changes
Oliver Christen
oliver.christen at camptocamp.com
Wed Nov 14 08:23:18 EST 2007
well,
you cant simply copy a whole project folder and rename it, this will simply not work.
you have to set the mapid name in the project's client_conf/client.ini (usualy you project name)
you have to rename the folders and files in the project's server_conf folder and name them by your project name
do the --install command and the --clean command after that (not at once)
regards
Oliver
----- Original Message -----
From: natasha chatterjee
To: Oliver Christen
Sent: Wednesday, November 14, 2007 1:24 PM
Subject: Re: problem with template changes
Thanks , I have tried as you said but still faced problems and changes are
still not reflecting.following way I proceeded----:
1) I created a copy of the folder demoCW3 as ProjectExample(for trial
purpose)
c:\wamp\www\cartoweb3\project\ProjectExample
2) created a copy of demoCW3.php in htdocs as ProjectExample.php
changed and edited the project name inside the above file
(ProjectExample.php)
3) then on the commnd window used the command
php cw3setup.php --install --base-url http://localhost/cartoweb3/htdocs --
project ProjectExample
now i am able to use my own url
4) then i tried to make few changes on the screen for that i did the settings
in client.in file --profile - development
then again the used the cw3setup command(mentioned above)
5) now made changes in the cartoclient.tpl file inside the templates folder
of my project ProjectExample.
now the changes are only being reflected on the following page
http://localhost/cartoweb3/project/ProjectExample/templates/cartoclient.tpl
but not on the main page..,now tell me how to do it?so that the changes will
reflect on the main running front end and will be permanant.
please correct me also if i proceeded in a wrong manner.I need your guidance.
eagerly looking forward to your response.
Regards
Natasha
Oliver Christen <oliver.christen at camptocamp.com> wrote:
Hi
first, by default the template caching is activated, meaning all changes to the templates files are not directly taken into account. You have to manual clear the cache with the command cw3setup.php --clean (in command-line, see http://www.cartoweb.org/doc/cw3.4/xhtml/user.install.html#user.install.main.setup.example.clean)
I would suggest deactivating the caching system while you are developping your project, you can still activate it again when the project is in production phase later, to do so, simply set "profile=development" in your project's client_conf/client.ini file.
also, you should be very clear about the differentiation between the "main" cartoweb files and your project files.
http://www.cartoweb.org/doc/cw3.4/xhtml/user.structure.html#user.structure.project
If you want to personalize some of the "main" templates files, simply copy them in your project (within the correct folders hierarchy), modify them and dont forget to run a cw3setup.php --install command. This is necessary so the modified files are "mirrored" in the main Cartoweb's htdocs folder, hence viewable.
This allow to keep a clean "main" Cartoweb and only touching up files at the project level.
If you havent already, I would suggest making the tutorial available there:
http://www.cartoweb.org/cwiki/HowToCreateANewProject
regards
Oliver
----- Original Message -----
From: natasha chatterjee
To: oliver.christen at camptocamp.com
Sent: Wednesday, November 14, 2007 6:50 AM
Subject: changes in template file
Hello
I am a naive user of cartoweb,i have installed cartoweb now want
to make few changes at the front end like was trying to relocate the
keymap and bars but the changes are not being reflected can you please
tell me how will they reflect on the main screen ,where and in which files
i have to make changes? i was trying in the template files but the
changes are not reflecting .please help me out.
Regards
Natasha
--------------------------------------------------------------------------
Now you can chat without downloading messenger. Click here to know how.
------------------------------------------------------------------------------
Download prohibited? No problem. CHAT from any browser, without download.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071114/69c1e685/attachment.html
More information about the Cartoweb-users
mailing list