| 1 |
// $Id: README.txt,v 1.13 2008/01/14 00:40:08 wimleers Exp $ |
// $Id: README.txt,v 1.14 2008/01/21 21:45:31 wimleers Exp $ |
| 2 |
|
|
| 3 |
Description |
Description |
| 4 |
----------- |
----------- |
| 76 |
First, change the directory to the Drupal root directory. |
First, change the directory to the Drupal root directory. |
| 77 |
|
|
| 78 |
You can apply the included Drupal core patch like this: |
You can apply the included Drupal core patch like this: |
| 79 |
patch -p0 < drupal_core_cdn_integration.patch |
patch -p0 < d5_file_url_rewrite.patch |
| 80 |
|
|
| 81 |
To undo the patch: |
To undo the patch: |
| 82 |
patch -p0 -R < drupal_core_cdn_integration.patch |
patch -p0 -R < d5_file_url_rewrite.patch |
| 83 |
|
|
| 84 |
Note: there is also a patch that combines the CDN integration core patch with |
Note: there is also a patch that combines the CDN integration core patch with |
| 85 |
the JS aggregation. It's included in this module because if you apply both |
the JS aggregation. It's included in this module because if you apply both |
| 86 |
patches separately, you will get a conflict. |
patches separately, you will get a conflict. This patch also sets the default |
| 87 |
|
location for drupal.js and jquery.js to the footer of the page, and defaults |
| 88 |
|
calls to drupal_add_js() to the footer as well. |
| 89 |
|
|
| 90 |
|
|
| 91 |
Applying the theme patch |
Applying the theme patch |
| 124 |
This is my configuration: |
This is my configuration: |
| 125 |
|
|
| 126 |
$conf = array( |
$conf = array( |
| 127 |
|
// Configure Drupal core's file URL rewriting ability. If any of the |
| 128 |
|
// functions listed here fails, Drupal will default to its own ("normal") |
| 129 |
|
// file URL rewriting function. |
| 130 |
'file_url_rewrite' => array( |
'file_url_rewrite' => array( |
| 131 |
'cdn_file_url', // List the CDN module's URL rewrite function as the preferred server. |
'cdn_file_url', // List the CDN module's URL rewrite function as the preferred server. |
| 132 |
), |
), |
| 133 |
|
|
| 134 |
|
// CDN integration module settings. |
| 135 |
'cdn_url' => 'http://wimleers.cachefly.com/wimleers.com', |
'cdn_url' => 'http://wimleers.cachefly.com/wimleers.com', |
| 136 |
'cdn_sync_filters' => array( |
'cdn_sync_filters' => array( |
| 137 |
// Add all Javascript, CSS, image and flash files from the most common |
// Add all Javascript, CSS, image and flash files from the most common |