Jump to content

Selector only finds pages with "name=" when using default language name


MSP01
 Share

Recommended Posts

Pretty straightforward selector string:

$pages->find("template=whatever, name=pagename");

This works fine on default language, but if I change language it will only find pages if name= matches the name on default language.

To find the page on second language, I need to add the language id after the name field like this:

$pages->find("template=whatever, name1013=pagename");

Where 1013 is the id of the second language.

Version of PW is 3.0.184, all the usual language fields and modules are enabled nor did I find anything weird in the backend.

Anyone got any ideas?

Link to comment
Share on other sites

  • MSP01 changed the title to Selector only finds pages with "name=" when using default language name

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