using views_embed_view does not create a carousel -

sushilmasti - May 10, 2009 - 04:39
Project:jCarousel
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,

thanks for this useful module. I have a View (unformatted, row-nodes) which I theme using my custom template file and in this file I call theme('jcarousel', $rows, $options) - this works fine when I use it as a block.

But if I try to include this view in a node-type template using views_embed_view or module_invoke for the block - I just see a bulleted list of nodes - it seems to be using the right theme files for the view but it seems the magic that the jcarousel javascript is supposed to do is not working so all the jcarousel-item etc are not set up.

Can you help please?

Thanks.

#1

Wim Leers - May 10, 2009 - 10:22

drupal_add_js() is probably not being called due to the way that you're calling it.

#2

deepM - September 30, 2009 - 20:53

Had same problem, was missing add_js :-)

#3

Wim Leers - September 30, 2009 - 21:26
Status:active» fixed

#4

System Message - October 14, 2009 - 21:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.