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
- In the Manage administrative menu, navigate to Content > Add content > Basic page (node/add/page). The Create Basic page form appears.
- Click Edit summary.
Fill in the fields as shown below.
Field name Explanation Value Title Title 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 screens Home Summary Summary of the value of the body field. Can be used as teaser in overview pages Opening times and location of City Market. Body Full 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
Published Whether the content is published for public view or not Checked URL alias > URL alias Alternate 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.
- Click Preview to ensure everything looks like expected.
- Click Back to content editing.
- Click Save. The content is saved and can be found on the Content page.
- 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”
Related concepts
- 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”
Videos
Additional resources
Drupal.org community documentation page "About nodes"
Attributions
Written by Agnes Kiss and Boris Doesborg.