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 |
Jump to:
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
drupal_add_js() is probably not being called due to the way that you're calling it.
#2
Had same problem, was missing add_js :-)
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.