Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,

I need to create 3 versions of the same image, but I get only the origin image and the thumbnail, not the 300pxx version.

The thumbnail tuts said:"To create multiple thumbnail images of the same image (one might be square, the other rectangular, perhaps), define multiple regions and associate them all with the same parent image."

Which seems logical, but it does not work.

What do I do wrong?

Code: Select all
<cms:editable 
      order='1'
      name='gg_image'
      label='Image'
      desc='Upload your main image here'
      width='600'
     
      show_preview='1'
      preview_height='200'
      type='image'
   />

<cms:editable
   order='2'
      name='gg_image2'
      label='Image 300px'
      desc='small 300px of the main image above'
      width='300'
     
      assoc_field='gg_image'
      show_preview='1'
      type='image'
   />
   
   <cms:editable
   order='3'
      name='gg_thumb'
      label='Image Thumbnail'
      desc='Thumbnail of the main image above'
      width='150'
     
      assoc_field='gg_image'
      show_preview='1'
      type='thumbnail'
   /> 
Hi Paolo,

As the quote for the tutorial states -
To create multiple thumbnail images of the same image

- the idea is to have one type 'image' editable region and then have multiple type 'thumbnail' regions associated with that 'image' region.

In your code, the first region is the main image (correct) with the two regions following it being associated with it using assoc_field='gg_image' (also correct).

However, the second region has been defined as type 'image' (this is wrong) where it actually needs to be of type 'thumbnail' (exactly like the last region).

Please change its type and visit the modified template as super-admin.
Now when you'll save a new image in the first region, the two thumbnail regions associated with it will automatically get populated with images (thumbnails) of the specified sizes.

Hope the reply help.
Thanks, KK, it worked. Silly me...
3 posts Page 1 of 1