Add options to use different image sizes in node and teaser.
nbz - September 6, 2008 - 05:29
| Project: | Image |
| Version: | 6.x-1.x-dev |
| Component: | image.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi, IMO this is a much needed feature and while i have been using Image module for Drupal 6 for a few months, until now I manually edited it to show different image sizes for teasers.
The attached patch is a more complete approach adding a form on the content-type page giving a choice for sizes to use in the body and teaser (defaults being what the module currently does).
Code is a modified version of what is already in image_attach for other node types.
| Attachment | Size |
|---|---|
| image_size.patch | 2.1 KB |

#1
works great !. Thanks.
#2
With the patch, the links to select the image size ( image_link() ) no longer work - the image is always the size set on the content-type page. Thus this patch breaks normal functionality and needs work.
Also, in the copy-and-paste from the image_attach code it looks like you forgot to edit the description to omit the sentence:
'Hidden' will not show the image.That is not one of the options and wouldn't make sense for the image content type.#3
Updated patch fixing the mentioned issues:
You can select the sizes on the page, and also set default sizes per content type. The text about choosing hidden has also been removed.