Upgrade DaliCMS from M3 to M4

This guide lists all the required steps to successfully upgrade from Milestone M3 to M4.

  • The following patches must be applied to your database:
    • patchtables22.sql
    • patchtables23.sql
  • copy the directory resource/war/mailtemplates to your project resource/war directory
  • run copyresources
  • open resource/war/admin/admin.jsp and add the tinymce plugin 'contextmenu' to the plugin listing. To do this you just have to look for the string 'plugin' and add ',contextmenu' at the end of the list. This change has to be repeated a few lines further down.
  • go to the directory 'patches' and run the script patch_b20.sh

The following step is only required if you are using a forum:

  • add the following code to resource/war/modules/forum/forumtemplate_top.inc, right before the </head> closing tag:
        <script language="javascript" type="text/javascript" src="/shared/tiny_mce2111/tiny_mce.js"></script>
        <script type="text/javascript">
          tinyMCE.init({
            mode : "textareas",
            relative_urls : false,
            theme : "advanced",
            plugins : "",
            theme_advanced_buttons1 : "bold,italic,underline,|,bullist,numlist,|,link,unlink",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            convert_urls : false,
            language : "${lang}"
          });
       </script>
    

When you have applied all these changes you can redeploy your project. You should execute this final step in order to clean up all the imported rss feeds.

  • run 'asant importrss' to remove all redundant rss articles (it will keep the 50 latest articles)
  • copy velocity-1.5.jar to the ext.dir