Drupal

PHP Day Con. 14th Dec 2008
     Phan Thái Trung
Best CMS
So sánh với Joomla!
Drupal                                           Joomla!
 Real multi-site-feature (only one              If you are not techy its good to start
   installation for several sites)               Easy install & setup with your mouse
 Any Kind of user groups & user                 Easy learning curve
   permissions, OpenId compliant                 Cannot integrate other scripts etc. to
 Can run membership and community                your site
   sites, not only CMS etc                       Generally you cannot create high-end
 Powerful templating system. Any                 sites, without investing huge amount
   XHTML or CSS template can be easily           No SEO out of the box, URLs are not
   converted to Drupal.                           search engine friendly.
 Drupal needs a little time investment
   to realize all the huge possibilities of      Server resources utilization is more
   Drupal                                         compared to drupal
 Clear, high quality code and API (easy
                                                 Only one site per installation
   to integrate with other solutions etc)        No Single Log-in to several sites
 Flexibility and no known limitations           No User groups & permissions
 Many high profile sites use Drupal             More intuitive administration user
   (e.g.: MTV UK, BBC, the Onion, Nasa,           interface
   Greenpeace UK, New york observer,             Some polished modules for things like
   Tamtay.vn, VietLUG… )                          calendars, polls, etc.
                                                 Modules cost you money
http://mydrupal.com/joomla-versus-drupal
http://forum.joomla.org/viewtopic.php?t=4364
Trình diễn cài đặt
 Tạo CSDL
 Chạy cài đặt
 Tạo user admin
 Chỉnh cấu hình
 Chọn Theme
Multiple - site
Các module hay sử dụng
 Content Type, CCK
 Taxonomy (Category)
 Panels
 Views
 PathAuto (SEO)
CCK
 Tạo các trường cho “node”
 Có rất nhiều module trường con (200+)
     Date
     Image
     Video
     etc
Taxonomy
   Dùng để phân loại các “Kiểu Nội dung”
    (Content Type)
Panels
                                  Panels 2: Adding a node to a
 http://drupal.org/project/   
                                   panel page
                                   Panels 2: Basic text layouts
  panels                          Panels 2: Create a node
                                   override

 Để tạo bố cục (Layout)
                                  Panels 2: Creating a mini
                                   panel and passing
                                   arguments through context

 Có thể phân chia bố cục         Panels 2: Creating a new
                                   front page with Views and

  tuỳ biến và kết hợp với      
                                   Panels 2
                                   Panels 2: Creating contexts

  các Module khác
                                   and relationships that are
                                   node type aware
                                  Panels 2: Overriding the
 Một Kiểu Nội dung cũng       
                                   node edit form
                                   Panels 2: Panels everywhere
  có thể có bố cục riêng
Views
 http://drupal.org/project/views
 Dùng để tạo danh sách nội dung theo các
  tiêu chí tuỳ ý
 Có API để cho các Module khác bon chen
 Tài liệu: http://views-help.doc.logrus.com/
Nhược điểm

 Hơi khó sử dụng (các khái niệm…)
 Không sử dụng MVC mà sử dụng Hook
  cho các hàm
 Truy vấn CSDL nhiều có thể gây tốc độ
  chậm
 Nên tối ưu (eAccelerator…)
Developer
 Module
 Theme
Code demonstration
   1’ cho quảng káo
Một số ứng dụng
 CMS
 Web chức năng
     Demo  site
     XML service
     Other
Ví dụ thực tế
 Tamtay: http://tamtay.vn
 Spirit: http://letstalkspirit.com/
Phù !!!
   Kết luận
     Tạisao ngày càng nhiều web sử dụng /
      chuyển sang Drupal
     Hãy thử 1 lần nếu bạn chưa sử dụng nó

   Hỏi đáp

02 phan-thai-trung-drupal

  • 1.
    Drupal PHP Day Con.14th Dec 2008 Phan Thái Trung
  • 2.
  • 3.
    So sánh vớiJoomla! Drupal  Joomla!  Real multi-site-feature (only one  If you are not techy its good to start installation for several sites)  Easy install & setup with your mouse  Any Kind of user groups & user  Easy learning curve permissions, OpenId compliant  Cannot integrate other scripts etc. to  Can run membership and community your site sites, not only CMS etc  Generally you cannot create high-end  Powerful templating system. Any sites, without investing huge amount XHTML or CSS template can be easily  No SEO out of the box, URLs are not converted to Drupal. search engine friendly.  Drupal needs a little time investment to realize all the huge possibilities of  Server resources utilization is more Drupal compared to drupal  Clear, high quality code and API (easy  Only one site per installation to integrate with other solutions etc)  No Single Log-in to several sites  Flexibility and no known limitations  No User groups & permissions  Many high profile sites use Drupal  More intuitive administration user (e.g.: MTV UK, BBC, the Onion, Nasa, interface Greenpeace UK, New york observer,  Some polished modules for things like Tamtay.vn, VietLUG… ) calendars, polls, etc.  Modules cost you money http://mydrupal.com/joomla-versus-drupal http://forum.joomla.org/viewtopic.php?t=4364
  • 4.
    Trình diễn càiđặt  Tạo CSDL  Chạy cài đặt  Tạo user admin  Chỉnh cấu hình  Chọn Theme
  • 5.
  • 6.
    Các module haysử dụng  Content Type, CCK  Taxonomy (Category)  Panels  Views  PathAuto (SEO)
  • 7.
    CCK  Tạo cáctrường cho “node”  Có rất nhiều module trường con (200+)  Date  Image  Video  etc
  • 8.
    Taxonomy  Dùng để phân loại các “Kiểu Nội dung” (Content Type)
  • 9.
    Panels  Panels 2: Adding a node to a  http://drupal.org/project/  panel page Panels 2: Basic text layouts panels  Panels 2: Create a node override  Để tạo bố cục (Layout)  Panels 2: Creating a mini panel and passing arguments through context  Có thể phân chia bố cục  Panels 2: Creating a new front page with Views and tuỳ biến và kết hợp với  Panels 2 Panels 2: Creating contexts các Module khác and relationships that are node type aware  Panels 2: Overriding the  Một Kiểu Nội dung cũng  node edit form Panels 2: Panels everywhere có thể có bố cục riêng
  • 10.
    Views  http://drupal.org/project/views  Dùngđể tạo danh sách nội dung theo các tiêu chí tuỳ ý  Có API để cho các Module khác bon chen  Tài liệu: http://views-help.doc.logrus.com/
  • 11.
    Nhược điểm  Hơikhó sử dụng (các khái niệm…)  Không sử dụng MVC mà sử dụng Hook cho các hàm  Truy vấn CSDL nhiều có thể gây tốc độ chậm  Nên tối ưu (eAccelerator…)
  • 12.
  • 13.
    Code demonstration  1’ cho quảng káo
  • 14.
    Một số ứngdụng  CMS  Web chức năng  Demo site  XML service  Other
  • 15.
    Ví dụ thựctế  Tamtay: http://tamtay.vn  Spirit: http://letstalkspirit.com/
  • 16.
    Phù !!!  Kết luận  Tạisao ngày càng nhiều web sử dụng / chuyển sang Drupal  Hãy thử 1 lần nếu bạn chưa sử dụng nó  Hỏi đáp