posts - 431,  comments - 344,  trackbacks - 0
 

相册制作

1. 使用Druapl版本:drupal-5.3.tar.gz

2. 使用到的模块:cck-5.x-1.6-1.tar.gzcustom_pagers-5.x-1.7.tar.gzimagecache-5.x-1.3.tar.gzimagefield-5.x-1.1.tar.gzthickbox-5.x-1.1.tar.gzviews-5.x-1.6.tar.gzviews_bonus-5.x-1.2-alpha1.tar.gz

3. 安装Drupal和模块:

CCK:选中ContentImageText

Core - optional:选择Upload

Image:选择Imagecache

Other:选择Custom PagersThickbox

Views:选择ViewsBonus: grid viewViews UI

4. 创建Imagecache

Administer › Site configuration选择Image cache,Preset namespace里输入squarethumbnail,点击Update preset。然后在Add a new action选择Scale,点击Update preset。然后在width里输入100height里输入100,点击Update preset。然后在Add a new action选择Crop,点击Update presetwidth里输入50height里输入50X offset里输入:center, Y offset里输入:center,点击Update preset。Preset namespace里输入display,点击Update preset。然后在Add a new action选择Scale,点击Update preset。然后在width里输入650height里输入650,点击Update preset

5. 新建一个content typeimage并编辑,Add FieldCreate new fieldnameimageField type选择ImageImage pathimage Data settings中选择Required

6. 新建一个view

Name:Gallery

Description:an image gallery

Page中选择:

Provide Page View

                URL:gallery

                View Type:Bonus:Grid View

                Nodes per Page:24

Fields中选择:

             Node: Title

                Image: image (field_image)  Do not group multiple values(Handler)

                                                                 Thickbox:squarethumbnail(Option)

Filters中选择:

             Node: Published

                Node: Type Image(Value)

下面就可以新建Image了
posted on 2007-10-31 15:33 周锐 阅读(863) 评论(0)  编辑  收藏 所属分类: PHP

只有注册用户登录后才能发表评论。


网站导航: