How to add another page to your BlogEngine.NET 1.6 Website

5. November 2011

Summary

This article describes how to add another page to your BlogEngine.NET 1.6 web blog.  The page will also be added to the main menu on your blog and can be edited with Windows Live Writer. (I use Windows Live Writer to create/edit my blogs).  See my article on Windows Live Writer.

Description

Pages are very confusing in BlogEngine.NET 1.6.  They don’t seem to be linked to anything and are not shown on the menu. 

I wanted to add an “About” page similar to the “Contact” page for my BlogEngine.NET 1.6 website.  I tried to add a page using the website Administrator functions, but that added a page that was not linked into the posts or main page.  It was lost somewhere in the blog…

Solution

Finally figured out the EASY way to do it:

1. Use the BlogEngine.NET administrator function in your website to add a new page, in my case the “About” page.  Don’t set a parent for that page.  Set the Slug to the page name – in this case: “About”.

2. Go to the site.master page in the theme you have selected and find the menu items.  Add a new menu item with the following format:

<li <%=MenuClass("About.aspx")%>><a href="<%=Utils.AbsoluteWebRoot %>page/About.aspx">About</a></li>

Note: the addition of the “page/” to link up the menu with the page created in step 1.

3. Build and deploy your website.

4. Open Windows Live Writer and “Open Recent Post”.  Select your blog and select “Pages” (not “Posts”).  Select the “About” page you created.

5. Edit your “About” page and Publish.

 

That's All!

 

John Dorsey
IT Brigade Inc.
www.itbrigadeinc.com

BlogEngine.NET, ASP.NET ,