Jump to content

Question about selectors in sort settings for children


KarlvonKarton
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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:

 

  • Like 3
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...