Pressblog:Upgrade to version 2.0 for Drupal 6
From MtTWiki
This document will guide you through upgrading your Drupal 6 Pressblog 1.0 installation to Pressblog 2.0 for Drupal 6.
Contents |
Prepare your workbench
- Make sure that you are currently running Pressblog 1.0.
- Create a temporary installation of Drupal 6 Pressblog 2.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).
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 6 site. Usually at [sites/all/themes/pressblog]
- Replace the following files in your installation, using the corresponding source files from the temporary installation:
- Replace style.css
- Replace views-view-list--promoted_blogposts--block.tpl.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
Improve front page slide show performance
You need to make some changes in your Drupal installation in order to improve slide show performance and make your view combatible with changes in .php code.
- Go to Administer » Site building » Views and edit the view promoted_blogposts
- Locate Fields box and
- Click on Node: Title and check Exclude from display. Click on Update button bellow.
- Click on Node: Body and check Exclude from display. Click on Update button bellow.
- Add a new field pressing the [+] button at the right side of this box.
- From Groups combo box select Content
- Check on Content: Image (field_image)
- Click on Add button bellow.
- Click on Content: Image (you have just add)
- Check on Rewrite the output of this field and set the text we give you just bellow this list.
- Dont forget to set
- Label: None
- Format: large image linked to node
- Click on Update button
- Save the view
Rewrite output:
[field_image_fid] <span class="slider-text"> [title] [body] </span>
Better chronological sort order in Older articles
- Go to Administer » Site building » Views and edit the view older_articles
- Locate Sort criteria box and
- Click on Node: Sticky and remove it using the Remove button bellow.
- Save the view