Hi,my task is to create a variable with which the CMS user will be able to add an unlimited number of different types of data. Let’s say we have an “article” page there will be texts, photos, mp3s, quotes, statistics, videos, etc. in any order and quantity.
I started by creating two types of MiGX:
text with description field (type: richtext)
photo with image (type: image) and alt (type: text) ) fields.
I added these two MIGX for a test to the TV template and got:
Yes I know, I’ve even started a custom renderer already. However, it is quite complicated, and when adding a new module to MIGX multi will have to make a fix. I am looking for a default solution, if there is a possibility of Multiple Formtab then there should be a default way to display them.
If you give the different fields in the different configurations the same name (for example the same name for the richtext field in “text” and the alt field in “photo”), then you can output them in the same grid column.
You can also output the image normally in a column with the this.renderImage renderer. This column then just remains empty for rows of type “text”.
Thank you for the tips, they are understandable to me. But all the time it is a solution that requires a lot of writing in custom renders, for example: how I would like one of the modules in MIGX multi to be a photo gallery. For the time being, this is also the only solution, and I guess be will have to do it through custom renders.