All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Multi language search with Structure

Fernstrg 23 Mar 2012 13:21 question, complete

I am building a multi language site with Structure set up like this:

- NL
-- page1
-- page2
- EN
-- page1
-- page2
- DE
--page1
--page2

How can I search for pages in one specific language? Do I have to use Categories?

Replies

  1. Low 23 Mar 2012 16:24

    You'll need to be able to differentiate entries by language. If they all belong to the same channel, you could add a simple drop down channel field keeping track of what language the entry is. Then you could use the search:field="language" parameter to limit the given entries by the defined language. You can hard-code that into the low_search:results tag or add it to the search form.

  2. Fernstrg 26 Mar 2012 13:08

    Can I combine methods in one results tag?
    Like:
    (All entries that are in this channel AND have this category) AND (All entries that are in this other channel)

  3. Low 26 Mar 2012 14:27

    I'm afraid not. Basically, if you can mimic the results by just using a channel:entries tag, you can get them with low_search:results, too.