Home > Articles > Web Development > Content Management Systems

  • Print
  • + Share This
This chapter is from the book

Basic Pages

Most of the pages you create on your Web site will probably be Basic pages. Basic pages have the following antifeatures:

  • Are not published to the front page of your Web site
  • Do not allow visitors to post comments
  • Do not have tagging enabled
  • Do not have an image upload widget
  • Are not date-stamped

In other words, a Basic page is just a basic page.

Use the following steps to add an About Me page to your Web site. In the next section, you will alter this page's features to add this page to your Main menu.

  1. From the shortcut menu, click the link "Add content." An overlay will appear prompting you to choose between Article and Basic page.
  2. Click "Basic page."
  3. Enter a title and body for your page.
  4. Scroll to the bottom and click Save.

Your new page has been created, but there is no link to it yet. It is essentially an orphaned page.

Linking to Basic Pages from the Main Menu

The page you created in the previous section has been abandoned. It is lost in your site with nothing linking to it. This makes the page very sad and lonely (and might possibly also make you afraid and angry that you can't find your very first Drupal Web page). Don't worry. You don't need to call the Drupal search-and-rescue team just yet. What you need to do is create a link to your page so that others can find it. In Chapter 13 you will learn several ways to create lists of content. For now, you will add a link to your page to the Main menu for your site.

Use the following steps to find your lost page and add a menu item so that others can find it too.

  1. Navigate to the editing screen for the node to which you want to add a Main menu link. You can do this by clicking the Edit tab on the actual node (Figure 4.2) or by clicking the "Find content" shortcut link and then clicking the "edit" link next to the page you want to edit (Figure 4.3).
    Figure 4.2

    Figure 4.2 Any node can be edited by navigating to the node and clicking the tab Edit.

    Figure 4.3

    Figure 4.3 Using the shortcut bar "Find content" in the administrative toolbar, you can find and edit any node in your Web site.

  2. Scroll to the bottom of the screen and select the check box "Provide a menu link." Figure 4.4 shows the configuration screen that appears.
    Figure 4.4

    Figure 4.4 Any node in your Web site may be placed in the Main menu by customizing the link options in the node-editing screen.

  3. Enter the display title of the menu link. By default the page title is used.
  4. The setting "Parent item" allows you to choose which menu you would like to put the page into. It is appropriate to leave this as "Main menu."
  5. Weight allows you to change the order of the menu items relative to one another. To move the menu item up, choose a smaller (or negative) number. Leave the default value for now to see where the menu item falls.
  6. Scroll to the bottom of the screen and click the button labeled Save.

Your page will now be listed in the Main menu (Figure 4.5). In the default theme, Bartik, the Main menu is located at the top left of the page. You can use these instructions for any content type including articles and any custom content types you create.

Figure 4.5

Figure 4.5 Two Main menu links are now available.

  • + Share This
  • 🔖 Save To Your Account