2017-09-20

猎数博客

数据挖掘,机器学习

drupal概念

作者:江航 / 2011-07-03 / (阅读 1,525 次) /



英文版的文章在这里: http://drupal.org/glossary
本文只是节选几个个人认为重要的概念,翻译一下。

Node #
A node is a piece of content in Drupal, typically corresponding to a single page on the site, that has a title, an optional body, and perhaps additional fields. Every node also belongs to a particular content type, and can additionally be classified using the taxonomy system. Examples of nodes are polls, stories, book pages and images

节点:
节点是drupal中的一块内容,通常和网站的一个页面相关,比如含有标题,可选的内容,以及一些额外的域。每个节点属于一个特定的内容类型,并且可以用分类系统进一步分类。一些节点的例子比如投票,故事,书页面和图。

NID
Node ID. The node ID is the unique identifier for each node. It can be found in the path to the node. For example, a node with path, “http://drupal.org/node/937“, has a node ID of “937”.

NID
节点ID,节点ID是每个节点唯一的身份标志,他可以在节点的路径中找到,例如,一个带节点的路径,”http://drupal.org/node/937“, 他带有的节点ID是”937”.
Content type #
Every node belongs to a single “node type” or “content type”, which defines various default settings for nodes of that type, such as whether the node is published automatically and whether comments are permitted. Modules can define their own content types; the core Drupal Book and Poll modules are two examples of modules that define content types

内容类型
每个节点属于一个节点类型或者说是内容类型,这个类型定义了这种类型节点的一些缺省设置,比如该节点是否自动发布,是否允许评论等。模块可以定义它们自己的内容类型,比如内核的Book和Poll模块都定义了自己的内容类型。

Book #
A book is a set of pages tied together in a hierarchical sequence, perhaps with chapters, sections, subsections, and so on. You can use books for manuals, site resource guides, Frequently Asked Questions (FAQs), or whatever you’d like. To use books, enable the core Book module.


书是以结构化序列方式联系在一起的页面集合。可能含有章,节,小节等等。你可以用书来做手册,网站资源导航,FAQs或者其他任何东西。要使用书,需要启用内核的书模块。

Hook
A hook is a PHP function that is named foo_bar(), where “foo” is the name of the module (whose filename is thus foo.module) and “bar” is the name of the hook. Each hook has a defined set of parameters and a specified result type

钩子
钩子是一个命名为foo_bar的php函数,其中foo是模块的名字(文件名为foo.module),bar是钩子的名字。每个钩子都有预先指定的参数类型和返回值类型。

i18n
Numeronym for internationalization, replacing the 18 middle letters with “18”. Internationalization refers to enabling translations and other-language support (including alternate character sets and right-to-left rendering) in computer systems

i18n
国际化的简称,18表示单词国际化中间的18个字母,同理l10n是本地化的简称

Menu #
In Drupal, the term menu refers both to the clickable navigational elements on a page, and to Drupal’s internal system for handling requests. When a request is sent to Drupal, the menu system uses the provided URL to determine what functions to call.

菜单
在drupal中,菜单指页面上可以点击的导航元素,同时也指drupal处理请求的内部系统。当drupal受到一个请求时,菜单系统利用请求的URL来决定需要调用哪个函数。

Module #
A module is software (usually PHP and CSS) that extends Drupal features and functionality. Drupal distinguishes between core and contributed modules

模块
模块是扩展drupal特征和功能和软件,通常是php和css写成。drupal模块分为内核和其他模块。

Region#
Regions are defined areas of a page where content can be placed. Basic regions include: Header, Footer, Content, Left sidebar, Right Sidebar. Different themes can define different regions so the options are often different per-site. Content is assigned to regions via blocks. They can be ordered by weight within regions to define the order in which they display

区域
区域是页面内定义好的可以显示内容的块。基本的区域包括:头,脚,内容,左边栏,右边栏。不同的主题可以定义不同的区域。内容通过块(block)来显示在区域上。内容可以通过区域里的权(weight)来定义它们显示的顺序。

Story #
A story is a content type that is defined in a default Drupal installation, typically used for content that has a date associated with it, such as a news item

故事
故事是drupal缺货安装中定义的一种内容类型,通常用来表示那些有日期属性的内容,比如新闻。

Taxonomy #
Taxonomy is literally “the science of classification”. In Drupal, Taxonomy is a powerful core module that gives your sites use of “terms”, organizational keywords known in other systems as categories, tags, or metadata. In Drupal, these terms are gathered within “vocabularies.” The Taxonomy module allows you to create, manage and apply those vocabularies.

分类
在drupal中,分类是一个强大的内核模块,通过分类你的网站可以使用“词汇”,它就像在其他系统中被称作分类,标签或者元数据的可组织的关键词。在drupal中,这些词汇被收集在“vocabularies”中,分类模块允许你建立管理和使用这些词汇。

Template #
A template is a file that is mostly HTML with some special PHP code to substitute in values provided by an engine
模板
模板是一个文件,通常是HTML加上一些特殊的php代码来替换引擎提供的一些变量。

Views #
Views is a contributed module which allows site developers a simple graphical interface for modifying the presentation of content. Views permits selection of specific fields to display, filtration against various node attributes, choice of basic layout options (ie. list, full nodes, teasers, etc.), and other more advanced features. Many Drupal sites use Views extensively
视图
视图是一个非内核模块,它允许网站开发者通过一个简单的图形界面来修改内容的呈现方式。视图允许选择指定的域进行显示,对不同的节点属性选用不同的过滤器,选择基本的显示属性(比如列表,整个节点,teasers等等)以及其他的高级特性。很多drupal网站广泛的使用视图模块。

Weight #
Weight is a term used by Drupal to define the priority or order in which a function is processed or a block / node is displayed. From Drupal 6, the weight field is adjusted dynamically using a drag-and-drop interface. Note: A lower weight value (-10) will float to the top of lists, while heavier (+10) weights will appear lower in lists


drupal使用权来定义函数调用的优先级或者块/节点的显示顺序。注:小的权值(-10)将会显示在列表的上面,而大的权值(+10)将会显示在下面。



本文地址: http://www.bagualu.net/wordpress/archives/1093 转载请注明






相关文章

  • drupal hook_menu和添加一个新页面( 2,883 )
  • 用debug_backtrace来打印drupal中theme函数的调用堆栈( 2,233 )
  • drupal源码阅读方法( 2,146 )
  • drupal 6.20 安装时register_globals问题( 2,037 )
  • drupal6中theme处理流程小结( 1,888 )
  • 怎样清除drupal cache( 1,883 )
  • drupal6中的theme函数及主题结构( 1,839 )
  • 继续看theme之page( 1,818 )
  • drupal 6源码阅读(2)( 1,797 )
  • drupal 6源码阅读(1)( 1,791 )
  • Leave a Reply

    您必须登录以发表评论,

    沪ICP备11036560号
    联系我: jianghang at bagualu.net