New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Search Scope #1118

Closed
humanjpg opened this Issue Nov 18, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@humanjpg

humanjpg commented Nov 18, 2016

Expected behaviour

Would be great to be able to set search to only return specific entities in accordance with:

is_page
is_entry
is_term

So, effectively something like:

{{ search:results target="entries|pages" }} 
...

Should just return entries and pages.

Actual behaviour

Pagination includes terms, pages and terms in the results even when you use a conditional:

{{ search:results paginate="true" }}
  {{ if is_entry }}
    {{ title }}
  {{ /if }}
  {{ theme:partial src="pagination" }}
{{ / search:results }}

Which obviously makes sense as there's no scope limitation to the search.

@humanjpg

This comment has been minimized.

Show comment
Hide comment
@humanjpg

humanjpg Dec 2, 2016

Is there any way around this?

humanjpg commented Dec 2, 2016

Is there any way around this?

@jackmcdade jackmcdade changed the title from Search Scope to FR: Search Scope Jan 10, 2017

@jasonvarga

This comment has been minimized.

Show comment
Hide comment
@jasonvarga

jasonvarga Jun 22, 2017

Member

This is kinda done in 2.6.
You can search within a collection.

Member

jasonvarga commented Jun 22, 2017

This is kinda done in 2.6.
You can search within a collection.

@jasonvarga jasonvarga closed this Jul 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment