Developing the Home page
To create the Home page of the tutorial website.
In the Pages application, select the root page (My website).
Click New ().
Choose the Page (menu item) page type.
Type Home as the Page name and choose the Create a blank page option.
Click Save to create the page.
Designing the Home page
Switch to the Design tab.
Click the menu icon () in the green page template header and select Edit layout in the menu.
Replace the default code with the following:
<table style="width:100%;height:500px;border: 0px"> <tr valign="top"> <!-- left column --> <td style="width:280px" class="HomePageLeftColumn"> </td> <!-- center column --> <td style="padding: 3px 5px 0px 5px;width:450px;"> <cms:CMSWebPartZone ZoneID="zoneCenter" runat="server" /> </td> <!-- right column --> <td style="padding: 3px 0px 0px 5px;width:270px"> <cms:CMSWebPartZone ZoneID="zoneRight" runat="server" /> </td> </tr> </table>
Click Save & Close.
Add the Editable text web part into the zoneCenter web part zone.
Configure (double-click) the web part and set the following properties:
- Editable region title: Main text
- Editable region height: 450
Add another Editable text web part into the zoneRight web part zone. Set its properties:
- Editable region title: Contact text
- Editable region height: 100
Open the Page tab. The page now contains two editable regions. Enter the following text:
- Main text: Welcome to the website.
- Contact text: Call 800 111 2222
Click Save.
To view the public appearance of your website’s new Home page, switch to Preview mode.
Choosing the website’s home page
When a visitor arrives at the root URL of the website (i.e. its domain name, for example http://www.example.com), the system needs to know which page to display as the home page.
To set the path of the website’s default home page:
- Open the Settings application.
- Select the Content category in the settings tree.
- Select My website in the Site drop-down.
- Clear the Inherit from global settings check box next to the Default alias path setting.
- Type in /Home, which is the alias path of your new home page.
- Click Save.
When visitors access the website without specifying the URL of a particular page, the system automatically displays the Home page.