Greetings,

Hi, I decided to use Jquery Cycles plugin for a small image showcase. After making this choice, I went about figuring out how to implement my idea into one of my drupal sites.

First I decided to try and do it the Drupal way I guess and downloaded all these java library plugin modules, then views, then image field, then cck, and followed a tut on how to create the jquery cycler using the views module, which kind of worked and was nifty cause I could just move a block into a region, but there was always something not right.

So then I decided to just code it into my page-front.tpl since it was only on my front page anyways. I did this and it worked fine. But then I noticed a small rss feed icon on the front page and realised that I forgot to take out the views cycle block from the region and quickly took it out.

To my dismay, the picture showcase using jquery cycles thatI just manually wrote into the template no longer worked.

Just to check I added back the views cycle block and saw that my manually added element once again worked.

I assume that the views block when loaded loads the appropriate jquery plugins and libraries making the functions for my manually added jquery cycle image showcase work.

So I added into the head links to the online libraries for jquery hosted by google, and even included them into my themesettings but it still does not work. Why is this so?

This is obviously not enough information for someone to give me an answer, so what info can I provide to get some assistance. A point in the right direction would be very much appreciated.

Thank you for even reading this, have a nice day.

Daniel

Comments

aloyr’s picture

Hi, Daniel, I've done my own roll-out of the cycle plugin as well as doing it with the views_slideshow module.

On my "custom build" for a D5 site I created a simple view with 1 field "Image with link to attached node" and then added some simple js to the front page... something like this:

<script type="text/javascript">
$(function() {
  $('.view-front-slideshow .item-list ul').cycle('fade');
});
</script>

That was OK, but it didn't really do what I would like it to do. All my subsequent slideshows were done using the views_slideshow module in D6. It is way easier to do.

TIMTOWTDI, but I normally create a view with 2 fields: title and image attach: attached images, then I setup a required relationship for image attach: attached image nodes. Then under style settings you setup the style as slideshow. Setup your filters as you like and voila, you got a slideshow! :)

You may want to use views 6.x-3.x branch, which has more features. More specifically, I use the views slideshow cycle module.

As a [somewhat dated] example, you can see that working with the node body here: http://www.planolathe.org/

perl -e 'print unpack(u,";8F4@=&AE(&-H86YG92P@=7-E(&1R=7!A;\"\$*");'

mentalrage196’s picture

ok, although the custom build seems easier, its probably just better in the long run to just master the views_slideshow module, especially if I need to add and delete pictures on the fly. I will try it again...*sigh, lol, at least I can copy a new feed icon into my misc folder again, I had to make the current one transparent for the moment until the issue had been resolved...