| 1 |
$Id: INSTALL.txt,v 1.9.2.3 2007/07/30 02:35:22 add1sun Exp $
|
| 2 |
|
| 3 |
The Image module must be installed and image and image_gallery enabled
|
| 4 |
|
| 5 |
1. Copy the whole postcard directory to sites/default(or all)/modules/ directory
|
| 6 |
|
| 7 |
2. Enable module in admin/build/modules
|
| 8 |
|
| 9 |
3. You can:
|
| 10 |
configure settings at admin/settings/postcard
|
| 11 |
set permissions at admin/user/access
|
| 12 |
enable the menu item at admin/build/menu
|
| 13 |
|
| 14 |
Point your browser to http://example.com/?q=postcard and you will see the
|
| 15 |
gallery of postcards as set on the settings page. You will also see a "Send this as a postcard" link added to the links display on the image node itself for images that fall within the postcard gallery.
|
| 16 |
|
| 17 |
For site designers:
|
| 18 |
|
| 19 |
Visual appearance may be customized with the site theme. The module offers two
|
| 20 |
themeable functions: theme_postcard_gallery() and theme_postcard_image().
|
| 21 |
- theme_postcard_gallery() is taken from theme_image_gallery. This allows you
|
| 22 |
to theme postcard galleries differently form your normal image galleries.
|
| 23 |
- theme_postcard_image() will let you theme the individual postcard. Here you
|
| 24 |
change the image size used in the postcards.
|
| 25 |
|
| 26 |
To theme either of these, simply copy the entire function and copy it into
|
| 27 |
your theme's template.php file (create it if it doesn't exist) and change
|
| 28 |
'theme' to 'yourmodulename' (e.g. garland_postcard_gallery()). You can then
|
| 29 |
edit the function however you like.
|
| 30 |
|
| 31 |
For more information on theme overrides refer to http://drupal.org/node/55126.
|