WebsiteBaker Community Forum
WebsiteBaker Support (2.10.x) => General Help & Support => Topic started by: Steve on January 19, 2018, 11:25:54 AM
-
I have upgraded a wsb2.8.3 site to wsb2.10 and added in a search box (which was not previously there). All my search pages are being displayed in the wysiwyg content part of the referring page and not on a separate page (which is what I would expect). I cannot find where to change or control this behaviour after looking through the forum and help sections. Can anyone offer any ideas please? Thanks in advance.
-
I am not sure why this (refering page) "feature" was added.
You can disable it by modifying the file /{website_root}/search/index.php (using ftp)
Remove (or comment out) line 28 that says:
$page_id = @$_SESSION['PAGE_ID'] ?: 0;
-
Wonderful - such a quick and accurate response.
To further enhance this I have changed the value of $page_id in a previous line to match that of a new page I have configured for the search results.
This works perfectly now.
Many thanks, much appreciated.
Steve