Upload nhiều Image trong Drupal với Plupload.module

Upload nhiều Image trong Drupal với Plupload.module

One of our students was setting up a photo gallery and asked:

"I was wondering what module you think would best enable my site members to upload multiple photographs at once."

These are several ways to do this with Drupal. We're going to show you one option that uses a script called Plupload.

Multiple image uploads by default

It is possible to allow a basic multiple image upload feature in Drupal without adding any modules.

When you create a default image field, simply set the "Number of values" to more than 1.

However, it will still be fairly difficult to use. When you come to add the images, the process will be this:

  • Choose an image

  • Click Upload

  • Wait for a new file upload area to appear

  • Choose an image

  • Click Upload

  • Wait for a new file upload area to appear

  • Repeat until done ...

media_1357849852382.png

Let's see if we can make that workflow easier for our users by using Plupload.

Install the modules and files

Install and enable these two modules:

We'll now to need to upload the files for Plupload.

media_1357849448426.png

  • Extract the files that you just downloaded. You'll get a folder called /plupload/

  • Browse to the /sites/all/ folder in your Drupal site

  • If you don't have a /libraries/ folder here, create one

  • Upload the /plupload/ folder into your /libraries/ folder

media_1357849610622.png

Create a new field

  • Go to Structure > Content types > Manage fields

  • Choose Image and then choose Plupload as the widget

  • All of the settings will be identical to a normal image field

media_1357848873640.png

  • Finish creating the field

  • Go to Content > Add content and create a new content item

  • You'll see a multiple file upload area as in the image below

  • To upload images, you can either drag files into the marked space or you can click Add

media_1357848962030.png

  • Add all the images you want to upload

  • Click Upload

media_1357849060752.png

  • You'll see a small progress bar:

media_1357849081119.png

  • You'll see thumbnails of the images:

Upload nhiều Image trong Drupal với Plupload.module

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Drupal developer - PHPUnit là gì?

Drupal developer - PHPUnit là gì?

Tham gia trong lĩnh vực phát triển phầm mềm mà riêng tôi đề cập ở đây là phát triển web, dù bạn ở khâu nào, developer hay tester bạn đều thấy rằng khi một fix một bug này lại nảy sinh một bug khác, thêm feature này lại ảnh hưởng hoặc gây bug cho feature khác, ngay cả khi muốn optimize và refactor code cũng làm bạn ngại vì sợ sẽ gây ra bug đến với những function trước đó

Apple TV sẽ cho phép sử dụng bàn phím bluetooth

Apple TV sẽ cho phép sử dụng bàn phím bluetooth

Rất nhiều người dùng cảm thấy khó chịu khi sử dụng điều khiển từ xa quá đơn điệu trên Apple TV. Tuy nhiên trên bản cập nhật tiếp theo, Apple TV đã cho phép dùng bàn phím Bluetooth để việc trải nghiệm trở nên dễ dàng hơn.

Google Adwords - chia sẻ 10 lỗi mà Google thẳng thừng disapprove

Google Adwords - chia sẻ 10 lỗi mà Google thẳng thừng disapprove

Việc phải mò mẫm để sửa và tiếp tục chờ approve sẽ khiến công việc trễ nãi và làm bạn mất nhiều thời cơ vàng ngọc.

Công ty diệt chuột T&C

 

Diet con trung