Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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.

1 Accepted Solution

Avatar

Correct answer by
Level 5

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.

View solution in original post

2 Replies

Avatar

Level 2

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

Avatar

Correct answer by
Level 5

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.