PT Comments v2.3 Upgrade
Back to PT Comments
NOTE: v2.3 of this application is compatible with both ADF 1.8.x and ADF 2.x.
Contents
Overview
This guide is to upgrade the PT Comments v2.3 from v2.2. If you are updating from a version earlier than v2.2, please follow the Version 2.2 Upgrade Guide before upgrading to v2.3.
ADF Application Code Review
This is only for reviewing the code that is in the "/ADF/apps/" directory, not at the site level.
- Download the application from the Community project page.
- Unzip the application zip folder.
- Analyze the updated app code compared to the current app code on your server.
- Identify any customizations that you have made to the application code to make sure these are not overwritten by the app update.
- A great tool to use is Beyond Compare to compare the new and current file to identify the exact lines of code that have been changed.
- Once this is complete, then move your app customizations into the new app code package.
Application Code
- Rename directory "/ADF/apps/pt_comments" to "/ADF/apps/pt_comments_v2.2".
- Rename file "/ADF/apps/pt_comments_v2.2/appBeanConfig.cfm" to "/ADF/apps/pt_comments_v2.2/appBeanConfig.cfm.old".
- Move the PT Comments v2.3 and into the "/ADF/apps/pt_comments/" directory.
- Reset the ADF
Comments Custom Element
IMPORTANT: It is a good idea to backup your CommonSpot Site Database before running the CommentsAppUpdater script
Due to a new incompatibility with the ADF's getCEData function and with the BuildView function, "formid" and "userid" are no longer valid field Names in the custom elements. Use these steps to update the two fields in the Comments Global Custom element:
- Copy the following updater file to your site and place it in your 'customcf' directiry:
- '/ADF/apps/pt_comments/site-files/customcf/CommentsAppUpdater.cfm'
- View the PT Comments App Update menu page by going to the URL:
- The following updater script with be displayed with [PREVIEW] and [RUN] options
- schema-update-for-2.3
- First, click on the [PREVIEW] option
- If the message reads "No Fields need to be updated at this time!" you are done!
- If the message displays the "Old Field" and the "New Field" update info, go back to the updater menu.
- Once back at the updater menu, click the [RUN] option.
- When the script has finished running and displays the message:
- The field "formid" in the Comments element was updated!
- The field "userid" in the Comments element was updated!
- Go to the CommonSpot Site Admin.
- Go to the "Elements" menu item under "Elements & Forms".
- From the list of elements in the "Manage Elements" dialog find the "Comments" custom element.
- Select the "Field Definitions" menu option for the Comments element under the pencil icon.
- When the "Custom Element Field Definitions" dialog appears click on the pencil icon to edit either updated field
- Without making any other changes hit the "save" option to save the field.
- The fields list should then reflect the changes.
- Close the "Manage Elements" windows.
Your Fields should now be updated!
IMPORTANT: Using CommonSpot reserved words as field names in Custom Element is not recommended! (eg. subsiteid, pageid, formid)
Site Level Customizations Review
This is only for reviewing the site level customizations in the "/_cs_apps/pt_comments/" directory, not in the ADF directory.
- Analyze the updated app code compared to the app customization code on your server.
- Identify any customizations that you have made to the application code to make sure these are updated with any functionality.
- Again, Beyond Compare is a good tool to compare the new and current file to identify the exact lines of code that have been changed.
- This is important for components that have customized functions to the site level "/_cs_apps/". The best practice is to identify the function that have been customized and compare with the new app function to identify any updates. A good help is to check the function comment header to see if any updates have been made.
- Once completed, Reset the ADF.
Reset the ADF
Reset the ADF for the server and site.