How to Create Basic Page in Drupal 6

Let's make some modifications to the site via the admin page to confirm that everything is working normally, and to highlight how easy it is to implement very powerful features at the click of a button. We'll run through a few quick steps to get some interesting new features along with some new content on the site, and then view it all as any visitor to the site would.

Go ahead and follow these steps:
  1. Click on Modules under the Site Building category of the admin page. This will bring up a long list of modules that are available.
  2. Select Search, Poll and Blog, then scroll to the bottom of the page and click on Save configuration.
  3. Click on Create content in the main menu and then select the Poll option.
  4. Fill out an arbitrary question with some options, as shown in the following screenshot, and then click Save (don't worry about any of the other options available for now):


Click on Create content again, but this time select the Blog entry option.
  1. Fill out the fields available with any info, and click the Save button (again, don't worry about any other settings or options for now).
  2. Return to the admin page and select the Blocks option under Site Building.
Scroll down the page and make changes to the table shown in the following screenshot by dragging and dropping blocks to the desired region:


In particular, notice that the Most recent poll has the Right sidebar region selected, as does Recent blog posts. The Search form has the Header region specified and Who's online is given the Footer region.

For convenience's sake, make sure you set User login. If you don't specify a region for this block, it will not show up when you log out and you have to manually navigate to http://localhost/drupal/user/login to get back into the admin section.

For now, don't worry too much about taking this all in, we will cover it in detail at a later stage—this exercise is simply going to give us our first look at a basic Drupal web page and its layout. Once these changes are made, click Save blocks and then Home.

The site should now look something like the following screenshot (minus the numbering):


There are several main areas of interest numbered in this screenshot and we should look over them here in order to get a feel for what to expect in the chapters to come. Bear in mind that Drupal really doesn't impose many limitations on where and what you can place on any part of a web page, so the following explanation is really only a guide:

1. The page header contains your site's logo and slogan, among other things. It also provides a link to the landing or home page. Recall that we specified the search block to appear in the header region and you can now see it above the logo.

2. (& 5) Left and right sidebars are predefined regions that contain blocks. Blocks are effectively containers of information, or navigational links (or pretty much anything else you care to think of). Notice too that we now have blocks on the right-hand side (Most recent polls and Recent blog posts) because we set some of them to appear in the right sidebar earlier on. We told Drupal to display the User login in the left sidebar, but this is not visible because, of course, the screenshot was taken after login.
3. Content is generally displayed in this region of a site and the method of display is customizable and selective as we will see in due course. Since we did not specifically tell Drupal otherwise when we created some content, what we created is displayed automatically—we could have told it not to make the post visible here at all if we liked; we will talk about how to control content in more detail in next chapter.
4. The footer often contains information that is not immediately the most important on a page but is still relevant and useful. In this case we asked Drupal to display who is online here, but equally we might want to add a copyright notice or terms of use and so on.

This section has touched upon the power and elegance of Drupal by adding impressive features at the touch of a button and with little to no experience and certainly no programming skills required. However, it is quite possible that you don't want anything like what we have just seen. Perhaps you only want a single sidebar, or none at all. Maybe you want advertising across the top of the page or content displayed in drop-shadowed boxes? Whatever it is, the coming chapters will see to it that you are equipped with the requisite information to implement your goals.
OdayPele "Life runs unpredictable". With my educational background I bet you won't believe of being who I am now. Though I knew life is not as simply as unreal world in cyber life but it has led me to enter my professionalism in carrier, bussiness and creation which support to my whole of life.

No comments for "How to Create Basic Page in Drupal 6"

Iklan Bawah Artikel