Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search Widgets
#7
(2016-07-24, 21:05:09)In tTzvook Wrote: Plugin looks very promising, but refuse to work for me too.

I try and try with no results ...

Seems like you missed something in your instructions/documentation ... or has something hardcoded in your site that is missing in the plugin, since it function great in your site ....

  • I use a bootsrap theme with Jquery (1.86) call in the head section
  • All I18N plugins are installed and are working fine.
  • Page theme has a call to the Search_widgets  :
    <p><?php get_search_widgets(array("addSearchBox"=>"city", "Placeholder"=>"City")); ?></p>
  • I has a special page called - dentalclinic ( it's fields are: smpic , phone , fax , address, email , website , city , specialties , etc' )
  • Parent page of those special pages is dental-clinics .
  • search code in the parent is  -  (% searchresults live=1 addTags=_parent_dental-clinics HEADER="" lang=en %)
  • I am not using your basket plugin .
Still - Search_widgets is not working: results are not filtered, search is not working etc'


Yes you are right.
If the plugin "Basket plugin MOD" is not used are several settings to be followed.
You have to including "Search_widgets" plugin elements and i18n search formed structure within the HTML DIV element with the ID name "search-outer".
In example, your code must be between DIV element like that:

Code:
<div id="search-outer">

    <p>(% get_search_widgets addSearchBox="city" Placeholder="Search by City" %)</p>

    <p>(% searchresults live=1 addTags=_parent_dental-clinics HEADER="" lang=en %)</p>
</div>

This code valued if you use plugin "Dynpages".
If you are forming search field by insirting PHP code in the template file, do it between div with ID "search-outer". Similarly:

Code:
<div id="search-outer">
  <?php get_search_widgets(array("addSearchBox"=>"city", "Placeholder"=>"City")); ?>
  <?php searchresults(array('addTags'=>'_parent_dental-clinics','lang'=>'en', 'HEADER'=>'')); ?>
</div>

You can also add an ID "search-outer" to your already used primary DIV, like that:

Code:
<div id="search-outer" class="container">
<?php get_search_widgets(array("addSearchBox"=>"city", "Placeholder"=>"City")); ?>
<?php searchresults(array('addTags'=>'_parent_dental-clinics','lang'=>'en', 'HEADER'=>'')); ?>
</div>



Sorry for the inconvenience. Nearest time I plan to update the "Search_widgets" plugin.
In the new version can be specified in outer DIV ID custom name (by adding a new field in the administration page). I also adding description about outer DIV usage rules.

Until then try my described method.
Good luck. Andrejus.
Reply


Messages In This Thread
Search Widgets - by asemion - 2016-05-26, 23:30:13
RE: Search Widgets - by Carrara - 2016-05-28, 11:00:36
RE: Search Widgets - by asemion - 2016-05-28, 19:28:04
RE: Search Widgets - by Carrara - 2016-05-29, 05:52:38
RE: Search Widgets - by asemion - 2016-05-29, 17:30:23
RE: Search Widgets - by Tzvook - 2016-07-24, 21:05:09
RE: Search Widgets - by asemion - 2016-07-26, 04:20:30
RE: Search Widgets - by Tzvook - 2016-07-26, 05:54:48
RE: Search Widgets - by asemion - 2016-07-26, 06:23:32
RE: Search Widgets - by Tzvook - 2016-07-26, 06:47:46
RE: Search Widgets - by Tzvook - 2016-07-27, 00:21:57
RE: Search Widgets - by asemion - 2019-02-08, 19:56:04



Users browsing this thread: 1 Guest(s)