Add page list to menu

Topics: Controls, Themes
Jan 8, 2010 at 11:15 PM
Edited Jan 9, 2010 at 12:53 AM

Does any one know how I can add the page list items to my horizontal menu?

When the customer creates a new page I want it to create the link into the menu automatically.

Thanks

Jan 18, 2010 at 8:19 PM

I did this by grabbing some code from the DarkBlog theme and using it to replace the code for the menu in the theme I am currently using. It uses code in the PageMenu.cs file in App_Code\Controls. I can't say that I really understand how this works, but it worked fine in DarkBlog and worked fine in another theme. 

The code I used from the other theme is:

 

<div>
<% if(HttpContext.Current.User.Identity.IsAuthenticated){ %>
<span style="color:#fff; padding-left: 60px; padding-right: 10px">[<%=HttpContext.Current.User.Identity.Name %>]</span>
<% } %>
<asp:LoginStatus ID="LoginStatus1" runat="Server" LoginText="Login" LogoutText="Logout" EnableViewState="false" />
</div>

<div class="url">

<% if(HttpContext.Current.User.Identity.IsAuthenticated){ %>

<span style="color:#fff; padding-left: 60px; padding-right: 10px">[<%=HttpContext.Current.User.Identity.Name %>]</span>

<% } %>

<asp:LoginStatus ID="LoginStatus1" runat="Server" LoginText="Login" LogoutText="Logout" EnableViewState="false" />

</div>

I don't know if PageMenu.cs was in the original BlogEngine installation or if it was installed with DarkBlog. 

 

Apr 7, 2010 at 11:48 PM

Perfect Thanks op2s!