WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Search Results embedded in current page
  • Print
Pages: [1]   Go Down

Author Topic: Search Results embedded in current page  (Read 10593 times)

Offline Steve

  • Posts: 2
Search Results embedded in current page
« 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.
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Search Results embedded in current page
« Reply #1 on: January 19, 2018, 11:34:35 AM »
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:
Code: [Select]
$page_id = @$_SESSION['PAGE_ID'] ?: 0;
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Steve

  • Posts: 2
Re: Search Results embedded in current page
« Reply #2 on: January 19, 2018, 11:39:11 AM »
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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Search Results embedded in current page
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2