How do I make text display if there are no items in a list that meet filter criteria?

Options

I'm posting this on behalf of a client who is having trouble posting:

On this page, , a list display template is being shown three times based on different filters.

As you can tell, there are no live pages meeting the criteria to be listed as Jobs in Washington, DC or Internships in Washington, DC. When this happens, I would love for it to automatically say, "Sorry, there are no available positions."

It seems like there should be a way to use conditional statements to do this, I'm just not sure how. Can this be done? If so, what do I do?

Tagged:

Comments

  • <t:if test="length == 0">

    <p><i>No jobs found.</i></p></t:if><t:else><t:list><span class=title><a href="$">$<br></a></span><SPAN class=main><SPAN class=templateVariable

    contentEditable=false>«body»</SPAN></SPAN></p></div></t:list></t:else>

    You can edit the second line per your desired result if nothing is found.

Categories