mel47 Posted October 16, 2017 Share Posted October 16, 2017 Hello, I need help to solve my problem. In a template (event), I have 2 pageRef fields (organizer and location). Organizer's template contains address and something else. Location is mostly address. I have 2 cases: OrganizerA+location B or OrganizerA+LocationA. How I could avoid to duplicate data in case 2 (since address details are already found in organizer's page)? In the case 1 where I create a new entry. Unless I'm missing something, it created only title. Where (and how) I should add a hook like : after saving, if new location, redirect to this location's page? Or any other solution to be sure that other fields will be filled by the user. Thanks! Mel Link to comment Share on other sites More sharing options...
szabesz Posted October 16, 2017 Share Posted October 16, 2017 Hi, "How I could avoid to duplicate data in case 2 (since address details are already found in organizer's page)?" You can create an Address template and assign addresses to both Organizers and Locations via PageReference Fields. I do not really follow your second question. Can you give us a step-by-step example? 2 Link to comment Share on other sites More sharing options...
mel47 Posted October 17, 2017 Author Share Posted October 17, 2017 So I create a new entry, like this. But I want to notice, even force, users to go this new created page to fill data. How I can achieve that? Link to comment Share on other sites More sharing options...
Robin S Posted October 17, 2017 Share Posted October 17, 2017 51 minutes ago, mel47 said: But I want to notice, even force, users to go this new created page to fill data. How I can achieve that? Try this: https://modules.processwire.com/modules/admin-page-field-edit-links/ 2 Link to comment Share on other sites More sharing options...
mel47 Posted October 17, 2017 Author Share Posted October 17, 2017 30 minutes ago, Robin S said: Try this: https://modules.processwire.com/modules/admin-page-field-edit-links/ Thanks, it's exactly what i was looking for! I don't know how I miss it! 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