• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

No items found message

Community Beginner ,
Apr 29, 2013 Apr 29, 2013

Copy link to clipboard

Copied

With all web app items disabled, how can I change the message that says "No items found."?

TOPICS
Web apps

Views

2.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 08, 2013 May 08, 2013

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,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 18, 2013 Jun 18, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 18, 2013 Jun 18, 2013

Copy link to clipboard

Copied

Have got this sorted out.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 18, 2013 Jun 18, 2013

Copy link to clipboard

Copied

Just with the module paramaters you can stop it showing up at all, then handle when it is blank.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 21, 2015 Sep 21, 2015

Copy link to clipboard

Copied

LATEST

You can do this with Liquid easily now. I've just grabbed the good stuff from this post.

  1. Add a collection parameter to your web app module and assign it a name.
  2. Include hideEmptyMessage="true" to disable the default message.
  3. Add the Liquid snippet below. Alternatively you could use if/else.

{module_webapps id="bla" collection="myCollection" hideEmptyMessage="true"}


{% unless myCollection.items -%}

     Your custom message (or whatever you want to do) here.

{% endunless %}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines