View/Download PDF

Table of Contents

The Sandbox Page

As noted earlier, when you are signed into Drupal as a site owner, a gray menu stripe appears above the red stripe across the top of each web page in the site. In addition, View, Edit, Revisions and Log tabs appear beneath the title of each page. To edit the contents of any page in the site, you simply click the Edit tab on that page, as shown below.

The page shown above is the Sandbox Page, located in the private section of the GPS Lab website, accessible only to logged-in site owners. This Sandbox Page provides you a private space for learning about and experimenting with Drupal’s editing tools. Because this page is located in the private site owner’s section of the GPS Lab website, you can feel free to experiment with the contents of this page as much as you like without fear of inadvertently altering any of the site’s public pages. Throughout this chapter, we will use this page to demonstrate Drupal’s content editing features.

To open the Sandbox Page for editing:

  1. Click the Internal Login button at the right end of the footer on any page in the site.
  2. Select Sandbox Page at the bottom of the sub-menu in the left sidebar.
  3. Click the Edit tab beneath the Sandbox Page title.

Back to Top


Drupal's Web Page Structure

The screen image below shows the basic sections of the Sandbox page.

Notice that all basic pages in the GPS Lab website have the following editable sections:

When you click the Edit button on any basic page or landing page in the site, a Drupal page editing form appears, as shown in the labeled screen image below.

Back to Top


Web Page Title

Each Drupal web page must have a unique, identifying title. The title appears in large text, beneath the header section of the page.

Simply type the title you want into the Title box at the top of the Drupal page editing form.

Note: If the page you are editing will be accessible from a menu, then Drupal will use the words you enter in the Title box, separated by hyphens, in the menu—unless you specify otherwise. Drupal will also use the words from the title in the URL for this page—unless you specify otherwise.

Back to Top


The Drupal layout features of the GPS Lab website have been configured so that each standard page in the site can display an optional “featured image” in the upper right corner of the page’s Body Block.

 

By default, the Featured Image section of the editing form is closed. If you wish to add a featured image to the page, simply click the Add/Edit Image button to open the Feature Image selection and captioning section of the form.

The screen image below shows the open Feature Image selection section of the editing form.

In the top section, click the Browse button to select the feature image file from your computer’s hard drive. Once you have selected the image, click the Upload button to upload the image into Drupal’s image database for the site.

Once you have selected and uploaded an image file, its thumbnail and file name appear in the Image section, and the Browse and Upload buttons are replaced with a Remove button.

Note: It is a good practice to enter an image description in the Alternate Text box for use by visually impaired visitors to the site.

The remaining blocks in the Featured Image section are optional:

Below is an example of the featured image on the Sandbox web page. Notice that the image is automatically surrounded by a frame to indicate that it is “featured.”

Back to Top


The Drupal Text Editor

Every standard Drupal web page contains a Body block, which in addition to an optional featured image typically includes one or more paragraphs of text and optional images that can be located anywhere in the text area. The text may or may not include links to other pages or even other websites. Links are displayed in red text. Images can also serve as links. However, the only indication that an image is also a link is that the cursor turns into a pointing finger when you move the cursor over it.

Note: On touch-sensitive devices, such as tablets and smart phones, there is no indication that an image is also a “link button,” so the image itself must convey the visual message that it is a button to be tapped.

Selecting a Text Editor Format

The Body block section of every standard Drupal web page comprises an editing “box,” with an editor Text Format drop-down selector beneath it. This Text Format selector controls the appearance of the editing box and the features available for entering/editing the text contents in the editing box—that is, the text contents that appear on the web page.

The Text Format selector provides four options, only two of which—shown above—should be used:

Below is a screen image showing the top portion of the Sandbox web page with the editor set to Text Format mode. Notice the tool bar that appears along the top edge of the editor box in this mode. The HTML tags listed beneath the editor format selector are the tags that will display properly when the editor is set to Text Format mode.

The screen image below shows the same portion of the Sandbox web page with the editor switched to Full HTML mode. Notice that in Full HTML mode, the editor has no tool bar, nor any other editing aids. It is just a simple scrolling box for entering HTML code.

Back to Top


The Text Editor Tool Bar

When the Text Format selector is set to Full Text, a toolbar is displayed across the top border of the editor box. Similar to Microsoft Word and other word processing/text editing applications, the buttons on this toolbar provide shortcuts styling and performing various operations on selected text and/or objects in the editor box.

Below is a screen image of the toolbar, with brief descriptions of the functions of each button on the toolbar.

Following are a few notes about the functions of these buttons:

Back to Top


Adding and Removing Images in the Body Block

In addition to adding/editing text in Body block of a web page, you can browse for images on your computer—photos, drawings, charts, or other graphic images—and upload them into Drupal’s image database. Once an image has been uploaded, indicated by a thumbnail and file name of the image appearing in the File Information section of the Image Insert block, located beneath the Body block, you can insert that image anywhere in the Body block text. Likewise, you can remove images from the page and from Drupal’s site database.

The screen image below shows the Insert Image block with one image already uploaded with its thumbnail image and file name displayed in the File Image section.

Back to Top


Uploading and Inserting an Image Into the Body Block

To upload and insert an image into the Body block text, follow these steps:

  1. In the Body block, place the cursor at the position where you want the image to appear. Typically, this will be between paragraphs, although there may be cases in which you wish to insert an image within a line of text.
  2. Scroll down to the Image Insert block beneath the Body block. If other images have already been uploaded, locate the last section of the Image Insert block with the heading Add a new file, as shown below.
  3. Click the Browse button to locate the image you want from your computer’s hard drive, and then click Upload to add that image to Drupal’s image database for the GPS Lab website.
  4. When the image has been uploaded, a thumbnail, along with the image file name appear in the Image Insert block, which moves up beneath the previous Add New Image block in the File Information area of the Image Insert block.

  5. Click the Style drop-down menu to choose the size to which you want the image scaled on the page.
  6. If you choose “Original Image,” the image will not be scaled unless its width is greater than 1200 pixels. You can experiment with other scaling choices to find one that best suits the web page layout

  7. Click the Insert button to insert the image into the Editor box at the current cursor position.

The screen capture below shows the example image above as it appears on the live page.

Back to Top


Removing an Image from the Body Block

To remove an existing image from the Body block of a web page, first delete the image from the Editor box.

Once you have deleted the image from the Editor box, scroll down to the Image Insert area beneath the Editor box, locate the section containing the image there, and click the Remove button to remove the image from Drupal’s image database for this website.

Back to Top


Clearing the Site Cache

To expedite page loading times and improve general site performance, Drupal caches page content and settings. When you edit the content of a page in the site, Drupal sets up an editing space for your SUNet account outside the main site cache. Thus, when you save the changes you made to a page, you may not see the changes you made when Drupal closes the page editing form and switches back to Display mode for that page. Likewise, other people visiting the site will still see the cached version of the site pages, including the page you just finished editing.

Drupal periodically clears and rebuilds the site cache, so eventually, the changes you made to a given page will be cached and displayed. However, the best practice each time you save changes you made to a page is to then manually clear the site cache.

To manually clear the site cache, simply do the following:

  1. Click on the Site Actionsdrop-down menu at the left end of the gray menu bar that runs across the top of each page when you are logged in as a site owner.
  2. Click Clear Cache at the bottom of the menu. (It can take Drupal a minute or so to clear the cache, so be patient.)

Note: If you click on the Site Actions menu and release your mouse button without scrolling down to the Clear Site Cache, Drupal will open the Site Actions menu page, shown below. Clicking the Clear Site Cache link at the bottom of the Site Actions menu page achieves the same result.

Back to Top