>_Last updated March 22, 2015. Created on April 1, 2005._
_Edited by dcdenison, jencalbear, pbulebar, lgerndt. Log in to edit this page._
_最后更新2015年3月22日。創建于2005年4月1日。_
_通過dcdenison,jencalbear,pbulebar編輯,lgerndt。_
>This page discusses some general concepts that will be useful as you begin to explore Drupal. For more details on these concepts you may follow the links to additional documentation.
本頁將描述一些你開始探索Drupal的用法時使用的基本的概念,對于更多的描述,你可以跟著相應的鏈接,了解更多的細節
>##Node (Content)
##節點
>A node is the generic term for a piece of content on your web site. Depending on the type of node, different fields will be attached, and this is known as a content type. For example, a basic Page content type has attached fields such as title and body fields. Other examples of content type are: Book pages for use in Books, Discussion topics in forums, Blog pages in blogs, and News articles.
節點是你網站上一段內容的通用術語,根據節點的類型不同,不同的字段將被鏈接,如此你就知道了內容的類型,例如,一個基本的頁面類型鏈接了字段,例如title 或者 content,再例如 另外的內容類型 對于書中的書頁一樣,論壇中的討論話題,博客中的博客頁面,新聞中的新聞文章。
>The word "node" is not meant in the mathematical sense as part of a network.
節點這個單詞并不像網絡中的節點的那種意思。
>For more useful materials on content administration in Drupal, see Resource Guide: Tools for Content Administration in Drupal.
他是很有用的在內容管理中,你可以看 資源管理中的Drupal內容管理工具。
>##Entity types
##實體類型
>An entity type is a useful abstraction to group together fields. Entity types are used to store and display data, which can be nodes (content), comments, taxonomy terms, user profiles, or something custom developed.
一個實體類型它是一組抽象的域,實體可以用來存儲展示數據,他可以是節點、評論、分類、用戶配置文件、甚至可以是用戶的定制開發。
>Read more about Entities in the Entity API documentation.
想了解更多的實體類型,你可以閱讀實體API文檔。
>##Comment
##評論
>Comments are another type of content you can have on your site (if you have enabled the core Comment module). Each comment is typically a small piece of content that a user submits, attached to a particular node. For example, each piece of discussion attached to a particular forum topic node is a comment.
評論是你站點中另外的一種內容(如果你的站點有這么一個核心評論模塊的話),每個評論視乎是那么一小塊用戶提交連接到一個特定的節點的內容。例如,附在論壇話題類型節點上的一小段討論就是評論。
>##Taxonomy
##分類
>Drupal has a system for classifying content known as taxonomy. This is provided by the core Taxonomy module. You can define your own vocabularies (groups of taxonomy terms) and add terms to each vocabulary. Each vocabulary can then be attached to one or more content types, and in this way, nodes on your site can be grouped into categories, tagged, or classified in any way you choose.
Drupal有一個內容分類系統被命名為Taxonomy。他是有核心的分類模塊提供的。你可以定義你自己的單詞(分類組)和為每個詞匯添加條款。每一個詞匯能夠被附加給一個內容或者更多的內容類型,用這種方式,在你的站點上的節點可以按類別分類,標簽,或在任何你選擇的方式。
>Read more about this concept in the taxonomy module documentation.
閱讀更多關于這個概念在分類模塊文檔。
>##User
##用戶
>A user is a type of entity which represents a real-world website user. By default, a user has a set of properties including their username, password, role, and e-mail address. However, they may also have other properties provided by other modules, and can be extended with new fields. For example, you could add a new "Link" field for a user's Twitter address.
用戶是一種實體,代表著一個真實的網站用戶。默認情況下,一個用戶有一系列的屬性,例如:他們的用戶名,密碼,角色,e-mail地址。然而,他們可能應該被其他模塊提供其他屬性,如此他能夠被擴展新的字段。例如,你可以添加新的"Link"字段為一個用戶的Twitter主頁地址.
>##Module
##模塊
>A module is software (code) that extends Drupal functionality. Modules fall into one of three categories:
模塊是用以擴建drupal功能的軟件(代碼),模塊分為三個類別:
>**Core modules** are those included with the main download of Drupal. These can be turned on or off without downloading additional components. Examples include Blog, Book, Poll, or Taxonomy.
**核心模塊**是包含在下載的Drupal主程序中。這些模塊是可以能夠開啟和關閉的不用下載額外的組件。例如:blog,book,poll,taxonomy。
>**Contributed modules** are downloaded from the Modules download section of drupal.org, and installed within your Drupal installation. Examples include Panels, Views or Metatag.
**貢獻模塊**他是能夠被從drupal官網的模塊的下載板塊下載的模塊,并且能夠在你的drupal程序中安裝,例如 panels,Views,Metatag。
>**Custom modules **are modules you write yourself. This requires a thorough understanding of Drupal, PHP programming, and Drupal's API.
**定制模塊**是你自己開發的模塊,他需要你通過學習drupal,php程序,還有drupal的api
>For a collection of useful materials about module development, see Module Development with Drupal.
為收集模塊開發更多的有用材料,請看drupal的模塊開發。
>##Regions & Blocks
##區域和模塊
>Pages on your Drupal site are laid out in Regions. These can include the header, footer, sidebars, and main content regions. Your theme may define additional regions.
在你的drupal網站是需要在區域上布局的,他們包括頭部,腳步,側邊欄和主要的內容區域
>Blocks are discrete chunks of information that are displayed in the regions of your site's pages. Blocks can take the form of static chunks of HTML or text, menus (which are for site navigation), the output from modules (e.g. hot forum topics), or dynamic listings that you've created yourself (e.g. a list of upcoming events).
塊是被展示在你的網站的頁面的區塊的大塊的信息的區域。他可以是文本、菜單(網站的導航用的)、輸出的模塊(例如論壇熱點)、你自己創建的動態列表(例如:即將到來的事件的列表)的html形式的靜態模塊。
>##Menus
##菜單
>There are four standard menus in Drupal 7:
在drupal7有四種不同的菜單:
>1、The Main menu is built by site administrators and displayed automatically in the page header of many themes (and if not, you can enable their blocks to display them).
1、**主菜單**是由網站管理員創建和自動顯示在許多主題的頁面頭部(如果沒有,你能夠控制他的模塊去顯示他們)。
>2、**Management** is the administration menu, and is presented in the Admin toolbar.
2、管理是管理菜單,并在管理工具介紹。
>3、**Navigation** is a catch-all menu that usually contains links supplied by modules on your site.
3、導航菜單是一個包羅萬象的通常包含在您網站的各個模塊提供的鏈接的菜單
>4、**User** menu contains links to the User account and the logout link.
4、用戶菜單包含用戶帳戶鏈接和注銷鏈接。
>You can also create your own custom menus, and display them by enabling their blocks.
你也可以創建你自己的自定義菜單,并使他們的塊顯示。
>You can customize menus in several ways, such as reordering menu items by setting their “weight” or simply dragging them into place, renaming menu items, and changing the link title (the tooltip that appears when you mouse over a menu item). You can move a menu item into a different menu by editing the Parent property of the menu item.
你可以通過多種方式自定義菜單,如排序菜單項,按“weight”或簡單的拖放到他們的地方,重命名菜單項,以及改變鏈接標題(顯示當你的鼠標在菜單項的工具提示)。你可以移動菜單項到一個不同的菜單編輯菜單項的父屬性。
>You can also add custom menu items to a menu, from the Add menu item tab of the Menu administration screen. To create a menu item, you will need to provide the path to the content.
你也能夠通過菜單管理頁面中的添加菜單的葉簽中添加你自己的菜單項,你需要向他提供相關內容的路徑。
>In all cases a menu item will only be shown to a visitor if they have the rights to view the page it links to. For example, the admin menu item is not shown to visitors who are not logged in.
在所有情況下,你能夠看到你有權限看到的所有菜單鏈接,例如管理菜單是不會現實給沒有登錄的訪問者。
>##Theme
##主題
>The Theme layer is separate from the data layer, the functionality extension layer (module) and Core. Theme controls the appearance (look and feel) of your site, or how your site is displayed, including the graphic look, layout, and colors. A theme consists of one or more PHP template files that define the HTML output of your site's pages, along with one or more CSS files that define the layout, fonts, colors, and other styles.
主題層與數據層,功能擴展,核心是分開的。主題主要控制外在表現(看到的和感覺到的),或者說你的網站怎么表現出來,包括你的圖形,布局,顏色,主題是由一個或者許多的定義了html輸出的網站頁面php模版文件,他們包含了許多定義布局,字體,顏色、和其他樣式的css。
>For a collection of useful materials for themers, see Theming and Front End Development with Drupal.
你可以找到更多有用的關于主題的素材,請參見drupal開發的主題和前段。
>##Views
##視圖
>Although not all sites have Views, most sites include the Views module because of the excellent tools it provides. Views allows people to choose a list of nodes or other entities and present them as pages, blocks, RSS feeds, or other formats. The main use case for views is to create dynamically updating lists of content (for example, a listing of latest news), based on properties of that content (in the case of the news listing, that the content type is “News” and sorted by publication date).
不是所有的網站都有視圖,但是大多數網站是提供了視圖的,因為他具有很好的擴展工具,Views允許人們選擇一系列的節點或實體(Drupal7),然后把它們展示在頁面、區塊或者RSS訂閱中。視圖的主要案例是去創建動態的內容列表(例如,最新新聞列表),基于內容屬性的(在新聞列表,內容類型是“新聞”和按出版日期排序)