Temporary solution for multilingual setup for main menu search

Permalink Browser Info Environment
It will be great help for us if multiple target page can be selected for search result page for multilingual websites.

Multilingual websites should have two or more search page because Concrete5 only shows search results per language. So, we have to utilize respective search page for each language.

Main menu search function of PIXEL2 theme is brilliant. However, it doesn't work well in multilingual websites because only one the target page for searches can be defined in the option page.

Temporarily, I duplicated pixel_main_menu.php template for each language respectively and put page id for each language's search page to the line 260 and it works well.

ORIGINAL:
$search->controller->postTo_cID = $search_page

MODIFIED:
$search->controller->postTo_cID = '100'

Thank you.

Type: Discussion
Status: In Progress
naokik
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
Thanx for the heads up, we will think about a better solution on upcoming versions.

concrete5 Environment Information

concrete5 8.2.1 on MAMP

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.