Jump to content

repeater fields in configurable modules


fruid
 Share

Recommended Posts

I have a module that extends WireData implements Module, ConfigurableModule

For the configurations/settings I also have a .config.php file.

Now I'd need to add some functionalities for which I think a Repeater field would be the best choice.

That field type cannot (according to https://processwire.com/talk/topic/6174-repeater-in-module-config/#comment-228448) or still cannot (?) be used for a configurable module class.

I can see though that other modules do use some repeater field on their settings page. How do they do it? Do I need to create a page upon module install that would render all the settings? 

follow-up question: Once I have the repeater field on the settings page in some way or another, can I reference/list these repeaters inside another field in the system? I know there are page reference fields, the pages to reference would be listed inside a selector field. So can I somehow reference/list the items of the aforementioned repeater field instead?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...