Jump to content

Page Reference: Customer -> Location - Selection in template


zoeck
 Share

Recommended Posts

Hello,

i have one question. I created some templates to manage customers:

- customerlist (Parent)

-- customer (Child of customerlist))

--- customerlocation (Child of customer)

 

This is working without problems, i can create multiple locations for the customers and also multple custumers...

But now i have another Template "projects":
- first i have to choose the customer,
- then the location (there should be only the locations of the customer)

But how can i create this? 

I know, theres a module for this: 

But i think this is too much to select the customer location :)  (i just need it for this single field :( )

 

I hope somebody can help me :) 

Best Regards

zoeck

Link to comment
Share on other sites

I don't have a similar setup to quickly do tests myself, but... in your projects template, can't you try to use a page-reference field and use a custom/advanced selector for the allowed pages (using PHP code)?

Another thing that might work: install the Connect Page Fields module https://modules.processwire.com/modules/connect-page-fields/

 

Edited by dragan
suggestion for CPF module added
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...