I have a jcarousel block view that shows image fields of a current node. The problem is that the view always returns a row, even if the node in question doesn't have any image fields. As a result the view is shown on a node page and there is an empty image.
I attached an image where the html created by the view can be seen. The li element is there but it is empty. The same behavior occurs with other themes so it shouldn't be a theme related issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | jcarousel-empty-rows-1525332.patch | 625 bytes | rickdonohoe |
| #6 | jcarousel-empty-rows-1525332.patch | 625 bytes | rickdonohoe |
| ScreenShot302.jpg | 157.56 KB | jaakko |
Comments
Comment #1
knalstaaf commentedSame here, D7.14.
It remains an issue I guess, but there is an easy workaround:
Comment #2
knalstaaf commentedComment #3
krishanchandra commentedThanks this work for me.
Comment #4
simone960 commentedGreat Thanks @knalstaaf ! It works perfectly.
Comment #5
rickdonohoe commentedThis patch checks if the first row is empty, and if so doesn't output the jCarousel ul and anything within it.
Comment #6
rickdonohoe commentedThis patch checks to see if the first row is empty, and doesn't output the
and it's child elements if it is.