官术网_书友最值得收藏!

Understanding content in Drupal

In order to get the most out of Drupal with the least confusion, a basic understanding of some concepts is needed; the most important of these is 'content', because we're working with a Content Management System.

What is content?

We can surely answer a simple question such as "Is a paragraph of text, content?" However, while we might consider a paragraph of text to be content, with Drupal, the answer to that question is: "It depends".

Opinions on how best to express what is, and is not, content in Drupal vary greatly. It helps if we differentiate 'content' from Drupal content. We can certainly say that 'content' is any material that makes up the web page, be it Drupal-generated content, such as the banner and buttons, or user content, such as the text of a blog. Within Drupal, 'content' has more narrow parameters.

When you create a story in Drupal, it is stored in a database as a node, and is assigned a node ID (nid). Some would say that, with respect to Drupal, content is limited to objects (stories, and so on) that can receive comments created by users, and are assigned a node id. Others say that it is any object in Drupal that can be on a page. These technical discussions can cause your eyes to glaze over. It would seem that the latter definition makes the most sense; however, there is one additional factor that we need to consider, and that is the layout of the Drupal admin functions.

Drupal provides admin functions for creating and maintaining content, and these functions list only those objects that receive a node id. Other objects, such as Blocks, which we'll cover in Chapter 6, are created and maintained elsewhere.

So, in order to avoid confusion, let's agree on the following terminology:

  • Content—will be any content on a page
  • Node Content—will be limited to pages, stories, and any other types administered under the Content Management umbrella within Drupal
  • Rich Content—will be referred to by its specific type, such as Blocks and Views
主站蜘蛛池模板: 瓮安县| 博白县| 武强县| 叶城县| 白沙| 永修县| 台北市| 游戏| 沁水县| 饶河县| 博白县| 遂川县| 连江县| 昌邑市| 惠水县| 滁州市| 伊金霍洛旗| 林周县| 乌鲁木齐市| 海盐县| 广南县| 乌拉特前旗| 梁平县| 连江县| 鲁甸县| 磐安县| 环江| 南溪县| 和龙市| 海南省| 沅陵县| 沙湾县| 湖州市| 乐清市| 宿迁市| 固阳县| 苏尼特左旗| 汤阴县| 本溪市| 英德市| 聊城市|