简体   繁体   中英

SharePoint 2010 Navigation site

Instead of the default

Im using

             <asp:Repeater runat="server" ID="MenuRepeater" DataSourceID="topSiteMap">
                <HeaderTemplate>
               <div class="arrowlistmenu">
              </HeaderTemplate>
            <SeparatorTemplate>
             <img src="images/eOne_leftmenu_divider.gif" height="2" width="164" />
              </SeparatorTemplate>

                        <ItemTemplate>

                         <h3 class="menuheader expandable">

                         <a href="<%# Eval("Url")%>"><%# Eval("Title")%></a></h3>

                     <asp:Repeater runat="server" ID="ChildMenuRepeater"                                                                                                                       

                     DataSource='<%# ((SiteMapNode)Container.DataItem).ChildNodes %>'>
                          <HeaderTemplate><ul class="categoryitems"></HeaderTemplate>
                          <ItemTemplate>
                          <li><a href="<%# Eval("Url")%>"><%# Eval("Title")%></a></li>
                          </ItemTemplate>
                          <FooterTemplate></ul></FooterTemplate>
                      </asp:Repeater>
                       </ItemTemplate>

                       <FooterTemplate></div></FooterTemplate>
                   </asp:Repeater>

but it is giving me an error.

This post describes how to style the top navigation bar in SharePoint using repeaters. http://samirfarid.wordpress.com/2012/01/03/style-sharepoint-top-navigation-using-repeaters/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM