Single image
The complete filed using for a single image, the out put will be full of img tag with attributes
Arguments
Code example
@schema
{
"name" : "Single image",
"author" : "LayoutHub",
"website" : "https://www.LayoutHub.com"
}
@endschema
<div class="sample-demo">
<p>
@print(section.settings.img)
</p>
</div>[
{
name: 'img',
label: 'Single image',
type: 'single_image',
value: {
src: '%URL%thumbnail.jpg',
alt: 'Call to action',
class: 'hub-img'
}
}
]Last updated