Now that we have a header and footer, we would like to make this a default page that must be included. The function to achieve this will be Page Design, which we will introduce in this issue.
![](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F2ggUTbzwUKxT8fF5jI9oNa%2Fd3941ab34560edde9b1712aa8d80dd04%2Fnextjs03.png&w=3840&q=75)
Building a Demo Site with Headless SXA - Part 7 Controlling Page Templates
XM CloudHeadless SXAPublished: 2023-02-15
Check page design
One standard one is included as page design.
![page01.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F7yMT3YKLginmDQ6ZQPvsG1%2Fb2dbeb610b25a71933f9c0e939b545b8%2Fpage01.png&w=3840&q=75)
Clicking on this Default will bring up the following dialog
![page02.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F42xQC54FFiw8SuXZX93r2N%2F70a05d311e56e9c31eb5428e7839d38b%2Fpage02.png&w=3840&q=75)
The left side lists the partial designs that are currently available. Also, since a Demo Header was previously set up, there is one Header and one Footer, although they are different from the ones originally set up. Since we have created a new Demo footer, we have made the following changes.
![page03.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F7M4jRxnPuheQWEz9WVg24l%2F4bd7d757846d6b8971587e805b3ecc16%2Fpage03.png&w=3840&q=75)
In fact, the default page design is now applied to all items, so the Products page looks like this
![page04.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2FjhYni5mEv28iXBh2eYTwt%2F0325c12dd638edb930472ffc0f6bef38%2Fpage04.png&w=3840&q=75)
The header and footer are set up, and no partial design is set up for the main part, allowing components to be placed.
Display order in page design
With the above in place, we would like to set the Header that is provided by default. The order is as follows
![page05.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F2ZLz6I9IAdiua8hAFUujpW%2F36530731295a0c88e8cc2f827032a341%2Fpage05.png&w=3840&q=75)
In this case, the partial design is applied from the top to the bottom, so the custom header and the standard header are displayed below the custom header.
![page06.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F4nxd6uBbDXAsYuCxvIuLHH%2Ff8bef93744587f72ac88e12ac393870a%2Fpage06.png&w=3840&q=75)
Since there is no use having two headers, we will put them back this time.
Add a partial design for the main area
For this demo, we will create a partial design that constitutes a simple main area. First, create a Demo Main.
![page07.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F3FdZOMHDFA3USco1jLFUIK%2F84742ec53e5ec93752d3694d2c8e737f%2Fpage07.png&w=3840&q=75)
This time we will place components in the main area. This time, we will create two areas by placing Row Splitter, and place Title and Page Content there.
![page08.gif](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F6o7CpRvys0yH2fPGeOiAyj%2F67e6c0396b679b5d9896efb12c16884d%2Fpage08.gif&w=3840&q=75)
The main partial design to be used in the new page design is now ready.
Create a new page template
To create a new page design from the menu, click on the menu item below.
![page09.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2FOp20izWBQ78eP4m8C9eqN%2Faa9d6f31b2ef3294f0b66625f9b35fc9%2Fpage09.png&w=3840&q=75)
Name the page Demo Page as follows
![page10.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F6zKTyNdKBYr5yC9Gf7JGsw%2Feb99318dac6434335a5e67c3f3b9fc58%2Fpage10.png&w=3840&q=75)
Set the partial design to be used on the page. Apply the partial designs for the three Demos you have created so far.
![page11.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F1bsgaXN3JvVmqYhmoV8HVy%2Fae7b3d0db89d0e5200b84941893ac8db%2Fpage11.png&w=3840&q=75)
After setting, save the page design to complete the page design settings.
Change the page template
The main partial design we have created calls out the item's title and content. The following information is again entered into the item.
![page12.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F1JwyHJtzEQkRlJgxSip5cP%2F4791b0dd26047d2b8aaa8b2eba652c02%2Fpage12.png&w=3840&q=75)
The item for designating the page of this item is set under Designing, and the page design created this time is displayed in the list.
![page13.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F1taZHvIq2aoaJBOCy7GPyT%2F6828f52e0e43994be77ff4b2ae8545ac%2Fpage13.png&w=3840&q=75)
After the changes are made, the item is opened in the Experience Editor and can be edited as seen below.
![page14.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F4wjhJLA0PeyzbPSrhVVpCP%2Fdbc8aed6e8b420298352446b85397e9d%2Fpage14.png&w=3840&q=75)
Summary
In this article, we introduced you to the page design. We also checked and created a new design, including how to control the order of display and how partial designs combined with the main area can be set up.