Re: [showif [numfound]=0]?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33258
interpreted = N
texte = see belowTim Robinson wrote:> Hi there,>> If there are no records found after a search, I want to display a message saying so, and I've tried this:> [showif [numfound]=0]>
> > No records found. | >
> [/showif]>> ... but it doesn't seem to work.is that [showif] fully within the confines of the [search] ... [/search] which is finding those zero records? It needs to be.>>> All the [founditems] info is below this code (for when there ARE records found). But when I perform the search and there are NO records found, it just displays a blank screen. When I view Page Source, this is all I get:is it because your entire rest of the page is within the [founditems] loop?If zero records are found then *nothing* inside the [founditems] loop will display at all. place your [founditems]....[/founditems] strategically so that the page still acts in a useful way when zero records are found.>>> ----->> > > >
Imagine Tech Knowledge Base
>>
>> >
> > Search Results |
>> > > No records found. | >
>> ----->> .... it STOPS after the [/showif] tag. Nothing else displays!>> Any ideas anyone. It would be greatly appreciated.>> Regards,> Tim>> Tim Robinson> Art Director> imagine online> tim@imagine.au.com> http://www.imagine.au.com>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
see belowTim Robinson wrote:> Hi there,>> If there are no records found after a search, I want to display a message saying so, and I've tried this:> [showif [numfound]=0]> > > No records found. | >
> [/showif]>> ... but it doesn't seem to work.is that [showif] fully within the confines of the [search] ... [/search] which is finding those zero records? It needs to be.>>> All the [founditems] info is below this code (for when there ARE records found). But when I perform the search and there are NO records found, it just displays a blank screen. When I view Page Source, this is all I get:is it because your entire rest of the page is within the [founditems] loop?If zero records are found then *nothing* inside the [founditems] loop will display at all. place your [founditems]....[/founditems] strategically so that the page still acts in a useful way when zero records are found.>>> ----->> > > > Imagine Tech Knowledge Base
>> >> >