Difference between revisions of "PT Blog Version 3.2 Upgrade"
Gcronkright (talk | contribs) (→Custom Element Updates) |
Gcronkright (talk | contribs) (→Comments2) |
||
Line 24: | Line 24: | ||
# View the PT Blog App Update menu page by going to the URL: | # View the PT Blog App Update menu page by going to the URL: | ||
## http://{your-site}/customcf/BlogAppUpdater.cfm | ## http://{your-site}/customcf/BlogAppUpdater.cfm | ||
− | # The following updater script with be displayed with | + | # The following updater script with be displayed with [PREVIEW] and [RUN] options |
## schema-update-for-3.2 | ## schema-update-for-3.2 | ||
− | # First, click on the | + | # 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 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 update menu. | # If the message displays the Old Field and the New Field update info, go back to the update menu. | ||
− | # Once back at the updater menu, click the | + | # Once back at the updater menu, click the [RUN] option. |
# When the script has finished running and displays the message: | # When the script has finished running and displays the message: | ||
## The field "FieldID" in the Comments2 element was updated! | ## The field "FieldID" in the Comments2 element was updated! |
Revision as of 21:12, 16 April 2014
Back to PT Blogs
IMPORTANT: v3.2 of this application requires ADF 1.6.2 or greater
Contents
Overview
This guide is to upgrade the PT Blog v3.2 application. If upgrading from a lower version than v3.1, please follow the PT Blog Upgrade v3 Guide to validate your installation.
Custom Element Updates
PTBlog2 Configuration
Add the following field to the Blog Configuration tab of the ptBlog2 Configuration element:
- a Blog Configuration URL CommonSpot Page URL field
- Field Name: blogConfigurationURL
- Field Label: Blog Configuration URL
- Type: CommonSpot Page URL
- Properties:
- None
Comments2
Due to a new incompatibility with the ADF's getCEData "formid" is no longer a valid Field Name in the custom elements element. Use these steps to update the FormID field in the Comments2 Global Custom element:
- Copy the following updater file to your site and place it in your 'customcf' directiry:
- '/ADF/apps/pt_blog/site-files/customcf/BlogAppUpdater.cfm'
- View the PT Blog App Update menu page by going to the URL:
- The following updater script with be displayed with [PREVIEW] and [RUN] options
- schema-update-for-3.2
- 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 update menu.
- Once back at the updater menu, click the [RUN] option.
- When the script has finished running and displays the message:
- The field "FieldID" in the Comments2 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 "Comments2" custom element.
- Select the "Field Definitions" menu option for the Comments2 element under the pencil icon.
- When the "Custom Element Field Definitions" dialog click on the pencil icon to edit the updated field
- Without making any other changes hit the "save" option to save the field.
- The field should then reflect the changes.
- Close the "Manage Elements" windows.
IMPORTANT: Using CommonSpot reserved words as field names in Custom Element is not recommended! (eg. subsiteid, pageid, formid)
Application Code
- Renamed directory "/ADF/apps/pt_blog" to "/ADF/apps/pt_blog_v3_1".
- Renamed file "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm" to "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm.old".
- Downloaded the PT Blog v3.2 and exported into the "/ADF/apps/pt_blog/" directory.
App Configuration Page
After the new blogConfigurationURL field has been added to the PTBlog2 Configuration element and the new App files are in place a Blog Configuration Page will be used to manage the ptBlog2 Configuration custom element.
- Create a new page called 'Configuration Manager' in the /webadmin/blogs/ subsite from the webadmin template.
- In the main content of the page, add a Custom Script element.
- Enter the explicit module path for:
- /ADF/apps/pt_blog/customcf/manage_configuration_header.cfm
- Publish the page.
App Configuration Update
After the new App Configuration page has been created:
- Go to the Blog App Configuration Manager and click the "Edit Configuration" button.
- When the configuration form opens, go to the Blog Configuration tab, then update the following field with the new value:
- Blog Configuration URL:: {browse to your newly created Blog App Configuration page}
- Then click "Submit".
Reset the ADF
Reset the ADF for the server and site.
Site Level Customizations Review
This is only for reviewing the site level customizations in the "/_cs_apps/pt_blog/" 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.