1

I don't want to show quicktab item when there is no content in it. But I can see empty divs in it.

 <div class="view-content">
      <div class="item-list"> 
        <ul>    
      <li class="views-row views-row-1 views-row-odd views-row-first views-row-last">
              <!-- NOTHING IS HERE SO DO NOT DISPLAY -->   
      </li>
      </ul>
     </div>
  </div>

How Can I remove the quick tab for above empty content.

1

I already checked it. But still the 'View' I assigned to that quicktab renders some div's which I posted in my question. By the way, I found the solution, you just need to add the filter in that particular view. Suppose view of content type 'movies' then add a filter "content:movies => not empty (IS NOT NULL)". That's it. Hope this help others too.

enter image description here

0

Go to Quick tabs (admin/structure/quicktabs) and edit your instance, and check Hide empty tabs option. Then Empty tabs will not be displayed.

enter image description here

  • I already checked it. But still the 'View' I assigned to that quicktab renders some div's which I posted in my question. By the way, I found the solution, you just need to add the filter in that particular view. Suppose view of content type 'movies' then add a filter "content:movies => IS NOT NULL". That's it. Hope this help others too. – user2790053 Sep 10 '14 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.