HOW TO INSTALL & SETUP VIEWS SLIDESHOW MODULE ON DRUPAL7?
Today I gonna show you how to install and setup the amazing views slideshow module on Drupal7.
This tutorial is now uptodate with latest modules!!!
(1) Required Modules (Version: Drupal7.0)
- Views (7.x-3.0-beta3)
- Views Slideshow (7.x-3.0-alpha1)
- Chaos tool suite (7.x-1.0-alpha4)
- Libraries (7.x-1.0)
- Link Field (7.x-1.0-alpha3)
- Token (optional) (7.x-1.0-beta1)
(2) Install the Modules
In Drupal7 you can install modules from the admin section, but I still feel this new feature doesn't have any meaning, because we have to search for the module link in the Druapl site and then copy paste into the admin module installation area, really crazy. It would have been so good if they would have made it something like wordpress a small search feasture. Anyway I just gonna download and istall it in the old way (I still recommend this old way).
Download all the modules from Drupal site and install in the directory yoursitename/sites/all/modules.
Go to http://www.yoursitename.com/node#overlay=admin/modules and enable these modules as below;
(1) Views (2) Views UI (3) Views Slideshow (4) (5) Chaos tools (6) Link (7) Libraries (8) Token (Optional)
(3) Create Image Cache
In Drupal7 imagecache is part of core module and is named as Image styles. So let's create two image cache from here, one for the full size slider image and other for the thumbnail image. In this tutorial I use 935x293 (pixels) dimension for the full size slider image and 210x100 (pixels) dimension for the thumbnail image. Note: These configurations csn be defered depends on your needs.
* Fullsize Slider image settings
Go to http://www.yoursitename.com/node#overlay=admin/config/media/image-styles and click on the add new style link
(1) Give an Image style name and click on create new style button
(2) On the next configuration screen select new style you want and then click add button (In this tutorial I choose resize style)
(3) On the next screen set the width and height and click on the add effect button. (The settings may vary depend on the style you choose). I set width as 935 and height as 293 pixels.
Do this same process for the thumbnail image too. (for the thumbnail image dimension, I set width as 210 and height as 100 pixels.)
(4) Create New Content Type
Let's create a new content type, From the dashboard menu bar cick on Structure and then content types then click on the add new content type link.
(1) Give a human-readable name, I named it as Featured Slider (machiine name will be auto generated based on the human readable name)
(2) Give a brief and relevant description
(3) Submission form settings, I leave as the default settings
(4) Publishing options, I checked only published (all other settings unchecked)
(5) Display settings, I have unchecked the authour and date info.
(6) Comment settings,I set hidden (disabled)
(7) Menu settings, I leave as default settings.
(8) Click Save and add fields Button
(5) Create New Fields
Here in this example I create only two fileds, and they are image field and link field.
We will use image field for uploading our slider image and link field for creating a custom link where we want our slider to be linked.
Image Field Settings
(1) Label: Slider Image
(2) Field: slider_image
(3) Field type: image
(4) Widget (form element): image
(5) Click Save button, and on the field settings page leave default settings and click on Save field settings button.
(6) On the image field configuration settings page you can configure as you wish.
I set this field as required, I added a file director name called slider-image so that this images will be arranged sperately from other images.
You can set the maximum upload size and resolution here, I have anabled alt and title field and finally click Save settings button.
By using same method create the link field too.
Link Field Settings
(2) Field: slider_link
(3) Field type: link
(4) Widget (form element): link
(5) Click Save button,
Image field
Link field
Body field (you can even remove this field if not necessary)
I have set the link field as hidden and I have also set image label as hidden

