知識社群登入
位置: Web Programming > 文件區 > drupal > General concepts
by 蘇德宙, 2011-04-16 21:09, 人氣(1951)
http://drupal.org/node/19828

user id=0 (guest), id=1 (admin)

assigned permissions via roles
1. create role
2. set permissions to role
3. set user to role

built in roles:
1. anonymous user: a user who is not logged in
2. authenticated user: a user who is logged in
by 蘇德宙, 2011-04-16 21:24, 人氣(1531)
Node
A node in Drupal is the generic term for a piece of content. Some examples of nodes:
1. Pages in books
2. Discussion topics in forums
3. Entries in blogs
4. News article stories

node table: nid, uid, type, title, body, comment, promote, created, changed
(using CCK module to add fields to your nodes, the field information is stored in separate tables.)

Comments
Each comment is a typically small piece of content that a user submits, attached to a particular node.

Taxonomy
Drupal has a system for classifying content, which is known as taxonomy and implemented in the core Taxonomy module.
vocabulary: groups of taxonomy terms
1. flat or hierarchical,
2. allows single or multiple selection,
3. "free tagging" (when creating or editing content, you can add new terms on the fly)
by 蘇德宙, 2011-04-16 21:41, 人氣(1241)
Drupal allows each module to define paths that the module will be responsible for
by 蘇德宙, 2011-04-16 22:20, 人氣(1419)
regions:
web page, defined by theme, includes the header, footer, sidebars, and main content section

blocks:
chunks of information that are displayed in the regions, ex.
1. menus (which are concerned with site navigation)
2. the output from modules (e.g., hot forum topics)
3. dynamic and static chunks of information that you've created yourself (e.g., a list of upcoming events)

standard menus:
Primary Links, Secondary Links (built by site administrators, and usually displayed in the page header)
and navigation (catch-all menu that contains your administration menus, as well as links supplied by modules)

custom menus:
created by user and displayed by enabling their blocks.