2016-07-26, 04:20:30
(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 ....
Still - Search_widgets is not working: results are not filtered, search is not working etc'
- 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 .
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.