teaser image compulsory | Community
Skip to main content
Level 4
April 20, 2023
Solved

teaser image compulsory

  • April 20, 2023
  • 1 reply
  • 529 views

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.

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sady_Rifat

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.

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.

 

 

1 reply

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
April 20, 2023

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.

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.