Expand my Community achievements bar.

SOLVED

teaser image compulsory

Avatar

Level 5

I'm using OOTB teaser component. And want to make the image tab as mandatory. That means author should not be able to 'done' the component without adding an asset.

goyalkritika_0-1681968286270.png

Alternative text *is already a mandatory field. Need to make the 'Drop an asset' mandatory as well. How to do that?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @goyalkritika ,

This image option is actually coming from the core image dialog. In the teaser component, this portion is actually reused. So everything under the teaser Image tab is a property of the image component.

Sady_Rifat_0-1681969473363.png

If you want to customize it you need to override the image node under the tease component. 

for this delete the teaser image metadata. copy the image dialog structure from the image component into the teaser and in the file node, add the required option.

Sady_Rifat_1-1681969715701.png

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @goyalkritika ,

This image option is actually coming from the core image dialog. In the teaser component, this portion is actually reused. So everything under the teaser Image tab is a property of the image component.

Sady_Rifat_0-1681969473363.png

If you want to customize it you need to override the image node under the tease component. 

for this delete the teaser image metadata. copy the image dialog structure from the image component into the teaser and in the file node, add the required option.

Sady_Rifat_1-1681969715701.png