Développer ma barre des réalisations de la Communauté.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
RÉSOLU

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

Avatar

Ex-membre de la communauté

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 solution acceptée

Avatar

Réponse correcte par
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.

Voir la solution dans l'envoi d'origine

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

Réponse correcte par
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.