In my Sitecore 8.2. I have a rendering that has a Multilist called Fields. This Multilist is pointing to the Fields folder in Sitecore.
In the Fields folder, the content editor can create a new item. For example in the Fields Folder, following items are created.
Id Name Office Location Date
The Multilist on rendering is pointing to the Fields folder and the content editor has selected the following fields
Id Name Ofice
In the backend, we are getting results from a third party API and checking which fields are selected in the Multilist. Then, using an expando object, we are creating a dynamic object. That object is then passed to the view.
For example, if Id, Name, and Office fields are selected, then expando object will have
id, Name and Office fields. Similarly, If only Id and Name are selected in the MultiList then the expando object will have
Id and Name fields.
I want to move this component to SXA. I need to create a new module and want to use a rendering variant.
I am very new to SXA and want to know is this possible to do using the rendering variant? I can create a custom module and can do using the rendering parameter just like I did in my existing component.
Currently, the content editor has the ability to choose which fields from the API they want and they use the Multilist on a rendering to select it.
Since values are not coming from a Sitecore Context item but from a third party API, so I am not sure it is possible to do it using RV or not?. I want to give the Content editor the same ability to add fields they want.
Has anyone done something similar to this? or any recommendation would be helpful
Thanks in advance