froot Posted November 17, 2022 Share Posted November 17, 2022 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 More sharing options...
froot Posted May 7 Author Share Posted May 7 ? Link to comment Share on other sites More sharing options...
bernhard Posted May 7 Share Posted May 7 On 11/17/2022 at 12:33 PM, froot said: 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? Why don't you look into the code of those modules or ask the module authors how they did it? 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now