Understanding components

Drupal 7 has several page types, including basic pages, structured pages and panel pages. Panel pages are made up of components, which provide specific layout and functionality for displaying content on a panel page.

Depending on your level of access, you can edit some components on a panel page.

Learn more about:

Learning outcomes

At the end of the topic, you will be able to:

  1. update the image and text of the hero component.
  2. update the body field of the rich text component.
  3. distinguish between the section pane fields (section title, section summary content, section footer content, background image) and the body field of the rich text component.
  4. update the title, image, content, primary link and action link (title and URL) fields for the custom card paragraphs in the card grid component.
  5. explain when to use a relative path link and the absolute path link.
  6. identify the key factors to consider when selecting an image.

Tasks to complete

For this topic, you are required to complete 3 tasks:

1. Edit a hero banner component

Essential guides

It is recommended that you read the essential guides prior to completing the task.

Check these guides before you complete the task.

Edit a Hero banner

Step 1

Hover the mouse pointer over the right-hand corner of the hero banner pane to display the Edit cog (Edit menu icon). Click the icon to display the menu and click Edit to open.

edit hero banner

Step 2

The configuration form for the hero banner component displays.  

  1. Title – the page title. 
  2. Image – the minimum image dimensions should be 2560px X 560px.
  3. Caption – for the purposes of attributing the image as per the copyright of the image.
  4. Layout – select between the default and thin banner
  5. Theme – choose between none, dark or light tint to overlay the image.
  6. Text – depending on the selected tint, choose the text light or dark to ensure sufficient contrast between the text and image to improve legibility.

Edit the hero banner

  1. Links – insert relative path links when linking to content on the site. If required, select between 1, 2 or 3 links.
  2. Save the changes.

save hero banner

Task instructions

From the main menu of your training website go to Training page 1 and edit the Hero banner component.

Training-page-1

Follow the numbered actions below before saving the changes.

1. Title field
Replace the current title with your chosen title.

Hero-title

 2. Image field
Select an image from the downloaded training files with a width of at least 2560px.

When selecting an image ensure that you have given consideration to the size guidelines in the Hero images and banners guide

hero-image

3. Caption field
Insert the text: Photo by Name Surname

hero-caption

4. Layout field
Select the option: Thin banner

hero-layout

5. Theme field
Select the theme that best suits your selected image.

hero-theme

6. Save the changes to the hero component.

Review your hero banner

Compare your edited hero banner component with the following exemplar.

The numbered information that follows applies to the image below.

  1. Background image
    The background image can be changed by adding a tint (dark or light). Ensure that there is sufficient contrast between the text and the image.  The web accessibility tool, Wave, can be used to check the contrast.
  2. Title
    It is recommended that the hero banner component on the home page should be the only one with a message.  The home page should not compete with other landing pages in the website
    The text in the hero banner component on other landing pages should be limited to one word where possible.
  3. Caption
    Attribute images where applicable to ensure compliance with the conditions of use associated with the image.

edited hero banner

Checklist: UQ Drupal Fundamentals

Avoid using Microsoft Edge or Internet Explorer for Drupal training.