CRX/de node structure for Components used in Experience Fragments | Adobe Higher Education
Skip to main content
November 22, 2023
Risolto

CRX/de node structure for Components used in Experience Fragments

  • November 22, 2023
  • 3 risposte
  • 1151 visualizzazioni

Hi,

 

When I create an Experience Fragment using AEM, I can use the following image components, either "wcm/foundation/components/image" or "weretail/components/content/image", although these components appear and render the same in the Experience Fragment editor, but in crx/de,

the image component node with resourceType "weretail/components/content/image" stores the complete image asset in the node and "wcm/foundation/components/image" stores the reference to the image in the node property "fileReference". I need to know where these node structures are defined and how AEM understands whether to store the asset or store the reference to file in jcr node property.

 

Or Generally speaking,

How does AEM understand what component requires what JCR properties in their nodes/how the component stores data in their JCR nodes. 

Questo argomento è stato chiuso alle risposte.
Migliore risposta di aanchal-sikka

@manokamnas 

 

This "wcm/foundation/components/image" is the deprecated way of rendering images.

 

We should rather use "core/wcm/components/image/v3/image" . The details of this component are present here: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/image.html?lang=en

 

the weretail is a proxy component which extends "core/wcm/components/image/v3/image". 

3 risposte

aanchal-sikka
Community Advisor
Community Advisor
November 22, 2023

@manokamnas 

 

This "wcm/foundation/components/image" is the deprecated way of rendering images.

 

We should rather use "core/wcm/components/image/v3/image" . The details of this component are present here: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/image.html?lang=en

 

the weretail is a proxy component which extends "core/wcm/components/image/v3/image". 

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
November 23, 2023

@manokamnas Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
arunpatidar
Community Advisor
Community Advisor
November 23, 2023

Hi

 

Please check the dialog of "/apps/weretail/components/content/image" and "/libs/wcm/foundation/components/image" to know where these node structures are defined and how AEM understands whether to store the asset or store the reference to file in jcr node property.

The file is created when component allow you to upload assets from your local but if you choose file from DAM, fileRefrence property will be created.

Arun Patidar