Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

On the home page of a site I want to list each node as an individual slideshow. Each node shown will be of the same content type. I am using views slideshow and panels if it helps.

share|improve this question
1  
What do you mean by "individual slideshow"? Views Slideshow takes a series of nodes and turns them into one slideshow. So I don't know what an "individual slideshow" would be in this context. – Patrick Kenny Jul 9 at 2:07
@PatrickKenny Lets say I have a content type called projects. Each project contains a series of images to be shown in a slideshow format. on a page I want to show: Project 1 slideshow Project 2 slideshow Project 3 slideshow etc – Kevin Howbrook Jul 9 at 6:11
Ok, then you should use Field Slideshow (which does slideshows for a multi-value field of a single node) or a similar module, not Views Slideshow. – Patrick Kenny Jul 9 at 10:19

3 Answers

first of all you need to create extra field and add some node images to that field and after that you can call a function from home page and in that function you have to write

$query = db_select('node', 'n');
  $query->join('field_data_field_slider_actve', 'sa', 'sa.entity_id = n.nid');  
  $query->fields('n', array('nid'));
  $query->range(0, 5);
  $query->condition('n.type', 'home_slider');


  $results = $query->execute()->fetchAll();
share|improve this answer

Yes it is possible to achieve this, You have to use views along with Scrollable Content

It provides a scrolling functionality for your content. Scrollable Content will give you a nice content slider preview of your site's nodes, and provides some display options.

The basic use is via blocks page, you'll find a block called "Scrollable Content" and if you want more control & you know how to use Views, you should use the Views style for Scrollable Content.

or you can check Scrollable Views , I'm using this in my website, but it no longer supported.

share|improve this answer

This has been achieved using the Fields Slideshow module.

https://drupal.org/project/field_slideshow

In views you can then select the image format for the field as slideshow, similar to colorbox.

enter image description here

This seems to be working fine for me but I am open to other suggestions

share|improve this answer
Could you please add a link and explanation why this module and how to use it? – Mołot Jul 9 at 8:20
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – monymirza Jul 9 at 8:54
@Mołot Thanks for the feedback – Kevin Howbrook Jul 9 at 9:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.