(6) Create Feature Slider Content
I have created four featured slider content for this tutorial.
(1) Click on add content link
(2) Create Featured Slider content
(3) Give a proper title name
(4) Upload slider image
(5) Give alt and title field names
(6) Give a link title and url where you want the slider to be linked
(7) Leave all othe settings as default except for the path field if yo want you can give an SEO friendly URL alias.
(8) Save the content.
Same way create more Featured Slider contents (I have created four contents)
(7) Create a New View
Now it's time to create our new Slideshow view.
From the Dashboard menu click on the Structure and then click on the Views.
(1) Click add new view link
(2) Give view name, I have named as Featured Slider (machiine name will be auto generated)
(3) Give an apropriate view description
(4) Choose Show Content of type Featured Slider (your content type name).
(5) Uncheck Create a Pge and check Create a block
(6) Type in Block title and choose display format as "Slideshow" of "fields" items per page 5 (you can enter the number of items you want to display)
(7) Click the button "Continue & edit"
Views Field Settings
First let's add link field (link must be the first field in order to work everything properly) so click on the add icon and from the filter Groups select Content
Add Content: Link, Click "Add & configure button" in the next cofiguration window uncheck "Create a label". "Check" Exclude from display.
Click "Apply button"
Next let's add image field, so click on the add icon and from the filter Groups select content
Add Content: image field (Note: make sure you choose the image field which we crerated for this slider content type only.)
Click "Add & configure button" in the next cofiguration window uncheck "Create a label".
Formatter: Image (if you have installed Colorbox or lightbox you can choose them here!)
Image Style: Fullsize (Choose the imagecache you have created in the above step)
Link image to: Nothing
Style Settings: Leave default settings
No result behaviour: Leave default settings
Rewrite Results: Check Output this field as a link
Link path: [view_node] (Note:Scroll dow a bit and you can see replacement patterns created by Core Token module, (if we didn't set the link field as first we can't see link field option here) copy only [view_node] then scroll up and paste it in the link path field.)
Click "Apply button"
Finally we need one more field for the thumbnail, so let's click on the add icon and from the filter Groups select Content
Add Content: image field (Note: make sure you choose the image field which we crerated for this slider content type only.)
Click "Add & configure button" in the next cofiguration window uncheck "Create a label" and CHECK EXCLUDE FROM DISPLAY,
Formatter: Image (if you have installed Colorbox or lightbox you can choose them here!)
Image Style: Thumbnail (Choose the imagecache you have created in the above step)
Link image to: Nothing
Style Settings: Leave default settings
No result behaviour: Leave default settings
Rewrite Results: Check Output this field as a link
Link path: [view_node] (Note:Scroll dow a bit and you can see replacement patterns created by Core Token module, (if we didn't set the link field as first we can't see link field option here) copy only [view_node] then scroll up and paste it in the link path field.)
Click "Apply button"
Views Filters Settings
In views3 the filters are created in the beginning while we choose the content type and other settings! If you need any additional filetering you can create it here!
Views Style Settings
Click on the Format Slideshow | settigs and on the next configuratioin window set as below;
(1) List type: Unordered list
(2) Wrapper class: Leave default settings
(3) Style> Skin: deafult
(4) Slides> Slideshow type: cycle
(5) Cycle options
You need to download jQuery cycle plugin and copy jquery.cycle.all.min.js to sites/all/libraries/jquery.cycle You can find the plugin at http://malsup.com/jquery/cycle.
IN SIMPLE ENGLISH
Create a folder named "libraries" in the site/all directory and then create an another folder named "jquery.cycle" in that directory and finally copy and paste only the "jquery.cycle.all.min.js" into this directory.
(6) Transittion: Fade
(7) Action: pause on hover
(8) Internet Explorer Tweaks: default
(9) Widgets: You can choose either or both Top and Bottom (I choose bottom here, and the advance settings as below;)
(10) Bottom Widgets>Pager>Pager type: Fields
(11) Pager field: Content: Image (Note: last one we added for the thumb, don't mistake since both field will be named same.)
(12) Activate Slide and Pause on Pager Hove: checked, controls and slider counter leave unchecked.
(13) Click Apply button.
Format Show Field Settings
- Inline fields: Choose the thumbnail field as inline.
- Click Apply button. (Note: Well it actually doesn't change much in appearance but it does change in the code. Next step use the firebug and find the class and add some styles to display properly.)
(8) Create a Custom Region (optional step)
(1) On your thems folder open the your_theme_name.info file and add a new region like this shown below;
regions[featured_slider] = Featured Slider and save the .info file.
(2) Open your themes page.tpl.php file and add these code where you want your slide to be displayed as shown below;
<?php if ($page['featured_slider']): ?>
<div id="featured-slider">
<?php print render($page['featured_slider']); ?>
</div> <!-- End Featured Slider-->
<?php endif; ?>
You can even create custom front page template like page--front.tpl.php so that you do't need to make any changes to the default page.tpl.php template.
[9] Enable & configure the Block
Now this block will be visible in the blocks disabled area, so from the Dashboard menu go to Structure>Block and enable the block to a themes default region or the custom region we created (featured_slider). (Regions varies depends on the theme you are using.)
Block Configuration Settings
After enabling the block you get a link to configure the block so click on the Configure link and on the settings section set as below;
(1) Block title (if you don't want blobk title to be displayed just type <none>)
(2) Again you get all enabled theme specific Region settings.
On visibility setings
(3) Pages>Show block on specific page: choose Only the listed pages and type <front> so that this block will be displayed only on the front page.
CSS TIPS TO DISPLAY THUMBNAILS INLINE
Add these CSS codes to your themes style sheet to display the thumbnails inline.
.views-slideshow-controls-bottom .views-slideshow-pager-field-item { float: left; margin: 20px 6px; } Make necessary adjustments.
That's all now we have successfully created our new Views Slideshow on Drupal7. I hope yo could understand the tutorial I tried my best to explain as much as I can, if you still have doubt's comment below and I will try my best to help. The scren cast of this tutorial will be coming soon.
Play around and find the best you can in Drupal7, Best wishes.
Tutorials:
- ciril's blog
- Log in to post comments

Comments
Anonymous (not verified)
Thu, 10/13/2011 - 14:44
Permalink
images just hard listed vertically on the page
hi ciril,
i know it is a great tutorial. but why i can not display the slideshow in proper way. all images just listed vertically.
i think i've follow your tutorial step by step. i used drupal 7 right now.
please your advice.
Mark C (not verified)
Mon, 03/07/2011 - 09:11
Permalink
Views Slideshow
Thanks again for all your help with the slideshow tutorial. I'm still running into difficulties. Does [image_id} = [field_slider_image] or should it be just [image_id]? Image cycle works within the created view preview but does not appear anywhere on the front page. Path = "This display has no path". Is that correct or did I forget something. Can you export your view view so that I can see what else I might be missing. I can't figure out what I'm doing wrong. Thanks for any help you can shed on this!!!
Best Regards,
Mark c.
Mark C (not verified)
Mon, 03/07/2011 - 09:15
Permalink
Slideshow module settings.
Here's my view. Is there anything I might be missing???? It does not show up anywhere on my site. :( [...............]
rpruitt625 (not verified)
Wed, 03/16/2011 - 10:01
Permalink
Tutorial Question
I got myself confused on Step 6, #6 --
(6) Create Feature Slider Content
I have created four featured slider content for this tutorial.
(6) Give a link title and url where you want the slider to be linked
For some reason I'm not grasping the 'url where you want the slider to be linked'. Could someone take pity on this poor soul and explain this a bit more?
ciril
Wed, 03/16/2011 - 12:52
Permalink
Please read the tutorial with more patients
Please read the tutorial with more patients,
"(6) Give a link title and url where you want the slider to be linked"
This is the link field we have created with new content type. So you can use this link field to specify a particular linkwhere you want your slider to be linked.
For example;
You have a site where your slider is working and you have another site or another page that is not within drupal and you want one of your slide to link to that page or site. What do you do then?
Because by default the slider links to its on node and when a user clicks on the slider it takes the user to the default slider page.
And that's why we create a llink field.
Hope you got the idea.
Rahul (not verified)
Tue, 03/22/2011 - 05:34
Permalink
Work
Hi,
I loved this post. This post is much better than the earlier posts. It would be great if you can post videos too.
Alex (not verified)
Tue, 03/29/2011 - 01:09
Permalink
I have Problems with Step
I have Problems with Step 5
Link Field Settings
(1) Label: Slider Link
(2) Field: slider_link
(3) Field type: link
(4) Widget (form element): link
(5) Click Save button,
somehow I cannot select the field type: "Link", its simply not there :(
would really appreciaty any help, thanks
Alexei (not verified)
Wed, 03/30/2011 - 07:57
Permalink
Problem with step nr5
Hello I had problems with step 5.)
Link Field Settings
(1) Label: Slider Link
(2) Field: slider_link
(3) Field type: link
(4) Widget (form element): link
(5) Click Save button,
I simply dont have the field type link, dont know why. Here is a screen to my drupal installation:
http://666kb.com/i/bs71j806sen6zhwig.jpg
Anyone has a solution for this, I really wanna use this module but cant right now :(
Thanks, Alex
Alexei (not verified)
Mon, 04/04/2011 - 10:30
Permalink
Sorry already solved the
Sorry already solved the problem by myself, forgot to install the link module :)
Evan (not verified)
Thu, 04/07/2011 - 16:15
Permalink
You must install the Link
You must install the Link field module in order to see this choice.
Anonymous (not verified)
Wed, 06/01/2011 - 02:25
Permalink
This tutorial is GREAT !!!
This tutorial is GREAT !!! THX !!!
Lars Olesen (not verified)
Thu, 03/31/2011 - 04:46
Permalink
Example?
Do you have a working example of views_slideshow, you just described?
ciril
Sun, 04/03/2011 - 14:26
Permalink
Checkout my Protfolio pages
Checkout my portfolio pages, you can see how I have use views slideshow module.
The Screen shot I have given is one I am being developing for Wacom and the project is still under development. Once it's done I will post the URL here.
Best Wishes
Melissa (not verified)
Fri, 04/01/2011 - 08:37
Permalink
STUCK.
I followed all of your instructions through step 8. Everything was working great,although my thumbnails were below the bigger images, I noted others has experienced. So ... I have created the view and I just cannot for the life of me figure out how to actually make it active on my site. I tried to alter my .info & .php files to create a custom region but I don't think I did that part right. Regardless, when I go to Structure>Block I cannot find the view to enable it. I am sure I must be missing a simple step. I am new to Drupal so my troubles are most likely due to my newbieness. Any ideas?
ciril
Sun, 04/03/2011 - 14:28
Permalink
Make sure that you have created a block display
Make sure that you have created a block display in the step 7.
Read the tutorial again properly and more patiently you will get it right.
Best Wishes
Anonymous (not verified)
Wed, 04/13/2011 - 14:33
Permalink
step 7
my views is different in
Step 7
(4) Choose view type as node and click Next button.
When i Click on Add New Vews is see the following...
View name:________________
Description (chekc box)
Show: Content(drop down) of type All(drop down) ArticleBasic page tagged with:
Create a page (check box)
Create a block (check box)
Alexei (not verified)
Mon, 04/04/2011 - 16:09
Permalink
Point (7) add new view
I have problems with point (7), my add new view field looks like this:
http://666kb.com/i/bscg6cro8l7nk25so.jpg
it should look different for the settings in this tutorial, have I done something wrong, if yes what exactly?
Thank you very much for you help, Alex
ciril
Sat, 04/16/2011 - 14:50
Permalink
You are using views3
it's because ou are using the latest views3 module. At the time I was writing this module views version was diferent. I will update it soon with the latest one. How ever the procedures are same to setup.
Best Wishes
subpixel (not verified)
Tue, 04/05/2011 - 11:32
Permalink
URL Links
Ciril,
Thanks for a great tutorial!
I was able to get everything working except for the link. When I display the link in the slideshow it shows the URL i enter when I made the content and links to the right page, but when I click on the image itself, it only shows the following
Fields%3A%20field_slider_link
I am assuming it is related to the views setup, but I can't seem to get it to link right. Any suggestions?
Best Regards,
Subpixel
Shameer (not verified)
Tue, 04/05/2011 - 18:11
Permalink
Content on Image
Thanks ciril,
Many thanks for you great tutorial for Slide show with D7.
It is worked for me successfully. But still the body content are showing below the image, But I needs it to be display over the image. Please Update me how I can do this ?
Thanks in advance
ciril
Sat, 04/16/2011 - 14:52
Permalink
Use CSS to position your body field
Dear Shameer,
Use CSS to float the body field and position it to exactly to fit for your theme.
I hope you now how to manage CSS well.
Best Wishes
iS (not verified)
Sun, 04/10/2011 - 07:00
Permalink
Your Views interface looks
Your Views interface looks different than mine. I also use D7, somehow there's no + icon or else in my Views interface's navigation. Any clue? TIA
ciril
Sat, 04/16/2011 - 14:53
Permalink
You are using views3
it's because ou are using the latest views3 module. At the time I was writing this module views version was diferent. I will update it soon with the latest one. How ever the procedures are same to setup.
Best Wishes
iS (not verified)
Sun, 04/17/2011 - 20:02
Permalink
Ah, I see. Everything is in a
Ah, I see. Everything is in a drop-down 'Ajax' menu now. Thanks a million Ciril .. :)
Anonymous (not verified)
Tue, 04/12/2011 - 07:41
Permalink
Create new View
hey there am new to drupal and i have all the modules installed and enabled but am stuck on (7) Create a New View and all the options you got is not visible in my views option. by the way am using Views 7.x-3.0-beta3 hope u can help...
NotNotCow (not verified)
Thu, 04/14/2011 - 05:19
Permalink
The move to Views 3 has me a bit confused
Hey Ciril,
Great tutorial! I've been following along, and it's all good until we get to View style settings.
Basically the move to Views 3 means that the screenshots and some of the instructions are a little out for Drupal 7. I was wondering whether you'd mind translating the last couple of bits with the Views UI changes in mind for all of us drupal newbies?
Specifically, I'm having trouble finding the "Views Style Settings", iin the new UI.
I'm pretty desperate to get this working, so any help would be fantastic!
Keep up the good work.
Gerry (not verified)
Sat, 04/16/2011 - 13:59
Permalink
Add: Caption and Read More Link to each slide
Thanks for your tutorial which is very helpfull. I have used ddblocks in the past which there is an option to add a caption to each slide. Also there is a Read More Link/image that gets attached to each slide. This makes it more intuitive for a site visitor.
Can this functionality be replicated in views slideshow.
Thanks
ciril
Sat, 04/16/2011 - 14:58
Permalink
You can add all the field you want but have to
You can add all the field you want but have to play around a bit with CSS to position all the field to fit into your slideshow.
You can add title, teaser, read more field in addition to image, but to display it correctly you have to adjust CSS styling.
Tip: If you don't know much about CSS, checkout some similar slideshow you wanna create from the web and dig into their CSS code and try to implement similar settings.
Best Wishes
Anonymous (not verified)
Wed, 04/20/2011 - 14:40
Permalink
Thank You
Thanks Ciril,
I just created a views slideshow and used the ddblocks plugin and yes I followed your Tip. This is a D6 site http://stanislausbandra.in
Naren (not verified)
Thu, 05/12/2011 - 20:14
Permalink
Thanks A Billion
Hi,
Thanks a lot for your tutorial. It works!!!
I started on this since last night and spent about a good 10 hrs (PS: I am a newbie to CSS, HTML and Drupal). Did not even know what an image cache is.
For all those who come after me:
My config: Drupal 7
Some points:
(1) On step 7 - Choose Panel
(2) A lot of settings come up on the bottom half of the config panel.
(3) I think the portion about adding the [Entity_ID] may leave some confused. Remember you absolutely have to add the link-field first. After that when your adding the image field you can copy and past the [your-link-field-name-here]=Content:your-link-field into the link path for the image
Some other points
- if you fail at first, try again. repeat all the steps one by one. It took me 3x to get everything to work
- if your system starts to go wierd (Ajax crashes) refresh your cache
Thats it and good luck
Naren
Melbourne, Australia
Pages