- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
To access resources in the configurator, it is also necessary to store them in a component. There are the following 4 resource types that can be uploaded:
- Image - e.g. product images
- JavaScript - Custom code which should be executed additionally when opening the configurator.
- Document - e.g. PDF
- 3D Assets - 3D models or environment files
If a configurator offers the possibility to individualize the product by uploading a custom image, it is necessary that the option "User can upload his own resources" is activated. User uploads are stored in a separate resource component just like normal product images.
Properties
Name | Description |
url | url to the resource |
width | width of the resource (available for image resource) |
height | height of the resource (available for image resource) |
type | datatype of the resource (e.g png, available for image, document and 3D asset resource) |
size | size of the resource |
dpix | resolution x (available for image resource) |
dpiy | resolution y (available for image resource) |
Value
When referring to a resource, in another value component for example, you get all the properties for the resource. The example below reprensents an image resource.
{
"Url": "https://combeepublic.blob.core.windows.net/resources/0C6fxtWT3dA.png",
"Width": 3040,
"Height": 2943,
"Type": "Png",
"Size": 135915,
"DpiX": 118.11,
"DpiY": 118.11
}
Was this article helpful?