Thêm block thời tiết vào trong Drupal Site

Thêm block thời tiết vào trong Drupal Site

One of our students is building a local tourism website. They wanted to show the local weather on the site but without any of the big, ugly branding that often accompanies weather displays.

In this tutorial, we'll show you how to use the Weather module to create a local weather block.

The Weather module works great, but it can be confusing to configure. This tutorial will walk you the set up from installation to publication.

Installation

  • Go to http://drupal.org/project/weather.
  • Download, install and enable the Weather module.

Configuration

  • Click on Configuration
  • Locate Weather in the User Interface block and click on the link
  • You’ll see a screen like the one below.
  • Observe that you have three options: Add display, Edit default display, and the option to create a directory to hold any custom images you want to use on your weather blocks.

tutuploadsmedia_1349203833286.png

  • Click on Add display.
  • You can ignore all the settings for now.
  • Click Save.
  • Click on Add location to this display as in the image below.

tutuploadsmedia_1349204335408.png

  • Select a country
  • Select a place
  • Alternative name for the selected place: This allows you to give the place a more human-readable name. For example, I selected GA - Atlanta, De Kalb-Peachtree Airport for the Place but simple wrote Atlanta in here.
  • Click Save. I found a bug at this point and had to re-enter the Alternative name for it to save correctly.

Thêm block thời tiết vào trong  Drupal Site

Publication

  • Go to Structure > Blocks.
  • Publish the block called Weather: system-wide display (#1).

tutuploadsmedia_1349204588662.png

  • Your block will now be live on your site as in the image below.
  • You can go back to Configuration > Weather and change the settings for this block. For example, I'd want to change Celsius to Fahrenheit.

tutuploadsmedia_1349204665633.png

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

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

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

 
Firefox 11 bất ngờ lộ diện

Firefox 11 bất ngờ lộ diện

“Người dùng sẽ luôn biết được những thay đổi mới nhất từ Firefox” - Mozilla đã tuyên bố như vậy và hãng đã cho thấy mình thực hiện tuyên bố này như thế nào, với việc liên tục tung ra những phiên bản mới của Firefox.

Bài 6 nodejs: I/O non-Blocking: vài linh kiện nho nhỏ

Trong bài này mình giới thiệu hai đoạn mã nhỏ cũng khá lý thú để những post sau này mình sẽ dùng cho những thí dụ về I/O non-Blocking

Một bệnh nhân ở Củ Chi đã vượt hơn 800 km ra tận Quảng Nam để xổ con sán xơ mít

Một bệnh nhân ở Củ Chi đã vượt hơn 800 km ra tận Quảng Nam để xổ con sán xơ mít

Một bệnh nhân ở TP.HCM đã vượt hơn 800 km ra tận Quảng Nam để xổ con sán xơ mít dài hơn 6 mét kí sinh trong cơ thể suốt gần 3 năm.

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

 

Diet con trung