bernhard Posted November 14, 2016 Share Posted November 14, 2016 This module comes in handy when you need related pagefields that are dependant on each other. Example: you have a sports team and team members belonging to that team. you need 2 fields: one on the team-page, one on the member-profile. this module keeps both fields in synch. Other examples would be hierarchical company structure or any other kind of membership relation. Demo: settings in this example: Gitlab: https://gitlab.com/baumrock/PagefieldPairs Modules Directory: asap only tested on PW3 and reno theme. Please test it faithfully before using it. please report any issues 7 Link to comment Share on other sites More sharing options...
POWERFULHORSE Posted November 14, 2016 Share Posted November 14, 2016 Great to see these types of modules appearing. Similar functionality to ConnectPageFields? I was working on my own implementation but seems that's no longer necessary! 2 Link to comment Share on other sites More sharing options...
bernhard Posted November 14, 2016 Author Share Posted November 14, 2016 oh man... exactly the same... i knew this would happen. not enough time to follow the forum and it seems it was not on pw weekly also in this thread it was not mentioned thanks for your hint... 1 Link to comment Share on other sites More sharing options...
adrian Posted November 14, 2016 Share Posted November 14, 2016 52 minutes ago, bernhard said: it seems it was not on pw weekly But it was in PW weekly https://weekly.pw/issue/131/ 2 Link to comment Share on other sites More sharing options...
bernhard Posted November 14, 2016 Author Share Posted November 14, 2016 oh noooooo then it seems i was working too much on the todo-module it's the first pw weekly i missed since a while... anywhay. it was not too much effort... 2 Link to comment Share on other sites More sharing options...
adrian Posted November 14, 2016 Share Posted November 14, 2016 From the video demo it looks great, so good job regardless! 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 14, 2016 Author Share Posted November 14, 2016 yeah... it would have been one of my first really helpful modules. but @Robin S was faster ^^ maybe the todo-module, if not anybody beats me again Link to comment Share on other sites More sharing options...
tpr Posted November 14, 2016 Share Posted November 14, 2016 Never mind! Practice makes perfect 1 Link to comment Share on other sites More sharing options...
Robin S Posted November 15, 2016 Share Posted November 15, 2016 Hi @bernhard, Nothing wrong with having two similar modules out there. I'm always looking at other people's module code because it helps me learn, and I expect others are the same. The more modules, the more to learn from! I noticed your module has the same oversight that I just fixed in mine: a Page field doesn't necessarily return a PageArray (i.e. 'single' Page fields) so methods like has(), add() and remove() won't work in all cases. Link to comment Share on other sites More sharing options...
LostKobrakai Posted November 15, 2016 Share Posted November 15, 2016 5 hours ago, Robin S said: Nothing wrong with having two similar modules out there. I'm always looking at other people's module code because it helps me learn, and I expect others are the same. The more modules, the more to learn from! While that's true it's always a bit harder for the user as he has to decide which one to take. 2 Link to comment Share on other sites More sharing options...
szabesz Posted November 15, 2016 Share Posted November 15, 2016 3 hours ago, LostKobrakai said: he has to decide which one to take Not to mention that if you unite forces everyone wins, especially with such a much needed module. So I suggest Robin S leading the development with Bernhard posting lot's of pull requests 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 15, 2016 Author Share Posted November 15, 2016 as there is really no difference between those two modules it's definitely better to stay with robin's version. thank you @Robin S for your hint to ->add() 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