Log in |
How-To Migrate from PTK to CMF (New PTK)InstallationCopy acl_users1. To migrate users from the acl_users, download and install external method copy_users. If you have modified or used someother form of login manager, you'll have to deal with login management differently (one possible option is duscussed here).
b. Open web browser to access the ZMI[1].
ii. Give it an id, set the module name to copy_users iii. Set the function name to copyUsers c. Create a DTML method which does something like the following: Move Member Folders2. To migrate Member folders from the source PTK install to the target CMF install, download and install the external method copy_folders.py. This method will move your member folders, ensuring both ownership and local roles remain intact (simply cutting and pasting these folders from one instance to another will change the ownership to the user who is doing the cutting and pasting).
b. Open web browser to access the ZMI i. In the root of your zope installation, add the external method from the products pull-down menu. ii. Give it an id, and set the module name to copy_folders iii. Set the function name to copyFolder c. Create a DTML method which does something similar to the following:
ii. View the newly created DTML method (this will run the external method, migrating all of folders in your Members folder to the new portal instance's Members folder). Move Other Objects3. To migrate other objects you've added to your portal, simply cut and paste these objects. Make sure you are logged into the ZMI as a user with management permissions. If you have folders which you need to move and retain ownership, you can use the external method copy_folders.py, passing the proper arguments as described above to suit your existing instance.
Customizing Portal Skins4. If you have modified the skin of the your portal installation, you will need to modify the skins to get your look and feel setup on the new portal instance. The following steps should give you a good idea about how to go about doing this in with the new skin features of the CMF. At the time of writing this document, the 'custom' skin folder was not automatically created with the new portal. In the current release, 'custom' is now automatically created for you, but the steps outlined below guide you through the process of adding additional custom skins.
b. Create a new folder named 'YourCustomName'. c. Select Properties from the management tabs. d. Add the new skin, with the path to the 'custom' directory you created above. e. In the portal-skins/generic directory, select the skinnable element you which to modify. For our example we will use the index_html document. f. A copy of the element is copied into your new custom folder, where you can now edit the element to your hearts content. Customizing Stylesheets5. Stylesheets have also been moved to the filesystem. The following steps walk you through this simple process.
Adding Custom DTML (Methods)6. Adding custom DTML to your portal instances should change slightly to previous instances of the PTK. DC is taking the stand the additional DTML added to portal's is considered 'skin' material, and thus should not be in the root of the portal, but added to one of your custom skin directories (see above). As long as your DTML is in the path assigned to your custom skin, it will be found within the namespace.
|