Skip to main content

5.2. Creating a Content Item

Submitted by Guy Vigneault on

Goal

Create and publish a content item that will be used as the home page of the site.

Prerequisite knowledge

  • Section 5.1, “Concept: Paths, Aliases, and URLs”
  • Section 2.3, “Concept: Content Entities and Fields”

Site prerequisites

The Basic page content type must exist. This is created on your site when you install with the core Standard installation profile.

Steps

  1. In the Manage administrative menu, navigate to Content > Add content > Basic page (node/add/page). The Create Basic page form appears.
  2. Click Edit summary.
  3. Fill in the fields as shown below.

    Field nameExplanationValue
    TitleTitle of the page. Will also be used as a meta tag in the source code, URL alias, and as label of the content item in administration screensHome
    SummarySummary of the value of the body field. Can be used as teaser in overview pagesOpening times and location of City Market.
    BodyFull content of the page

    Welcome to City Market - your neighborhood farmers market!

    Open: Sundays, 9 AM to 2 PM, April to September

    Location: Parking lot of Trust Bank, 1st & Union, downtown

    PublishedWhether the content is published for public view or notChecked
    URL alias > URL aliasAlternate relative path for the content/home

    By clicking the Source button in the rich text editor toolbar, you can see the HTML source code of the text that you are editing.

    Create a basic page

  4. Click Preview to ensure everything looks like expected.
  5. Click Back to content editing.
  6. Click Save. The content is saved and can be found on the Content page.
  7. Follow the same steps to create an About page, with title "About", and a body telling about the history of the farmer’s market.

Expand your understanding

  • Section 5.4, “Designating a Front Page for your Site”
  • Section 5.6, “Adding a Page to the Navigation”
  • Section 10.3, “Translating Content”
  • Section 2.7, “Concept: User Interface, Configuration, and Content translation”
  • Section 5.1, “Concept: Paths, Aliases, and URLs”
  • Section 5.3, “Editing a Content Item”