Anh thế hồng cho em hỏi về cách tạo cck field.

1. cách viết một cái CCK field như thế nào, e đọc và làm theo link này http://drupal.org/node/342987 nhưng vẫn chưa được, a có link nào hướng dẫn cụ thể hơn ko?
2. Viết một CCK field sử dụng các CCK field của drupal như thế nào?

Comments

Nhức đầu quá rùi a ơi... :(

Tóc rụng hết rùi... :(

hook_field của CCK hoạt động thế nào?

E đã tạo được 1 field với 1 value được lưu vào database rùi.
Nhưng sau khi e tạo 1 field có 2 trường cần lưu vào database thì ko thể được.
E dựa trên module text của CCK nhưng không hiểu cơ chế lưu dữ liệu vào database như thế nào? Có phải hàm hook_field với tham số $op, dùng để lưu('insert', 'presave'), 'load' dữ liệu ko a?

Tham khảo hook_field() của

Tham khảo hook_field() của module text. Còn lưu vào DB, tham khảo kỹ hook_field_settings().

Thế Hồng

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.