This topic is locked
[SOLVED]

 adv_search_panel field

11/28/2011 7:26:28 PM
PHPRunner General questions
W
w0lverhampt0n author

PHPrunner 6.0

I need to customize the search on my site to not show some information generated into the "adv_search_panel" field. Can anyone point me in the right direction and help me out? I need to remove from view:

  1. Criteria, "all" and "any" radio buttons
  2. "Add field" and "Show options" buttons.

    I've highlighted the areas I want to remove in the image shown below. Thanks you very much.

C
cgphp 11/29/2011

Delete them in the visual editor.

W
w0lverhampt0n author 11/29/2011



Delete them in the visual editor.


They are not in the visual editor!

The visual editor only shows the field "adv_search_panel" (shown in my image attached). The HTML of this field refers to:

class=searchPanelContainer>{$adv_search_panel}

G
giorgiots 11/30/2011

Try to edit the template file with an external editor, for example (name_of_your_page)_search_panel.htm

C
cgphp 12/1/2011

In the "Javascript onload" event of the List page enter this code:

$("div.srchCritTop").remove();

$("div.addOption").remove();
W
w0lverhampt0n author 12/1/2011



In the "Javascript onload" event of the List page enter this code:

$("div.srchCritTop").remove();

$("div.addOption").remove();


W
w0lverhampt0n author 12/1/2011

Thank you Christian for you assistance. I got support from XLinesoft since I'm a new customer:
You can remove these elements in the PHPRunner6.0\source\templates\search_panel.htm file:

------------------

<div class="addOption">

<span class="runner-btnframe">

<span class="runner-btnleft"></span>

<span class="runner-btnright"></span>

<a href="#" id="showHideControlChooseMenu{$id}" class="runner-button" {$showHideCtrls_attrs}>##message SEARCH_ADD_FIELD##</a>

</span>

&nbsp;&nbsp;&nbsp;

<span class="runner-btnframe">

<span class="runner-btnleft"></span>

<span class="runner-btnright"></span>

<a href="#" id="showHideSearchType{$id}" class="runner-button" {$showHideCtrlsOpt_attrs}>{$showHideOpt_mess}</a>

</span>

</div>

------------------

Then make a full rebuild of your project.