TreeView-Navigation on the left instead of the NavigatonBar on top.

rated by 0 users
This post has 6 Replies | 1 Follower

Not Ranked
Posts 3
Points 30
olcay.buyan Posted: Fri, Dec 15 2006 2:24 AM

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

Not Ranked
Posts 3
Points 30

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" />&nbsp;<%# 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

  • | Post Points: 20
Not Ranked
Posts 4
Points 50
Darko replied on Fri, Feb 16 2007 5:12 AM
Hi, what files did you edit?
  • | Post Points: 20
Top 50 Contributor
Posts 354
Points 5,145
Tabs replied on Fri, Feb 16 2007 5:50 AM
I'm looking to do something similar to this, I was hoping to use ulitise the control panel menu system.
  • | Post Points: 20
Not Ranked
Posts 4
Points 50
Darko replied on Fri, Feb 16 2007 6:03 AM
Do you know what file the navigation bar is kept in? I just cant find it anywhere!
  • | Post Points: 20
Top 50 Contributor
Posts 354
Points 5,145
Tabs replied on Fri, Feb 16 2007 6:48 AM

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. 

 

  • | Post Points: 20
Not Ranked
Posts 4
Points 50
Darko replied on Fri, Feb 16 2007 8:49 AM

You are a scholar and a gentleman. Thank you kind sir! Its a step in the right direction.

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com