r11 - 16 Jul 2007 - 13:57:22 - CharinyaKlakhangYou are here: SETEC Wiki >  Knowledge Web  > WebTechnologyCategory > CMS > Drupal

Drupal

drupalFirstPage.png

แนะนำ Drupal

นอกจากนี้ ยังสนับสนุนการทำงานร่วมกับ CAS(Central Authentication Services) อีกด้วย

Drupal เป็น software ประเภท web-based content management system (CMS) โดยที่เนื้อหาต่างๆและ pointer ของเนื้อหา (text) จะถูกเก็บในฐานข้อมูล ซึ่งเป็นรูปแบบ Dynamic (dynamically retrieved and composed) และแสดงเนื้อหาหรือ content แก่ผู้ใช้ทาง web browser เนื้อหาใน Drupal สามารถสร้างโดยผู้ใช้จาก individual "nodes" เช่น node "story" ผู้ใช้สามารถใส่ comment เป็นต้น ชี้นอยู่กับว่า site นี้จะตั้งค่าอย่างไร บางทีการเพิ่ม node ใหม่หรือการใส่ comment อาจจะไม่ได้รับอนุญาติได้ ในขณะเดียวกัน node หรือ comment อาจต้องได้รับการอนุญาตจากผู้ดูแลก่อนที่ node หรือ comment จะถูกแสดงผล ซึ่ง Drupal layout ("Theme") ที่เป็น default ประกอบด้วย 3 คอลัมภ์ โดยที่คอลัมภ์กลางจะเป็นส่วนของ "content column" ส่วนคอลัมภ์ทางซ้ายและขวาก็คือ "sidebar" ซึ่ง sidebar จะแสดง "block" และ Block จะประกอบไปด้วย link ที่จะชี้ไปยัง node อื่นๆ เช่น block ในการแสดงข้อความ post ล่าสุด หรือที่นิยมมากที่สุด

ถ้าหากเป็นการติดตั้งใหม่ จะมี login block, navigation block (แต่ละ site แตกต่างกันได้ ขึ้นกับ what you're doing and what privileges ("roles") you have) เช่น login block จะไม่แสดงถ้าเรา login เรียบร้อยแล้ว หรือ "most recent stories" block อาจจะไม่แสดง ถ้าไม่มี story ภายใน และ administrator สามารถ enable/disable block ต่างๆได้ จาก Admininister >> Blocks menu item.

Nodes ถูกสร้างภายใน categories เรียกว่า "taxonomies" และ Forums เป็นตัวอย่างหนึ่งของ content nodes ที่ถูกสร้างโดย category และ Categories จะมองเป็น hierarchical ที่จะมี one parent category และมีหลาย child categories


สิ่งที่ระบบต้องการ

โดยส่วนมากแล้วเรามักจะ run Drupal บน Apache web server ด้วย PHP 4 และฐานข้อมูล MySQL? ซึ่ง Drupal สามารถ run บน web servers ตัวอื่นได้ ด้วย PHP เวอร์ชั่นอื่น (PHP 5), และฐานข้อมูลอื่นได้เช่นกัน แต่ Apache/PHP/MySQL เป็นสิ่งที่คนส่วนใหญ่เลือกใช้ และระบบต้องการ

Web server

ผู้ใช้ต้องเลือก web server ต้องสามารถ run PHP scripts ได้ ซึ่ง Apache ถือว่าครอบคลุมในส่วนนี้ จึงเป็นตัวเลือกอันดับแรกของผู้ใช้ส่วนใหญ่ที่ใช้ Drupal โดย Drupal ตัวหลักใช้ Apache เวอร์ชัน 1.3.x ในการทดสอบ แต่ถ้าหากเป็นการใช้งานซึ่งเป็นที่รู้จักจะใช้ Apache เวอร์ชัน 2.0.x แต่ก็สามารถสนับสนุน Web server อื่นๆได้ เช่น IIS server (สามารถอ่านรายละเอียด การ run Drupal กับ Windows IIS server, ได้ที่นี่ http://drupal.org/node/3854 และ http://drupal.org/node/940.)

PHP

Drupal ต้องใช้ PHP เวอร์ชัน 4.3.3 หรือ มากกว่านั้น ซึ่ง PHP 5-compatible.


ชนิดของ node

Blog Entry

Blogs หรือ weblogs เป็นเหมือนการเขียน diary online ของตัวเอง ที่คนอื่นสามารถเข้ามาอ่านและแสดงความคิดเห็นได้ โดยที่ผู้ใช้จะมีพื้นที่ในการเขียน ออกมาในลักษณะของ community และไม่ต้องกังวลที่อยู่ของ topic เหล่านี้ใน web site

Book Page

Book pages ถูกออกแบบให้เป็นส่วนหนึ่งของ collaborative book. An example of a collaborative book is the Drupal developer documentation. Originally only book pages could be a part of a book but these days all node types can be part of a book.

Comment

Comments actually aren't nodes, they are their own special content type. Comments are what allow people to add comments to any other node that has been created.

Forum

Forums are sets of nodes and their comments. These are grouped together as belonging in one forum by assigning them the forum name, which is a taxonomy term. These forum names can be grouped in forum containers, which are other terms, of which they are children in a hierarchical vocabulary which is called "forums", and configured as only applicable to nodes of the "forum" type.

Page

Pages are simple nodes, typically used for static content that can (but are not required to) be linked into the main navigation bar

Poll

A poll is where a multiple choice question is asked and users can answer and see other peoples answers to questions.

Story

Story pages are the generic page type that most content management systems have. Stories are generally used for information which is only relevant for a period of time (eg. news stories) and is expected to expire off of the page.

Additional types of nodes are provided by contributed modules.

Note: A common question is "What is the difference between page and story?" The answer is not much. There was more difference originally but they are merely different node types now and how you use them is up to you.


ระดับของผู้ใช้งาน

User แบ่งออกเป็น 3 ส่วน

  1. Super user (เมื่อติดตั้ง และเข้าได้ account แรก)
  2. User ลงทะเบียน (ต้อง authurization)
  3. User ทั่วไป


สิทธิ์การใช้งาน

Super user

  • สามารถกำหนดสิทธิ์ทุกอย่างได้

User ลงทะเบียน

  • สามารถสร้างหน้า web ส่วนตัวได้
  • สามารถเขียน blog ได้
  • สามารถอ่าน - เขียน web ได้

User ทั่วไป

  • สามารถอ่าน web ได้


Module ที่คาดว่าี่จำเป็นต้องใช้

  1. blog module (default)
  2. event calendar module & views module
  3. multi lingual module
  4. photo gallery module
  5. search engine module
  6. RSS module
  7. CAS module UPDATED
  8. Attachment Module UPDATED
  9. File Maneger Module UPDATED


นอกเหนือจากนี้ยังมี (Optional)

  • Poll module
  • site map module
  • content scheduing module
  • mail form module
  • FrontPage? Module UPDATED


Reference

ผู้เขียน

hello

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r11 < r10 < r9 < r8 < r7 | More topic actions
 
Powered by SETEC Wiki
Copyright ©2012 by National Electronics and Computer Technology Center, NECTEC.
Ideas, requests, problems regarding SETEC Wiki? Send feedback