torerain.blogg.se

Web thumbnailer
Web thumbnailer








web thumbnailer

The contents of this region can be accessed, as with all other editable regions, by using the variable named after it - " />Īpart from the parameters common to all types of editable regions, the regions of thumbnail type can take the following parameters. 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.

web thumbnailer

Once the user selects an image into the main image region (and saves the page), the thumbnail gets created automatically -Īnytime the user changes the main image (and saves the changes), the thumbnail automatically reflects the changes.

WEB THUMBNAILER CODE

The code above will result in something like this below the parent image type editable region. To create a thumbnail automatically for any image that gets selected into it, we can define a new editable region of type thumbnail and associate it with the region above by using the assoc_field parameter.

web thumbnailer

Suppose we have an editable region, named my_image, of type image. The thumbnail gets created in the same folder as that of the main image. Once the thumbnail has been created, this editable region then holds its fully qualified URL. Any time the content of the image type is edited, the thumbnail attached to it also gets automatically updated. Instead it is attached to an existing editable region of type image which then becomes the source for the thumbnail. Thumbnail type is different from all other types of editable regions in that the user does not directly edit anything within it. Editable region of type thumbnail, as the name suggests, is used to automatically create thumbnail images.










Web thumbnailer