Reorder Content Fragments to change the order in React Native App. | Community
Skip to main content
iamnjain
Community Advisor
Community Advisor
April 20, 2023
Solved

Reorder Content Fragments to change the order in React Native App.

  • April 20, 2023
  • 1 reply
  • 882 views

Hello All,


I am just wondering about solution for one POC task, where we have component specific CFs for React Native App. Now we need to define the order of Components to render on app UI and want to make it configurable in AEM Touch UI for authors. So authors can change the order and order of UI components on App changes instantly.


Is there a way?

Need your suggestions if someone implemented this.

 

 

 

@arunpatidar @saravanan_dharmaraj lukasz-m @briankasingli 

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 arunpatidar

Hi @iamnjain 
I think the reordering won't be possible since the Content Fragment is based on Model which has the fix ordering.

I am not sure what it will bring if you do reordering. You are going to expose the CF as json and json properties can be read in any order.

 

Inside multifield, it is possible to do reordering.

 

Please let us know the use case to better understand the problem/solution.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 20, 2023

Hi @iamnjain 
I think the reordering won't be possible since the Content Fragment is based on Model which has the fix ordering.

I am not sure what it will bring if you do reordering. You are going to expose the CF as json and json properties can be read in any order.

 

Inside multifield, it is possible to do reordering.

 

Please let us know the use case to better understand the problem/solution.

Arun Patidar