| 1 |
Installation
|
| 2 |
------------
|
| 3 |
|
| 4 |
1. Copy this directory to the Drupal modules/ directory. Drupal will
|
| 5 |
automatically detect it. Then enable the module.
|
| 6 |
|
| 7 |
2. Recommended, but not mandatory. Create a vocabulary (or several) for classifying recipes and associate recipe.module with that vocabulary
|
| 8 |
|
| 9 |
3. Recommended, but not mandatory. Install the taxonomy_dhtml.module. You will get a nice taxonomy browser on your main recipe page. This
|
| 10 |
lets users browse all recipes for 'Fish' or 'Dessert' for example.
|
| 11 |
|
| 12 |
|
| 13 |
Upgraders
|
| 14 |
---------
|
| 15 |
|
| 16 |
If you are upgrading from a version with the Drupal 4.6 module database schema, eg. upgrading drupal from 4.6 to 4.7, or using khalid's 4.7 compatible recipe
|
| 17 |
module, then the upgrade procedure is as follows:
|
| 18 |
|
| 19 |
1. Rename your recipe table to recipe_old
|
| 20 |
2. Uninstall the old recipe module, and issue this SQL statement:
|
| 21 |
DELETE FROM system WHERE filename='modules/recipe.module';
|
| 22 |
3. Install the 4.7 module
|
| 23 |
4. Under admin/menus make the 'import old db' menu option visible, and click
|
| 24 |
on it
|
| 25 |
5. The import to the new schema should now work, and you can remove the menu
|
| 26 |
option again.
|
| 27 |
|
| 28 |
Please let marble (drupal@pebble.org.uk) know if you have any problems with
|
| 29 |
this procedure. I hope to make it easier in future releases. This procedure is
|
| 30 |
ONLY for the old database schema (with tables named recipe and
|
| 31 |
recipe_ingredients). If you have recipe, recipe_ingredient,
|
| 32 |
recipe_node_ingredient and recipe_unit, then any required updates should
|
| 33 |
happen automatically when you run drupal's update.php.
|
| 34 |
Note that this import is not perfect, and relies on parsing strings with no
|
| 35 |
fixed format. Even if it isn't able to parse out the quantity, unit and
|
| 36 |
ingredient name from your ingredients correctly, it should get something
|
| 37 |
which at least looks OK. It is strongly recommended that you try it out on a
|
| 38 |
backup copy of your database first.
|
| 39 |
|
| 40 |
Author
|
| 41 |
------
|
| 42 |
Moshe Weitzman <weitzman@tejasa.com>
|
| 43 |
|
| 44 |
|
| 45 |
Current maintainer
|
| 46 |
------------------
|
| 47 |
Ainsley Pereira <drupal@pebble.org.uk>
|