Expand my Community achievements bar.

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

ACS AEM Commons package (Content fragment import) import LinkList field

Avatar

Level 2

Can anyone tell me if this component is capable of importing a LinkList field?  I've had success importing the basic field types, but now I have need to import a CF model with a field of type "LinkList" and I'm not sure what the formatting of the excel column should be.  Any help on this, or if the component supports it at all would be highly helpful.

 

Example of the CF Model and an example instance of this is below:

CF-Model.jpgCF-instance.jpg

Thanks!

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6 Replies

Avatar

Community Advisor

@ShaggySPFLD 

 

AEM OOTB does not support Composite multifields. 

 

For using OOTB capabilities:

 

1. We would need to create separate Content Fragments for:

aanchalsikka_0-1713930747727.png

 

2. And then use multifield Content Reference to links these CF to parent.

 

There are few blogs that suggest creating composite multifield in CF, but ITS NOT RECOMMENDED. The GraphQL queries might not work with these fields.

 

 


Aanchal Sikka

Avatar

Community Advisor

@ShaggySPFLD 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



Esteban Bustamante

Avatar

Level 2

Well while not helpful I understand the answer.  I just think it's a bit short sighted.  What it means is that I'll have to write a custom importer to get the data into the CF Model myself.  I mean it has to be possible since there is a method to output the CF model to JSON, then it has to be possible to import it as well.  If Content Fragments are going to be the answer for flexible user defined data then they will need to further mature and allow more functionality, I can't imagine I'm the only one dealing with this out there and the users needs only advance with time.

Avatar

Community Advisor

Everyone is welcome to contribute with their ideas to mature the product, kindly add your thoughts in this section: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-ideas/idb-p/adobe-experien...



Esteban Bustamante

Avatar

Level 10

Hi @ShaggySPFLD ,

The ACS AEM Commons package provides various utilities and tools for Adobe Experience Manager (AEM), but as of my last update, it does not have built-in support for importing LinkList fields in content fragments.

To import data into a LinkList field in a content fragment using ACS AEM Commons, you might need to develop a custom solution. Here's a general approach you could take:

  1. Understand LinkList Field Structure: First, understand how the LinkList field is structured within AEM. Typically, it's an array of link objects, each containing properties like URL, text, target, etc.

  2. Prepare Data in Excel: In your Excel spreadsheet, you would need to represent each link in the LinkList field as a separate row, with columns representing properties like URL, text, target, etc. You may need to devise a specific format for this representation based on your requirements.

  3. Custom Import Logic: Develop custom logic to parse the Excel data and populate the LinkList field accordingly. This logic would need to read each row from the Excel spreadsheet, create link objects, and add them to the LinkList field of the content fragment.

  4. Excel Column Formatting: As for the formatting of the Excel column, it would depend on how you decide to represent the link objects. Each column could represent a specific property of the link (e.g., URL, text, target), and each row would represent a separate link in the LinkList.

  5. Testing and Validation: Test your custom import logic thoroughly with different data scenarios to ensure that it correctly parses the Excel data and populates the LinkList field as expected.

  6. Error Handling: Implement error handling and validation in your custom import logic to handle cases where the data in the Excel spreadsheet is invalid or incomplete.

Remember that this approach involves custom development and might require a good understanding of AEM's content structure and ACS AEM Commons utilities. Additionally, consider reaching out to the AEM community or consulting the ACS AEM Commons documentation for any updates or additional guidance on this topic.

Avatar

Administrator

@ShaggySPFLD 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