Nodes

Nodes are pieces of content that Drupal uses to build pages. Nodes can be pictures, stories, blog entries, etc. Node references can record node relational information.

A node has the following:

NID - the Node ID
Type - the node type, e.g. page, blog, book page, etc.
Title - the title
Content - the content
Author - the author
Version - the version
Date - the creation date
Comments - a node may have multiple comments
 

When a node is displayed on a page, by default, its layout is determined by node.tpl.php template.  A type specific template can be created, for example, node-blog.tpl.php for a node of with type "blog".  Using this technique, you can create a custom layout for each node type.

For a listing of all nodes go to /admin/content/node, where you can bulk publish and delete batches of  nodes.

 

 

 

 

 

Node Access

<to be completed>

Node Import

Import system for importing nodes.

Node References

Node references can provide a way to make the node system simulate the functionality of a relational database. For example, an Customer node could have a Custom Field that contained a list of other nodes that customer is related to, e.g. a list of Address node id's, if it were possible for a customer to have more than one Address.

Node Revisions

If create new revisions is checked under Publishing options, editing a node will create a revision of that node.  Users that have view revisions or administer nodes permissions will get a Revisions tab on node viewing pages. The Revisions tab interface supports viewing of individual revisions, reverting to a prior revision, and deleting a revision.

Here is an example that illustrates the reverting process:

  • If you have revisions {1,2,3,current}, and revert to revision #2, a copy of #2 is made and the copy is set as the current revision.
  • After reverting you'll have {1,2,3,4,current}, where current is a clone of #2, and #4 is the previous current revision.

Prior to Drupal 4.7 the node table included body and teaserfields. As of 4.7, these fields are moved into the node_revisions table.