Hi, first of all thank you for this module, i'm using it everywhere!
I was trying to hide the whole view when no results, because controls are shown anyway.
I thought overriding style template when $rows is empty, but under "Theme: information" i get this massage:
Style output: views-view-flexslider.tpl.php (File not found, in folder sites/all/modules/flexslider/flexslider_views/theme/)
Actually, I can override style output by creating another file. However I do not know what to put inside that file, because there is no default template to copy/paste.
My view is:
Format: Fexslider
Settings: quite similar to flexslider_examples "flexslider_carousel_with_min_and_max_ranges"
Show: Fields
Content: One multivalue image field, collected from different nodes through this view
By the way, do you know a better approach?
Thank you!
Comment | File | Size | Author |
---|---|---|---|
#2 | missing-template.png | 178.33 KB | lduerig |
Comments
Comment #1
minorOffense CreditAttribution: minorOffense commentedTypically Views won't render anything if the results are empty. Ensure you have a no results behavior configured. Now if that behavior is being rendered in a slider then we have a different problem ;-)
Glad you like the module!
Comment #2
lduerig CreditAttribution: lduerig commentedI have used Flexslider Views with several sites, and encountered the same issue. It's not the end of the world, but it makes it much more annoying to manipulate the view with template.php or similar. At least for the question of whether or not there is a missing template, it isn't a matter of no results or a misconfigured view.
Comment #3
minorOffense CreditAttribution: minorOffense commentedRight, it does need a file there. Any chance you can come up with a quick template? Otherwise it'll have to wait until the next time I can take time to write code for FlexSlider.
Comment #4
minorOffense CreditAttribution: minorOffense commentedI've changed the rendering flow from Views. It now uses all the stock templates found in the FlexSlider module so no need for a custom template anymore.