KIT.module giúp thực hiện tốt Drupal Features

KIT.module giúp thực hiện tốt Drupal Features

KIT: Best Practices for Making Drupal FeaturesSo you're building a Drupal Feature! Woohoo! Okay, so…. What to include? What to leave out? How to structure the thing so it doesn't conflict with other Features? How to avoid known issues? Where to start?

When, in theory at least, you can make an entire site into one big Feature, these questions become extremely important.

If you're using Features simply to help facilitate your own site-building workflows, this may be something you can pretty much ignore. When dealing with Features you've made for yourself, you may remember your thinking, you may follow your own logic, you may be using Features as a blobby deployment system for all kinds of stuff glommed together. Whatever works. It's all good.

But that approach won't fly with publicly shared Features. In fact, it won't work too well for teams either, probably. Without best practices, clearly laid out and understood by all, Features can trend towards amorphous nightmares. Features might conflict with each other, undoing each other. Improperly utilized, Features can easily become a nightmare that slows you down, undoes your hard work, and leaves you ready to scream and throw your computer out the window.

Enter KIT

The KIT Specification clearly lays out requirements for building clean, discrete Features.

This document provides recommendations and requirements for Drupal features to ensure the interoperability of features between different distributions and prevent conflicts between features themselves and between a compliant feature and a distribution….

KIT Feature Specification 1.0-draft

The specification goes through terminology, namespaces, inclusion of user roles and permissions (and what not to include), working with variables, paths and menu items, blocks and dependencies.

Not all Features have to be KIT compliant, of course. But having a good, clear specification for self-contained Features that mostly likely will not break other things in your site is a great thing.

If this topic interests you, be sure to visit the KIT issue queue, where there are several discussions on clarifying, adjusting and improving the KIT spec. Good stuff is happening.

 

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ả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

 
Google sitelinks vẫn còn là bí ẩn thú vị

Google sitelinks vẫn còn là bí ẩn thú vị

Google sitelinks luôn là bí ẩn thú vị dù đôi khi mang đến phiền toái. Rất nhiều bài viết, thảo luận từ các chuyên gia SEO, nhà quản trị web từ xưa đến nay về Google sitelinks cũng chỉ dừng lại ở mức… phỏng đoán (SEO nói chung cũng luôn bí ẩn, nhưng ít ra Google đã chia sẻ tài liệu và rất nhiều bài viết chi tiết về từng khía cạnh trong đó).

Bài 5:Học sinh lập trình Scratch - Làm quen với biến

Bài 5:Học sinh lập trình Scratch - Làm quen với biến

Bạn đã làm được hai trò chơi: “Mèo nhí diễu hành” và “Dơi bắt chuột, chuột ăn chuối”. Bạn nên hướng dẫn cho bé tự làm từ đầu thật thạo hai trò chơi đó trước khi chuyển qua bước tiếp theo

Facebook bị đăng những hình ảnh khiêu dâm

Facebook bị đăng những hình ảnh khiêu dâm

Facebook, mạng xã hội lớn mạnh toàn cầu vừa bị virus tấn công. Những hình ảnh khiêu dâm và bạo lực đã được phát tán trong hơn 24 giờ qua. Facebook đang tiến hành điều tra và chưa có thông báo chính thức về việc này

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

 

Diet con trung