1. Upload and install the module. Recipe includes optional
extra modules for Recipe Import and Export.
1. Copy this directory to the Drupal modules/ directory. Drupal will
automatically detect it. Then enable the module.
2. If you are upgrading from a previous version, run update.php.
2. Recommended, but not mandatory. Create a vocabulary (or several) for classifying recipes and associate recipe.module with that vocabulary
3. Adjust Permissions for user roles. NOTE: a 'site editor' role
is supported (see 'edit all recipes' permission).
3. Recommended, but not mandatory. Install the taxonomy_dhtml.module. You will get a nice taxonomy browser on your main recipe page. This
lets users browse all recipes for 'Fish' or 'Dessert' for example.
4. In Recipe Admin, enable/disable desired features.
5. Enable a Recipes menu item so users may find it...
Upgraders
---------
6. OPTIONAL: Create a taxonomy vocabulary and name it.
For example: 'Recipe Tags'.
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
module, then the upgrade procedure is as follows:
Under Content Types check 'Recipe', and under Settings check desired
options and Save.
1. Rename your recipe table to recipe_old
2. Uninstall the old recipe module, and issue this SQL statement:
DELETE FROM system WHERE filename='modules/recipe.module';
3. Install the 4.7 module
4. Under admin/menus make the 'import old db' menu option visible, and click
on it
5. The import to the new schema should now work, and you can remove the menu
option again.
Be sure to create at least one Term.
Please let marble (drupal@pebble.org.uk) know if you have any problems with
this procedure. I hope to make it easier in future releases. This procedure is
ONLY for the old database schema (with tables named recipe and
recipe_ingredients). If you have recipe, recipe_ingredient,
recipe_node_ingredient and recipe_unit, then any required updates should
happen automatically when you run drupal's update.php.
Note that this import is not perfect, and relies on parsing strings with no
fixed format. Even if it isn't able to parse out the quantity, unit and
ingredient name from your ingredients correctly, it should get something
which at least looks OK. It is strongly recommended that you try it out on a
backup copy of your database first.
In Menus, enable a link to Recipes so users may access the module.
Author
------
Moshe Weitzman <weitzman@tejasa.com>
7. OPTIONAL. Use CCK to extend the Recipe content type.. add images,
video, FiveStar ratings or voting, Flags, etc. Or just add