🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>_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订阅中。视图的主要案例是去创建动态的内容列表(例如,最新新闻列表),基于内容属性的(在新闻列表,内容类型是“新闻”和按出版日期排序)