If only one node than jCarousel View displays nothing.

pribeh - May 14, 2009 - 23:05
Project:jCarousel Lite
Version:5.x-2.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is there a way to wrap the output of the jCarousel view in an 'if' statement so that it only displays if there's any content within the view. I'm using this for user content on their profiles and for certain users the various divs (with their margins and the arrows) still show up even if they haven't yet posted any content.

Thanks, this module rocks!

#1

pribeh - May 15, 2009 - 02:28
Title:jCarousel View Shows Even with no Content» If only one node than jCarousel View displays nothing.

Sorry,

Changing title to reflect the real issue I'm experiencing: For each view (on a profile page) that contains only one node (blog) the "jCarousel lite view" shows nothing but the arrows. So, to clarify, for every user that's only posted one blog nothing displays in the jCarousel view. Is this expected default behavior or is there a way around this?

#2

pribeh - May 15, 2009 - 02:52

K, just thinking out loud here - I've modified the jCarousel-view module to display 3 nodes at a time. I use panels 2 & APK to help display uid-related view pane content. Ideally, I would find a way to print/display a regular (list-type) view if say the user has only posted 3 nodes. If a user had more than 3 nodes then the jCarousel-view would display instead. I'll try to theme this but otherwise I'm curious if there's a way to implement something along these lines within the module itself.

 
 

Drupal is a registered trademark of Dries Buytaert.