I search anything what shouldn't has result, but there is view of all items. Can I anywhere set "not found" message? (sorry for my English:-| )
I search anything what shouldn't has result, but there is view of all items. Can I anywhere set "not found" message? (sorry for my English:-| )
Comments
Comment #1
douggreen commentedYes, views has a setting for this. On admin/build/views, under the page settings set the text under the "Empty Text" fieldset.
Comment #2
PEpe commentedI made new Drupal 5.2 installation... Contributed modules: Views 5.x-1.6 and views_fastsearch 5.x-1.1.
I created View with
"Provide Page View",
Empty Text: "not found",
Filter "Node: Type > page" and
Exposed filter "Search: Index"...
I created two pages with some text... Ran cron. ... And now if I search word from text on my pages - all right - I have correct result page. But if I search anything what should return "not found", there is still full view with both pages...!
Comment #3
PEpe commentedComment #4
buddaI had the same effect, but resolved it.
Make sure your filter operator isn't set to "AND (empty all)".
Comment #5
douggreen commentedI think that this resolves your questions. You can use "AND (Empty All)" to get back no results. And you can set the text for empty results in the view.