Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Getting started

Lesson 1 — Create a product page

In this lesson, you will build and preview a featured product page for the iPhone 13. You will use the Single Product Detail page template to create a unique layout for the product.

Create the page

  1. Navigate to the products folder.
  2. Create a new folder named apple-iphone-13.
  3. Inside that folder, create a new document named iphone-13.

Create the new folder and document

Create the new folder and document

Apply the template

  1. Open your iphone-13 document.
  2. From the Edit menu, click LibraryTemplates.
  3. Select the Single Product Detail page template.

Apply the Template

Apply the Template

Preview the page

  1. Click the instant Preview button.
  2. Check the instant preview of the page.

Preview the Page

Preview the Page

Update the product-details block

The Single Product Detail page template comes with a product-details block, also known as a Product Detail Page (PDP) drop-in component. Like other document blocks, the PDP component is a two-column table — property names on the left, property values on the right. Make the following changes to the product-details block.

  • carousel-layout: quad
  • featured: true

Change product-details block

Change the product-details block

Change the Hero block

  1. Update the text below the image placeholder to: Wide lens for great photos.
  2. Select the image placeholder.
  3. Go to the Edit menu > Library > AEM Assets.
  4. Navigate the AEM Assets library from the folders on the left (see screenshot): All Assets > summit-l320.
  5. Choose the iPhone image shown in the screenshot below.
  6. Click the Select button to apply the selected image.

Change the Hero block

Change the the Hero block

Add Teaser blocks

The Single Product Detail page template comes with 4 teaser blocks. You will replace the placeholder text and images of these blocks and add an additional block. All images are available in the lab’s AEM Assets library: Library > AEM Assets > All Assets > summit-l320.

Teaser 1:

  • Header 3: Meet your new personal assistant
  • Content: It's expected to rain today on your way to work, don't forget your umbrella.
  • Image: pdp-banner-one.png

Teaser 2:

  • Header 3: Your best fitness pal
  • Content: Monitor your progress and maximize your results.
  • Image: fitness banner.png

Teaser 3:

  • Add Teaser 3 by copying Teaser 1 and pasting it directly below Teaser 2.
  • Header 3: New to CitiSignal?
  • Content: Check out our special trial offer.
  • Image: pdp-banner-two.png

Teaser 4:

  • No header text
  • Content: Bundle and save, check eligibility now.
  • Image: stock-watch-purple.png

Teaser 5:

  • No header text
  • Content: Students save more with CitiSignal.
  • Image: ipad small banner.png

Change and add teaser blocks

Change and add teaser blocks

Update page layout

The Single Product Detail page template uses a grid-row layout to place two or three blocks on the same row when the width of the screen allows. Let’s change the layout to ensure that the first three teaser blocks are in a column layout. Make the following changes to the section-metadata block below the first two teasers (see screenshot).

  • style: grid-column

Select the tablet preview to ensure that these first two teaser blocks are displayed one per row.

Update the page layout

Update the page layout

Add Call To Action (CTA) buttons

  1. Add text for a button in a teaser block (see screenshot).
  2. Select the button text and go to menu → Link.
  3. Add the URL for the link.
  4. To make a primary button, bold the link text.
  5. To make a secondary button, italicize the link text.

Add CTA buttons

Add CTA buttons

Preview the page

  1. Click the Action button (paper-plane icon) at the top-right of the screen.
  2. Choose the Preview button.
  3. Check your work.

Final preview of the iPhone 13 product page

Final preview of the iPhone 13 product page

Update the Hero banner with in-context editing

  1. Open the iphone-13 document.
  2. Select the in-context editing button to open the document.
  3. Scroll to the Hero banner and double-click its Text block to start editing.
  4. Change the text to: Capture breathtaking pictures with new wide lens.
  5. Preview your change by clicking the Open page button (directly left of the Publish button).

Update the Hero banner with in-context editing

Update the Hero banner with in-context editing

Update the Hero banner with GenAI

  1. Scroll to the Hero banner and select its Text block.
  2. Click AI Generate variations button from the right-side menu.
  3. View the selected Hero text in the AI panel followed by suggestions to rewrite the content.
  4. Select one of the suggestions and click the Generate button.
  5. Click the response you like to apply it to the Hero banner text.
  6. Publish the page.

Update the Hero banner using GenAI

Update the Hero banner using GenAI