Open dhimanbarua opened 4 years ago
Hi @code-with-mehedi. Thanks for reply.
We can repeat items with the parent/child module easily, how can we add another child item within the child module?
Let's say my client needs a team slider, for each team member I would like to have various social media items. So is there are any ways to use nested child?
There are many scenarios in which you'd choose a repeater field over a child module. For example if you need 2 or more distinct options with variable amounts of entries without all the overhead a child module comes with (php/jsx file, advanced/default fields for styling, css, render(), etc.). You can only have 1 child module per module or at least you could only use one in the past. With repeater field you can have as many options as you want.
Here is an idea, one repeater option contains text snippets and a second repeater field contains colors for a gradient background and a third one contains a list of animations to iterate through when switching texts.
And another idea, a blurb carousel where each blurb has exactly 1 image and 1 title. With a repeater field containing an image option and a text option this would be super easy to setup.
You could implement those as custom field I guess but it would be nicer if we could simply write a "config" for a repeating field by utilizing Divis default options like text, color, image etc.
Hi @code-with-mehedi. Thanks for reply.
We can repeat items with the parent/child module easily, how can we add another child item within the child module?
Let's say my client needs a team slider, for each team member I would like to have various social media items. So is there are any ways to use nested child?
Hey @dhimanbarua, did you find a solution for this one already? I actually tried making my own reapeater (acf) / loop (visual composer) field but I'm unable to make anything work and the support on the site kind'a useless on this specific question
Since you can now implement custom fields using React, you could try to come up with something specific to your case. However, a generic repeater field which would be configurable via the get_fields() function would be desirable for a lot of us third party devs as it's much more convenient than always writing the same code over and over again. But I guess thats the best we can do for now.
Since you can now implement custom fields using React, you could try to come up with something specific to your case. However, a generic repeater field which would be configurable via the get_fields() function would be desirable for a lot of us third party devs as it's much more convenient than always writing the same code over and over again. But I guess thats the best we can do for now.
I feel like instructions were kind'a unclear because I actually tried to make my own field that would allow you to map other components but I feel like instructions I found on elegantthemes docs are not complete (or something) As any markup I try to make comes up with this response:
Is there any more complete instructions/guidance to create a field where I can map other fields? I assume I'll need to reuse the existing components/fields by importing them but I didn't even manage to reach that side :\
@xxtesaxx may be you can use Elementor page builder or Acf meta box repeater field. Any scenarios you can use it easily. If you have any source code or example code please share with you. @nexus-mediapark I have not find this solution still now.
Hello @dhimanbarua , Could you please more info about your expectation? For example when you feel you need it? So we can add it to our suggestions list for future development. Thanks