Difference between revisions of "PT Blog Version 3.2 Upgrade"
Gcronkright (talk | contribs) (→Custom Element Updates) |
Gcronkright (talk | contribs) (→Application Code) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Back to [[Blogs|PT Blogs]] | Back to [[Blogs|PT Blogs]] | ||
− | IMPORTANT: v3.2 of this application requires '''ADF 1. | + | IMPORTANT: v3.2 of this application requires '''ADF 1.7.0''' or greater |
== Overview == | == 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|PT Blog Upgrade v3 Guide]] to validate your installation. | 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|PT Blog Upgrade v3 Guide]] to validate your installation. | ||
+ | |||
+ | == Application Code == | ||
+ | # Rename directory "/ADF/apps/pt_blog" to "/ADF/apps/pt_blog_v3_1". | ||
+ | # Rename file "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm" to "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm.old". | ||
+ | # Download the PT Blog v3.2 and exported into the "/ADF/apps/pt_blog/" directory. | ||
== Custom Element Updates == | == Custom Element Updates == | ||
Line 13: | Line 18: | ||
##Field Name: blogConfigurationURL | ##Field Name: blogConfigurationURL | ||
##Field Label: Blog Configuration URL | ##Field Label: Blog Configuration URL | ||
− | ##Type: CommonSpot | + | ##Type: CommonSpot Extended URL |
##Properties: | ##Properties: | ||
− | ### | + | ###Enabled Types: Page |
− | |||
=== Comments2 === | === Comments2 === | ||
− | Due to a new incompatibility with the ADF's getCEData "formid" is no longer a valid Field Name in the custom elements | + | IMPORTANT: It is a good idea to backup your CommonSpot Site Database before running the '''BlogAppUpdater''' script |
+ | Due to a new incompatibility with the ADF's getCEData "formid" is no longer a valid Field Name in the custom elements. | ||
+ | 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: | # Copy the following updater file to your site and place it in your 'customcf' directiry: | ||
## '/ADF/apps/pt_blog/site-files/customcf/BlogAppUpdater.cfm' | ## '/ADF/apps/pt_blog/site-files/customcf/BlogAppUpdater.cfm' | ||
# 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 | + | # 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 | + | # 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! | ||
Line 40: | Line 46: | ||
## The field should then reflect the changes. | ## The field should then reflect the changes. | ||
# Close the "Manage Elements" windows. | # 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! | IMPORTANT: Using CommonSpot reserved words as field names in Custom Element is not recommended! | ||
(eg. subsiteid, pageid, formid) | (eg. subsiteid, pageid, formid) | ||
+ | <!-- | ||
== Application Code == | == Application Code == | ||
# Renamed directory "/ADF/apps/pt_blog" to "/ADF/apps/pt_blog_v3_1". | # 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". | # 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. | # Downloaded the PT Blog v3.2 and exported into the "/ADF/apps/pt_blog/" directory. | ||
+ | |||
+ | --> | ||
== App Configuration Page == | == App Configuration Page == |
Latest revision as of 18:31, 16 February 2018
Back to PT Blogs
IMPORTANT: v3.2 of this application requires ADF 1.7.0 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.
Application Code
- Rename directory "/ADF/apps/pt_blog" to "/ADF/apps/pt_blog_v3_1".
- Rename file "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm" to "/ADF/apps/pt_blog_v3_1/appBeanConfig.cfm.old".
- Download the PT Blog v3.2 and exported into the "/ADF/apps/pt_blog/" directory.
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 Extended URL
- Properties:
- Enabled Types: Page
Comments2
IMPORTANT: It is a good idea to backup your CommonSpot Site Database before running the BlogAppUpdater script
Due to a new incompatibility with the ADF's getCEData "formid" is no longer a valid Field Name in the custom elements. 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 updater 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.
Your Fields should now be updated!
IMPORTANT: Using CommonSpot reserved words as field names in Custom Element is not recommended! (eg. subsiteid, pageid, formid)
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.