solved list if field is not empty

blindmime
@blindmime
7 years ago
772 posts
I have this
{jrCore_list module="jrAudio" order_by="_item_id desc" limit="10" search1="audio_details != ''" template="index_audio_list.tpl"}
audio_details is a custom form field. The search1 doesn't seem to be having any effect since the list that is generated contains jrAudio submissions which both do and do not have something entered into audio_details.

What might make this work?
updated by @blindmime: 03/02/18 03:38:27PM
brian
@brian
7 years ago
10,148 posts
You want to use a LIKE operator in this instance:

{jrCore_list module="jrAudio" order_by="_item_id desc" limit=10 search="audio_details like _%" template="index_audio_list.tpl"}

That is an underscore followed by a percent sign - that means "1 or more characters".

Let me know if that works.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 11/30/17 08:31:59AM
blindmime
@blindmime
7 years ago
772 posts
That did it -- thanks!

Tags