Hello,
I am using Evo 1.0.14 with the inbuilt AjaxSearch 1.10.1 and I am trying to exclude the children resources of known parents from the search results.
The 2 parent folders I am targeting are 64 and 84. The parents are unpublished and not shown in menus.
The children documents are all published and show in menus. Children documents get added quite regularly to these 2 folders by public users that submit pubKit forms in the front end. So manually listing each child document, and manually changing to show in menu / unpublished, is not feasible because they change all the time.
I have tried the following in the AjaxSearch snippet call on the search page:
&hideMenu=`0` (hoping this might hide children if parents are hidden - but does not seem to behave that way)
&filter=`parent,64,2` (I understand AjaxSearch filtering works like ditto filtering but not sure how to do it)
&documents=`not in:64,84` (hoping this would cover 64 and 85 and all their children - but I think it only covers the 2 specific resources)
These are my AjaxSearch snippet calls...
AjaxSearch snippet call in header (the form):
[!AjaxSearch? &landingPage=`5` &ajaxSearch=`0` &showResults=`0` &showIntro=`0`
&tplInput=`as-tpl-searchboxH`
!]
AjaxSearch snippet call on search page:
[!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0` &showIntro=`0` &pagingType=`0` &highlightResult=`0` &grabMax=`20` &minChars=`2` &rank=`pagetitle:80,introtext:60,description:40` &whereSearch=`content:null` &advSearch=`oneword`
&hideMenu=`0`
&filter=`parent,64,2`
&documents=`not in:64,84`
&tplInput=`as-tpl-searchboxP`
&tplGrpResult=`as-tpl-grpResult`
&tplResult=`as-tpl-result`
&tplResults=`as-tpl-results`
&tplPaging0=`as-tpl-paging0`
!]
Any ideas on how to exclude children of known parents from AjaxSearch results?
Thanks in advance.
[ed. note: nickf08 last edited this post 12 years, 3 months ago.]