In the previous post we created a web application to host our blog sites. We created the blog sites and have added a few posts to each to prepare for the creation of our blog host home page. Now our designer has provided the requirements for the home page and we are ready to go. The summary of steps is:
Open the page in SharePoint Designer and scroll to the bottom of the code. Insert the following two lines below the last
<asp:Content ContentPlaceholderID="PlaceHolderTitleBreadcrumb" runat="server"/> <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server" /> <asp:Content ContentPlaceholderID="PlaceHolderLeftNavBar" runat="server"> <WebPartPages:WebPartZone runat="server" AllowPersonalization="true" ID="LeftNavZone" FrameType="TitleBarOnly" Title="Left TOC" Orientation="Vertical"> <ZoneTemplate> </ZoneTemplate> </WebPartPages:WebPartZone> </asp:Content>
Save the page and you should see the left navigation disappear and be replaced by a web part zone.
Check in and publish the page layout.
Now I need to create our new home page. From the blog host home page choose Site Actions | Create Page.
On the Create Page page, complete the necessary information and choose our new “Blog Welcome page with table of contents” page layout.
Choose Create to create your page.
Publish the page and choose Site Actions | Site Settings | Modify All Site Settings. Choose Welcome Page and change the welcome page to our new page “home.aspx”.
Our wireframe calls for a list of blog sites with descriptions on the left. The Table of Contents web part will work well for this.
Change the settings as follows:
|Levels to show||1|
|Heading Text||Blog Sites|
|Vertical 1 Style||Vertical with descriptions|
Apply your changes and your web part should look like this:
Drag your web part into the Left TOC web part zone. Preview your page and it should look similar to the image below. The styling is a bit off, but we will fix that.
In this post we have built a new home page layout and configured a TOC Web Part. Next post we’ll finish the home page with a Recent Posts web part and CSS.
Ready to start your next project with us? That’s great! Give us a call or send us an email and we will get back to you as soon as possible!