Multi language search with Structure
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
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.
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)
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.