Copy link to clipboard
Copied
With all web app items disabled, how can I change the message that says "No items found."?
Copy link to clipboard
Copied
Hi,
At this stage the message cannot be changed but can be hidden using the parameter hideEmptyMessage in the module for eg.
{module_webappscustomer,webappid,criteria,item,effect,targetFrame,useBackupTemplate,resultsPerPage,hideEmptyMessage,rowLength,sort} by specifying hideEmptyMessage to be True.
Alternatively, Javascript needs to be applied to change the message.
Kind Regards,
Copy link to clipboard
Copied
Hi Rohit can you share how the javascript to change the message would look like. Please I need it for a site am working on now, and I want the message to show coming soon... in large letters, instead of the 'No items found.'
Thanks
Kind regards.
Copy link to clipboard
Copied
Have got this sorted out.
Copy link to clipboard
Copied
Just with the module paramaters you can stop it showing up at all, then handle when it is blank.
Copy link to clipboard
Copied
You can do this with Liquid easily now. I've just grabbed the good stuff from this post.
{module_webapps id="bla" collection="myCollection" hideEmptyMessage="true"}
{% unless myCollection.items -%}
Your custom message (or whatever you want to do) here.
{% endunless %}