Move the navigation menu to the top

Topics: Developer Forum, User Forum
Oct 19, 2007 at 11:38 AM
In the default theme, "Travel Diary", I'd like to move the mavigation menu from left-vertical, to top-horizontal.
Which file do I have to edit? And, overall: HOW?

I can look in other themes with the menu at the top, to copy che xml code, but I still don't know which file I have to look at.
Please help!
Oct 24, 2007 at 2:48 PM
Hi
The skinfile of your selected Theme is basically a htmlfile, but with controls placed on it.
You can move the menu any place you like. By switching orientation of the menu, you get a horizontal menu.

<div class="topmenucontainer">
<asp:Menu ID="menu1"
CssClass="Menu"
runat="server"
DataSourceID="menuDataSource"
DynamicHorizontalOffset="0"
DynamicVerticalOffset="3"
StaticSubMenuIndent="0px"
StaticDisplayLevels="1"
Orientation="horizontal"
MaximumDynamicDisplayLevels="100"
SkipLinkText=""
ItemWrap="false"
StaticEnableDefaultPopOutImage="false"
DynamicEnableDefaultPopOutImage="true"
StaticMenuItemStyle-CssClass="TopMenuItem"
StaticSelectedStyle-CssClass="selected"
>
<StaticHoverStyle CssClass="StaticHoverStyle" />
<DynamicMenuStyle CssClass="DynamicMenuStyle" />
</asp:Menu>
<cc3:CustomSiteMapDataSource runat="server" ID="menuDataSource" ShowStartingNode="true" />
Oct 25, 2007 at 12:23 AM
This is my .skin file but I can't see the "Orientation" tag or just the "topmenucontainer" identifier. Where do I have to add your code?

<%@ Register TagPrefix="cc1" Namespace="MyWebPagesStarterKit.Controls" %>
<%@ Register TagPrefix="RJS" Namespace="RJS.Web.WebControl" Assembly="RJS.Web.WebControl.PopCalendar" %>
<%@ Register TagPrefix="cc2" TagName="LoginStatus" Src="~/LoginStatus.ascx" %>
<%@ Register TagPrefix="cc2" TagName="Search" Src="~/SearchLink.ascx" %>
<cc1:TemplatedContent runat="server" SkinID="Top">
<ContentTemplate>
<div id="wrapper">
<div id="head">
<div id="websiteTitle"><cc1:WebSiteTitle ID="WebSiteTitle1" runat="server"></cc1:WebSiteTitle></div>
<div id="utilities"><cc2:LoginStatus runat="Server" id="LoginStatus1" /> 
Oct 25, 2007 at 7:59 AM
See the post I wrote earlier:
http://www.codeplex.com/MyWebPagesStarterKit/Thread/View.aspx?ThreadId=16532