Can anyone suggest how to create custom Image component ALT text in AEM6.2 | Community
Skip to main content
August 10, 2017
Solved

Can anyone suggest how to create custom Image component ALT text in AEM6.2

  • August 10, 2017
  • 2 replies
  • 1632 views

Hi,

Can anyone please help me to create the component  in AEM6.2 with

1. Image with alt text

2. Rich text  where we can write text and edit the margin, color, font-size, font-weight (free style) --- different component.

I have tried using  sling:resourceTpe="granite/ui/components/foundation/form/pathbrowser" and getting the only image as mentioned below

<img src="${href.link}" >

But I need to get the other properties like size,alt text for image from dialog,do we need to add all these properties as a JCR node in the dialog.

Please suggest.

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 susheel

As @riteshrajput suggested it should be available in OOB image component. If you need modifications you can copy it and modify it as per your needs or you can overlay.

2 replies

Level 2
August 10, 2017

Have you explored the OOB image component /libs/foundation/components/image? it gives you the feature author to add the alt text.

susheel
susheelAccepted solution
Level 5
August 10, 2017

As @riteshrajput suggested it should be available in OOB image component. If you need modifications you can copy it and modify it as per your needs or you can overlay.