Drupal 7: Views Slideshow Tutorial Drupal 7 :Views Slideshow 模块教程

来源:互联网 发布:网际网络转换器 编辑:程序博客网 时间:2024/05/17 08:47

What 目的
Use the Views Slideshow module to create a slideshow of 900×200 images.
用这模块做个900乘200的幻灯片


Installation 安装

Modules 模块

Chaos tool suite (ctools) 

Views 

Libraries 

Views Slideshow 


get Drupal 7 version even if still in alpha


jQuery Cycle

download jquery.cycle.all.js rename it jquery.cycle.all.min.js and move it to /sites/all/libraries/jquery.cycle (add needed folders)


Create content type 创建内容类型

name it “Slide”
add image field “Slide Image”
Create image style 常见图片样式
/#overlay=admin/config/media/image-styles/add name it “slide” add “Resize” effect of 900×200


Create view 创建 View

name it “SlideShow”

/#overlay=admin/structure/views/add select type Slide uncheck Create a page check Create a block select Display format Slideshow of fields Continue and edit button


Add image field
add field Content: Slide Image uncheck Create a label Image style: slide (it's the image type we created previously)
Configure slideshow
under FORMAT, next to Format: Slideshow, click on Settings configure as you wish


Show slideshow block 设置区块

/#overlay=admin/structure/block find it under Disabled and assign it to a region
Notes

the“image style” will create resized images in /sites/default/files/styles/slide/public. It's especially useful if we use images from an existing content type because the original images won't be touched.


Reference 引用
http://www.brightwebsitedesign.com/how-to-install-views-slideshow-moduleon-drupal7