Jump to content

how to connect selects at backend? [solved]


Martinus
 Share

Recommended Posts

I have pages like this:

Apparel      (this is one department option out of 12, for select1)
- Clothes    (category option for select2)
- Footwear (category option for select2)
- etc.          (category option for select2)

As I see it, I need to populate options for select2, depending of chosen option in select1. But I do not want to have 12 select boxes.

Does PW not have something to connect the two? 

 

Link to comment
Share on other sites

@bernhardthanks for pointing me in the direction. It was a bit complicated to find a solution in that topic but apparently there is a simple way.
My pages are as follows:

Home
- Departments
-- Department1
--- CategoryA
--- CategoryB
-- Department2
--- CategoryX
--- CategoryY

I made one Input Field Type 'Select', type 'page reference', parent set to 'Departments'.
I made one input Field Type 'Select', type 'page reference', no parent set, no template set, selector string is 'parent=page.department'.

Then it works perfectly.

But when I would set a parent for that last field type, the pages using those two dependent fields won't save - so it is best to not set a parent page there.   

 

  • Like 1
Link to comment
Share on other sites

  • Martinus changed the title to how to connect selects at backend? [solved]

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...