KarlvonKarton Posted April 23, 2018 Posted April 23, 2018 About Admin: I have country pages I have destination pages with a pagefield destination_country (from countries) I have hotel pages with a pagefield hotel_country (from countries) Now I want a pagefield in destination (destination_hotels) that only shows the hotels with the same country as the destination, but my selector does not work (in sort settings for children). This selector works (but shows all hotels from all countries):parent=/hotels/, template=hotel, sort=title But this one does not show anything:parent=/hotels/, template=hotel, destination_country=hotel_country, sort=title Why does this not work? Any suggestions?
BitPoet Posted April 23, 2018 Posted April 23, 2018 You can use page.fieldname on the right hand side in your selector, so you need something like this: parent=/hotels/, template=hotel, hotel_country=page.destination_country, sort=title There's a discussion with a similar setup here: 3
KarlvonKarton Posted April 23, 2018 Author Posted April 23, 2018 You made my day, @BitPoet! Thank you.
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