Photofolio:Upgrade to version 2.1 for Drupal 7
From MtTWiki
This document will guide you how to upgrade your Drupal 7 Photofolio 2.0 installation to Photofolio 2.1 for Drupal 7.
Contents |
Prepare your workbench
- Be sure that you are currently running Photofolio 2.0 for Drupal 7. If not, please upgrade your installation to Photofolio 2.0 for Drupal 7 first.
- Create a temporary installation of Drupal 7 Photofolio 2.1 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)
Patch your Photofolio theme files
- Locate our theme folder in your temporary installation. Usually at [sites/all/themes/photofolio]
- Locate our theme folder in your drupal 7 site. Usually at [sites/all/themes/photofolio]
- Replace the following files in your installation, using the corresponding source files from the temporary installation
- Replace style.css
- Replace template.php
Clear all cached data
This step is important in order to force your template to be updated with the changes you have made in the template files.
To do this go to Administer » Site configuration » Performance » Clear cached data
Views Configuration
View Tracker
Go to “Home » Administration » Structure » Views”
- Locate the view “tracker” and select “edit”
- Modify “Block” and “Page” displays according to following instructions
View tracker block
- Select Block display and locate “Basic settings” block area
- Locate Use pager and click on settings icon
- Change “Items to display” value to 10
- Click “Update” button to submit your changes
- Click on the “Save” button to save your changes.
- Locate Use pager and click on settings icon
View tracker page
- Select Page display
- Locate the “Basic settings” block area
- Locate the 'Use pager and click on settings icon
- Change value of “Items to display” to 25
- Click the “Update” button to submit your changes
- Locate the “Sort criteria” block area
- Click on “Node: Last comment time”
- Set option to “Sort descending”
- Click the “Update and override” button to submit your changes
- Locate the “Filters” block area
- Click on the “Node: Type”
- Check the Gallery Node Type option. (Article, Gallery and Blog Post option must be checked now)
- Click the “Update” button to submit your changes
- Click on the “Save” button to save your changes.
- Locate the “Basic settings” block area
View categories
Go to “Home » Administration » Structure » Views”
- Locate the view “categories” and select “edit”
- Select Block display
- Locate “Basic settings” block area
- Locate the Use pager and click on settings icon
- Change the value of “Items to display” to 10
- Change “Pager ID” value to 1 (current value must be “categories”, change it )
- Click the “Update” button to submit your changes
- Click on the “Save” button to save your changes.
- Locate “Basic settings” block area