06.05.2013 Views

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Drupal</strong> <strong>and</strong> <strong>JavaScript</strong><br />

Nodes<br />

Visually speaking, blocks typically show up as small bits of content. Nodes, in<br />

contrast, can be thought of as the big pieces of content. Stories <strong>and</strong> pages—the two<br />

types of content enabled by default in <strong>Drupal</strong>—are both types of nodes. Their role is<br />

to hold <strong>and</strong> display large pieces of textual content.<br />

In fact, that is the general purpose of a node: It encapsulates a piece of content<br />

(usually a piece of text) <strong>and</strong> also provides additional information about that content.<br />

Nodes typically have a body <strong>and</strong> a title. A node also tracks information about the<br />

version of the node, the owner, creation date, <strong>and</strong> publishing state of a node. In short,<br />

any information about that content is attached (in one way or another) to a node.<br />

Most of the node information is stored in built-in <strong>Drupal</strong> tables in the<br />

database. But custom node types can be defined either programmatically<br />

(in code) or using modules such as the CCK (Content Construction<br />

Kit). In such cases, information is indeed attached to a node, but the<br />

underlying data storage mechanism is usually not limited to the built-in<br />

<strong>Drupal</strong> node table. Data may be spread out in the database.<br />

Let's take another look at the screenshot we saw earlier:<br />

Right in the center of the page is the node object. In this case, it is a Page node<br />

created by clicking on the Create content link visible in the Navigation block<br />

on the left side, followed by clicking on the Page link.<br />

[ 22 ]<br />

This material is copyright <strong>and</strong> is licensed for the sole use by Richard Ostheimer on 18th June 2009<br />

2205 hilda ave., , missoula, , 59801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!