Filter only pages of a parent page (child of)
-
Hi, I’m trying to filter search results to pages of a specific parent page (id=16). I’ve been told i can have a hidden field, like this:
<input type="hidden" name="parent" value="16" />
or
<input type="hidden" name="child_of" value="16" />
This does add this to the end of the url:
?s=upload&parent=16 or
?s=upload&child_of=16But I’m still getting all pages as results. What am i doing wrong? here’s my form code (the input field is in the bottom)
<form class="el6 x-search" data-x-search="{"search":true}" action="https://www2.filecamp.com/" method="get"> <label class="visually-hidden" for="s-el6">Search</label> <input id="s-el6" class="x-search-input" type="search" name="s" tabindex="" placeholder="Search the Knowledge Base" style="outline: none;"> <button class="x-search-btn x-search-btn-submit" type="button" data-x-search-submit="" tabindex=""><span class="visually-hidden">Submit</span><svg xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-1 -1 25 25"><circle fill="none" stroke-width="1" stroke-linecap="square" stroke-miterlimit="10" cx="10" cy="10" r="9" stroke-linejoin="miter"></circle><line fill="none" stroke-width="1" stroke-linecap="square" stroke-miterlimit="10" x1="22" y1="22" x2="16.4" y2="16.4" stroke-linejoin="miter"></line></svg></button> <button class="x-search-btn x-search-btn-clear" type="button" data-x-search-clear="" tabindex=""><span class="visually-hidden">Clear</span><svg xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-1 -1 25 25"><line fill="none" stroke-width="1" stroke-linecap="square" stroke-miterlimit="10" x1="19" y1="5" x2="5" y2="19" stroke-linejoin="miter"></line><line fill="none" stroke-width="1" stroke-linecap="square" stroke-miterlimit="10" x1="19" y1="19" x2="5" y2="5" stroke-linejoin="miter"></line></svg></button> <input type="hidden" name="parent" value="16" /> </form>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Filter only pages of a parent page (child of)’ is closed to new replies.