6.x

Sử dụng hàm quá tải giao diện để thay đổi tiêu đề

Một Drupal project gần đây, có một yêu cầu là làm trang báo giá. Tôi sử dụng hai module filebrowserIMCE để giải quyết vấn đề.

1. IMCE cung cấp tính năng để người điều hành quản lý các tập tin trong một/nhiều thư mục. Đối với site này tôi chọn thư mục /sites/domain.com/files/bao-gia/ làm thư mục chứa các tập tin văn bản báo giá.
2. Filebrowser cung cấp các trang liệt kê cấu trúc thư mục/tập tin của một số path mà người điều hành có thể định trước. Đương nhiên, lúc này, tôi sẽ tạo một trang liệt kê cấu trúc tập tin/thư mục cho /sites/domain.com/files/bao-gia

Sự kết hợp không hoàn hảo, vì tiêu đề trang mà module filebrowser tạo ra quá xấu: "Displaying contents of directory %dir".

AHAH

TH cố gắng sẽ cố một bài chi tiết về AHAH trong Drupal 6.

Form API

Đang soạn...

Progress bar

Written by quicksketch: http://drupal.org/node/181741#comment-612849

The progress bar indicator is the main component of this patch. Since modules utilizing AHAH will need different approaches, we need to accommodate for all scenarios. Sample displays attached. Here are some code examples of how you would customize the progress bar used with AHAH to your liking:

Example 1. Throbber (default).

<?php
  $form
['element']['#ahah'] = array(
    
'path' => 'some/path/js',
    
'wrapper' => 'wrapper-id',
    
'progress' => 'throbber'// Optional line, throbber is default.
  
),
?>

Example 2. Throbber with message.

<?php
  $form
['element']['#ahah'] = array(
    
'path' => 'some/path/js',
    
'wrapper' => 'wrapper-id',
    
'progress' => array('type' => 'throbber''message' => t('Please wait...')), // Value is an array if multiple settings are set.
  
),
?>

Example 3. Progress bar.

<?php
  $form
['element']['#ahah'] = array(
    
'path' => 'some/path/js',?>

Drupal 6 có gì mới?

@Updted: Greg Knaddison (greggles) có thực hiện đoạn video 21' giới thiệu các tính năng mới trong Drupal 6.

Drupal càng ngày càng tốt hơn. Dưới đây là danh sách các thay đổi trong mã nguồn Drupal phiên bản từ 5 lên 6.

Syndicate content