Jump to content

patrick

Members
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

3 Neutral

About patrick

  • Rank
    Jr. Member
  1. Hi Robin S Thanks a lot for your reply. I tried the example in your linked post and it works: $field = $user->language->isDefault() ? "body" : "body.data" . $user->language; But in case of Repeaters it seems not to work. The following code throws an Error Exception: Multi-dot 'a.b.c' type selectors may not be used with OR '|' fields. $field = $user->language->isDefault() ? "repeater_element.body" : "repeater_element.body.data" . $user->language; I tried with sub-selectors, but couldn't get it to work fo far:
  2. Currently working on a search function for a multi language website (DE, FR, IT). If I'm on the FR (or IT) version of the website and start a search with a DE term, I also get FR (or IT) pages in the search result (because the default language field has this DE term). How can I achieve that the find() function searches only in the field of the current user language? The current selector looks like this: $selector = "title|body~=$q, limit=50";
×
×
  • Create New...