lecrackffm Posted January 5, 2018 Share Posted January 5, 2018 Hello, after working with PW for a while, im still unsure sometimes, how to structure certain Data. In this case it is a List of Members. Each Member consists of his name and a list of his duties. In the template file i need separate access to the name and the duties I was thinking about a Repeater Matrix with one textfield for the Membername, and a textarea with newline to UL for the duties? What do you suggest how to structure the Data in the PW template ? Is there a better way? Tips and suggestions more then welcome. Thanks Link to comment Share on other sites More sharing options...
dragan Posted January 5, 2018 Share Posted January 5, 2018 Are the duties "free-form"? Or do you have a structured set of duties? If the latter, I would pagefields. I would do it without repeater matrix. parent page Members + child pages with tpl member Somewhere a parent page with child pages to store each duty. Then just use two text fields (firstname + lastname - gives you more possibilities for sorting), plus pagefields (select or checkboxes) for duties. You can control access rights on field-level. 5 Link to comment Share on other sites More sharing options...
lecrackffm Posted January 5, 2018 Author Share Posted January 5, 2018 Thanks for your Input. The duties are "free-form" i.E i have no idea what kind of Duties, and Ranks are going to be set later. Link to comment Share on other sites More sharing options...
dragan Posted January 5, 2018 Share Posted January 5, 2018 Then I'd use asmSelect (autoselect multiple), with option to create new items by hitting enter. 1 Link to comment Share on other sites More sharing options...
adrian Posted January 5, 2018 Share Posted January 5, 2018 This might be useful to you: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users 3 Link to comment Share on other sites More sharing options...
lecrackffm Posted January 5, 2018 Author Share Posted January 5, 2018 22 minutes ago, dragan said: Then I'd use asmSelect (autoselect multiple), with option to create new items by hitting enter. Thank you. ill give your strategy explained above combined with asmSelect a shot Link to comment Share on other sites More sharing options...
elabx Posted January 8, 2018 Share Posted January 8, 2018 On 1/5/2018 at 8:49 AM, adrian said: This might be useful to you: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users This is gold!!! Can't believe I've lived without this info. +1 on the unified resources thread haha 1 Link to comment Share on other sites More sharing options...
SamC Posted January 10, 2018 Share Posted January 10, 2018 On 08/01/2018 at 1:49 AM, elabx said: This is gold!!! Can't believe I've lived without this info. +1 on the unified resources thread haha Adrian pointed this one out to me a while ago and damned if I could find it the other day, thanks! 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