Types of Supporting Content

In addition to content and listings of content, there are also various ways to supplement the content on the page. Two such types of supporting content included with Drupal core are comments and blocks.

Comments are merely responses by a user to a piece of content, and exist only in relation to that content. Users may post comments to add their thoughts to the subject matter within a node, as they often do when a particularly controversial subject comes up on a blog entry or forum topic. Like nodes, but to a lesser extent, comments can be expanded with contributed modules to have additional features such as ratings or file upload fields.

Comments provide a large number of options to tweak: comments can be displayed in a threaded or flat list, comments can be sorted with the newest or oldest on top, anonymous users can be allowed to or prevented from leaving comments, and if anonymous comments are enabled, contact details can be required or optional.

Blocks are widgets that fit into areas such as the sidebars, footers, and headers of a Drupal site. They're generally used to display helpful links or dynamic lists such as "Most popular content" or "Latest comments" and similar items. The users building block controls information about and access for your site's visitors; nodes take center stage displaying content; and blocks help give a single piece of content some context in the structure of your site.

Many times, blocks will display different content, depending on which user is currently logged in: a "Comments by your buddies" block, for example, might display a list of posts by users that the current visitor has added to their Buddies list. Each user who logs in will obviously see a different list. Additionally, blocks may be configured to show up only on certain pages, or to be hidden only on certain pages.

Was this article helpful?

0 0

Post a comment