Monday, December 21, 2009

What are conditional comments?

Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between 5.0, 5.5 and 6.0.

Deprecated XHTML Elements


This page will list the Elements and attributes that have been deprecated in the most recent version of XHTML, XHTML 1.0.

Friday, December 04, 2009

How to find which version of Drupal I'm running?


If it's available, go to Administer >> Reports >> Status report. This will list your version number if you have Drupal 6.0 or later. In Drupal 5.x and earlier, the path to go to is Administer >> Logs >> Status report.

Failing that, look for a file called CHANGELOG.txt in the root of your Drupal directory and open it up to find the version you are running.

If CHANGELOG.txt is missing, you can also check in system.module for a line at the top like:

define('VERSION', '5.5');

If this is present, it will tell you which version you are running. If not, you have a version earlier than 4.7.2.

What are the content types associated with core Drupal modules?



Blog Entry
A Blog (short for weblog) is an online journal or diary, and the core Blog module allows registered users on your site to create their own blogs.
Book Page
Book pages are designed to be part of a collaborative book, enabled by the core Book module.
Comment
Comments actually aren't nodes, so Comment is technically not a "content type". Enabling the Comment module allows site visitors to add comments (typically short notes and replies to other comments) to nodes on the site.
Forum
A Forum node defines a topic for a forum discussion; people can reply to the topic by using comments. Forum nodes are organized into subject areas via a Taxonomy (list of categories).
Page
The Page content type is enabled in Drupal in the default installation profile. Typically Pages are used for static content that can (but are not required to) be linked into the main navigation bar.
Poll
A poll is where a multiple choice question is asked, and users can answer and see other people's answers to questions.
Story
The Story content type is enabled in Drupal in the default installation profile. Stories are generally used for information whose relevance decreases as time passes (such as news items), so that newer Stories will typically be placed higher on the page than older Stories.

What are the five main layers in the Drupal system?

1. Data (Nodes, etc)

At the core of the system is the big bucket of nodes—the data pool. Before anything can be displayed on the site, it must be input as data

2. Modules

Modules are functional plug-ins that are either part of the Drupal core (they ship with Drupal) or they are contributed items that have been created by members of the Drupal community.

3. Blocks & Menus

Blocks often provide the output from a module or can be created to display whatever you want, and then can be placed in various spots in your template (theme) layout.

4. User Permissions

This is where settings are configured to determine which things different user types have access to.

5. Template

This is made up predominately of XHTML and CSS, with some PHP tokens sprinkled throughout to insert content from the system into the correct spots.