Pressblog:Upgrade to version 3.0 for Drupal 7
From MtTWiki
This document will guide you to upgrade your Drupal 7 Pressblog 2.4.1 installation to Pressblog 3 for Drupal 7.
Contents |
Prepare your workbench
- Be sure that you are currently running Pressblog 2.4.1 for Drupal 7. If not, please upgrade your installation to Pressblog 2.4.1 for Drupal 7 first.
- Create a temporary installation of Drupal 7 PressBlog 3.0 using our installation profile. You will use this as a reference to guide you.
Backup
- Backup everything.
- Just in case, make sure you backed up everything =) (besides, it's always a good idea).
Update Drupal core
Take a breath and read Drupal's Upgrading from previous versions first. This upgrade will update your Drupal core to the version 7.12. We asume that you are curently using a 7.x version so it's about a "Minor update procedure".
- Locate the root folder of your site. This is the Drupal root folder, where the index.php file is located.
- Delete all Drupal files and folders except the [sites] folder.
- Copy all the Drupal files and folders from your temporary installation except the [sites] folder.
- Login to your Drupal installation as administration user, your site should still work usual.
- Run the update.php file calling a url like http://www.example.com/update.php or http://www.example.com/test_site/update.php, if your site is located under a subdirectory.
Update extra modules
Pressblog comes with several extra modules required to achieve its functionality. The following process will update them to the latest (by the time these lines are written) version, as marked bellow:
- Views module from 7.x-3.0-rc3 version to 7.x-3.3
- Ctools module from 7.x-1.0-rc1 version to 7.x-1.0
- Locate the extra modules folder of your site, usually at [sites/all/modules].
- Delete the Views module folder [sites/all/modules/views].
- Delete the Chaos tool suite (ctools) module folder [sites/all/modules/ctools].
- Copy the Views module folder from your temporary installation [sites/all/modules/views] to the corresponding folder [sites/all/modules].
- Copy the Chaos tool suite (ctools) module folder from your temporary installation [sites/all/modules/ctools] to the corresponding folder [sites/all/modules].
- Login to your Drupal installation as administration user, your site should still work as usual.
- Run the update.php file calling a url like http://www.example.com/update.php or http://www.example.com/test_site/update.php, if your site is located under a subdirectory.
Patch your Pressblog theme files
- Locate our theme folder in your temporary installation. Usually at [sites/all/themes/pressblog]
- Locate our theme folder in your drupal 7 site. Usually at [sites/all/themes/pressblog]
- Replace the following files in your installation, using the corresponding source files from the temporary installation.
- comment.tpl.php
- page.tpl.php
- node.tpl.php
- node--blogpost.tpl.php
- template.php
- theme-settings.php
- pressblog.info
- style.css
- js/SpryAssets/SpryTabbedPanels.css
- images/search-submit.png
- Add the following folders in your installation, using the corresponding folders from the temporary installation.
- css
- fonts
- font-styles
- images/brown
- images/gray
- images/green
- js/yoxview
- Add the following files in your installation, using the corresponding files from the temporary installation.
- files field--field_image--article.tpl.php
- field--field_image--blogpost.tpl.php
- pressblog.settings.form.css
- style-brown.css
- style-gray.css
- style-green.css
- Add the following images in your installation, using the corresponding images from the temporary installation.
- images/backtotop-arrow.png
- images/backtotop-arrow-dark.png
Clear all cached data
This step is important in order to force your template to be informed for the changes you have made in the template files.
To do this go to Administer » Site configuration » Performance » Clear cached data
Update Pressblog distribution’s settings
- Copy Site name "Pressblog, Premium drupal theme by More than Themes" to Slogan field and change Site name to "Pressblog" through Home » Administration » Configuration » System » Site information.
- Disable the Logo or the Site name through Home » Administration » Appearance » Settings.
- Move the following view blocks from Content region to Highlighted region through Home » Administration » Structure » Blocks
- Promoted blogposts
- Latest blogposts
- Older articles
- Remove the Default front page “node/1” through Home » Administration » Configuration » System » Site information.
- Edit/Add the following image styles through Home » Administration » Configuration » Media » Image styles.
- Change "large" image style from "Scale and crop 620x354" to "Scale and crop 740x423".
- Add new image style with name "small" and effect "Scale and crop 146x85".
- Add new image style with name "x-medium" and effect "Scale and crop 460x284".
- Update promoted_blogposts view through Home » Structure » Views.
- Export the promoted_blogposts view from the temporary installation.
- Locate the promoted_blogposts in the temporary installation.
- From the drop-down menu in the "OPERATIONS" column select "export".
- Copy the content of the "Export" text-area.
- Import the new view in your installation.
- Select "Import".
- Add "promoted_blogposts" in the View name field.
- Check the "Replace an existing view if one exists with the same name" check-box.
- Paste the code from the exported view in the "Paste view code here" text-area.
- Press the "import" button.
- Export the promoted_blogposts view from the temporary installation.
- Update latest_blogposts view through Home » Structure » Views.
- Export the latest_blogposts view from the temporary installation.
- Locate the latest_blogposts in the temporary installation.
- From the drop-down menu in the "OPERATIONS" column select "export".
- Copy the content of the "Export" text-area.
- Import the new view in your installation.
- Select "Import".
- Add "latest_blogposts" in the View name field.
- Check the "Replace an existing view if one exists with the same name" check-box.
- Paste the code from the exported view in the "Paste view code here" text-area.
- Press the "import" button.
- Export the latest_blogposts view from the temporary installation.
Add Superfish module support
- Add the following folders in your installation, using the corresponding folders from the temporary installation.
- sites/all/modules/superfish
- sites/all/modules/libraries
- sites/all/libraries
- Enable the modules Superfish and Libraries through Drupal’s Modules page Home » Administration » Modules
- All Superfish menus use the block system. You will notice Superfish has created 4 blocks which can be viewed at the Blocks configuration page Home » Administration » Structure » Blocks
- Configure "Superfish 1" block.
- Set the "Block title" to “<none>”
- Select from the "Menu Parent" drop-down menu the "<Main Menu>" item.
- Select from the "Style" drop-down menu the "None" item.
- Deactivate the "Drop shadows" check-box.
- In the "Region Settings" fieldset select from the "PressBlog - MoreThanThemes (default theme)" drop-down menu the "Main navigation" item.
- Configure "Superfish 2" block.
- Set the "Block title" to “<none>”
- Select from the "Menu Parent" drop-down menu the "<Secondary Menu>" item.
- Select from the "Style" drop-down menu the "None" item.
- Deactivate the "Drop shadows" check-box.
- In the "Region Settings" fieldset select from the "PressBlog - MoreThanThemes (default theme)" drop-down menu the "Secondary navigation" item.