class related_data_norecords on the parent div ?

lcollong

FabriKant d'applications web
Hi,

Using div template as well as faceted navigation with related data. If one row has no related data, the insider div has a "related_data_norecords" class. But I can't use it to mask the unnecessary two horizontal lines as they belong to the parent div. Don't know how to reach the parent div in this case (see screenshot). Wouldn't be helpfull if the div container (class= related) has also the related_data_norecords class ?
 

Attachments

  • Capture.PNG
    Capture.PNG
    114.9 KB · Views: 23
Hmm, that's not easy, because the heading classes are built long before we figure out the cell content.

And of course there's no "parent" selector for CSS, so you can't do it in a CSS override.

Only way I could think of doing it would be in some JS in a list_X.js file ...

Code:
jQuery(document).ready(function () {
   jQuery('.related_data_norecords').closest('.related').css('display','none');
});

... or some such.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top