Martijn Posted October 5, 2015 Share Posted October 5, 2015 G'day folks. Started dabbling with PW and i must say, between all the confusion, i am impressed. I am used to Joomla and Wordpress and this is something different. And i like it. But it has me a little stumped. I am trying set up a site to use internally at work. The annoying/weird thing is I want both information about organisations (several types) and individuals to be displayed. An individual can belong to multiple organisations, but similar, multiple organisations can belong to one individual. So, here's me thinking that if i have 2 templates (org and ind), and i make both the parent and child, it may work, but no. Evidently one template cannot have the same parent and child, it wouldn't show in the template drop down when creating a new page. Is there a way around this? Is there a way to have the same page (not a copy of it) belong to multiple folders? Or am i approaching it wrongly all together? As i said, i am new at PW, i have a decent knowledge of HTML, CSS, PHP and database structutres in general. But i am stumped on how to get this to work. Any insight would be appreciated. Cheers, Martijn Link to comment Share on other sites More sharing options...
tpr Posted October 5, 2015 Share Posted October 5, 2015 I would set up the structure similarly, and set the relations on each item individually with two new Page fields ("parent organizations" and "members", for example). Of course this setup needs individuals to be put under parent "ind", and organizations under "org". If you are concerned with how to find members of an organization or vice versa, you can use the Finder. Link to comment Share on other sites More sharing options...
Martijn Posted October 5, 2015 Author Share Posted October 5, 2015 Seems like a good suggestion. I'll have to create a couple of extra pages to categorize the individuals and organisations (orgs alone will be 800+). I'll give it a go! 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 5, 2015 Share Posted October 5, 2015 Best read about categorization in processwire: https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ 2 Link to comment Share on other sites More sharing options...
Martijn Posted October 7, 2015 Author Share Posted October 7, 2015 Just a bit of a follow up question... If i have organisations A,B,C, etc and people 1,2,3, etc i amcurrently linking person 1 with org A by means of page fields, which works fine. I also then go into org A and link it with person 1. Is there a quicker way to do this? There are some people linked with 10+ organisations... Link to comment Share on other sites More sharing options...
Martijn Geerts Posted October 7, 2015 Share Posted October 7, 2015 Depend on how you have your data. When you have your data structured some how, you could write a script to do it for you. side note: It's scary to have no avatar, someone will come up with one when you aren't quick enough:-) 1 Link to comment Share on other sites More sharing options...
Martijn Posted October 7, 2015 Author Share Posted October 7, 2015 I suppose... Data structure is fairly straightforward (at least, it is in my opinion). 4 different org types, each in their own subfolder/template. One type of individuals (aren't we all just the same ) I'll have a look at how it registers in the mysql, might see if i can make heads and tales of it from there. And that side note: As i haven't updated my FB Profle pic in 6 years... i don't see me putting an avatar on anytime soon. (als je begrijpt wat ik bedoel (en ik mis die olie b bommel film)) 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted October 7, 2015 Share Posted October 7, 2015 The reason I mention structured data is because in ProcessWire it's fairly simple to use that to import pages. 1 Link to comment Share on other sites More sharing options...
bernhard Posted October 7, 2015 Share Posted October 7, 2015 wouldn't that be a great usecase for your bidirectional page field gist, martijn (geerts)? https://processwire.com/talk/topic/9675-page-field-bidirectional/ 1 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