Hi everyone,
is it possible (think so) to remove the navigation on top and add a treeview navigation on the left? Does anyone have any samples or even some code to show? I think I have seen a few Community Server based sites where this was done.Thanks,Olcay
I have my navigation working on the left now. Only problem left is... how do I set the depth of a link? This is the code I am using right now:<asp:Repeater EnableViewState="false" runat="server" id="Menu"> <HeaderTemplate> <table cellspacing="0" cellpadding="0" border="0"> <tr valign="middle"> </HeaderTemplate> <ItemTemplate> <tr> <td class="<%# ((bool) DataBinder.Eval(Container.DataItem, "IsSelected")) ? "CommonSimpleTabStripSelectedTab" : "CommonSimpleTabStripTab" %>" onmouseover="tabOver(this);" onmouseout="tabOut(this);"> <a href="<%# DataBinder.Eval(Container.DataItem, "NavigateUrl") %>"> <img src="<%= Globals.GetSkinPath() %>/images/common/NavigationArrowRight.gif" border="0" /> <%# DataBinder.Eval(Container.DataItem, "Text") %> </a> </td> </tr> </ItemTemplate> <FooterTemplate> </tr> </table> </FooterTemplate></asp:Repeater>I can use:<%# ((CommunityServer.Controls.RepeaterMenuBarItem)Container.DataItem).Depth %> to get the depth of an Item but how do I set the Depth-property in SiteUrls.config?Thanks,Olcay
Volkswagen Golf, Bora, Jetta and Scirocco Forums
Audi Forums, Galleries and Blogs
Take a look at ControlPanel/Setup.aspx - the menu controls are specified in there.
The Menu and sub items are specified in SetupNavBar.config
I only know those two files as I had to modify them to install a Custom.Community mod. There may be other files that require changing so don't hold me to it!
Haven't started looking into it yet really, in two minds whether to wait for CS'07 before looking into further.
You are a scholar and a gentleman. Thank you kind sir! Its a step in the right direction.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com