Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Question: template when search returns no results #615

Closed
paulflo150 opened this issue Jan 25, 2015 · 2 comments
Closed

Question: template when search returns no results #615

paulflo150 opened this issue Jan 25, 2015 · 2 comments

Comments

@paulflo150
Copy link

First of all thanks for this wonderful plugin.

Is there a way to display a custom template when the search returns no results? What I would like to do is provide a basic template with some text and a button which will allow me to trigger an action (i.e.: Add a new item).

Secondly, I am limiting the number of items displayed, so I would like to be able to inform the user that only 50 items out of 200 for instance are being shown.

I can't figure out how to do this without modifying the directives.

Any help is appreciated, thanks.

@awerlang
Copy link
Contributor

If search returns some results, but none of what user is looking for, shouldn't she be able to add a new item?

Someway related to #697

@user378230
Copy link
Contributor

Dupe of No result template #831

You can also modify the theme/choices.tpl.html as necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants