Function PropertyMediaMaxSize
Generates a html image for property media
PropertyMediaMaxSize([MEDIA],[SIZE],[TYPE],[MAX_WIDTH],[MAX_HEIGHT],[INDEX],[STYLE],[ALT],[TITLE],[ID],[BORDER],[PRIVATE_URL])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | string | required | n/a | MEDIA | The property media |
2 | string | optional | W | SIZE | The size: "T" = Thumbnail, "W" = Website, "O" = Original Hi-Res |
3 | string | optional | P | TYPE | The type: "P" = Photo, "F" = Floorplan |
4 | integer | optional | n/a | MAX_WIDTH | The maximum width in pixel size |
5 | integer | optional | n/a | MAX_HEIGHT | The maximum height in pixel size |
6 | integer | optional | n/a | INDEX | The nth index to find starting at 1 |
7 | string | optional | n/a | STYLE | The image style |
8 | string | optional | n/a | ALT | The image alt |
9 | string | optional | n/a | TITLE | The image title |
10 | string | optional | n/a | ID | The image id |
11 | integer | optional | 0 | BORDER | The image border size |
12 | boolean | optional | false | PRIVATE_URL | Whether using a public or private URL |
Returns
The html image for the property media
Examples
Example to output a html image at restricted size
{{PropertyMediaMaxSize(ALIAS.PROPMEDIA,"W","P",1024,768)}}