Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Designing with Sitefinity > Simplicity Template & Sitemapdatasource

Simplicity Template & Sitemapdatasource

  • Shawn Davis Intermediate avatar

    Posted on Dec 28, 2011 (permalink)

    I'm trying to adapt the free Simplicity template to a SF 3.7 site.  Everything is going pretty well except the MainNavigation control. It is not showing the description that's put into the page properties for the site.  If someone can just point me in the right direction I would appreciate it!  Here is the source of the control so you don't have to look it up:
    <%@ Control Language="C#" AutoEventWireup="true" %>
    <telerik:RadTabStrip ID="RadPanelbarNav" runat="server" Visible="false" />
      
    <asp:Repeater  ID="Repeater1" runat="server" DataSourceID="SiteMapDataSource" >
        <HeaderTemplate>
            <ul class="nav-holder">
        </HeaderTemplate>
        <ItemTemplate>
                <li>
                    <a href='<%# Eval("Url") %>' runat='server'>
                        <h3><%#Eval ("Title") %></h3>
                        <p><%# Eval("Description") %></p>
                    </a>
                </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
      
    <asp:SiteMapDataSource runat="server" ID="SiteMapDataSource" StartingNodeOffset="0" ShowStartingNode="false" />

    Reply

  • Shawn Davis Intermediate avatar

    Posted on Dec 28, 2011 (permalink)

    After continuing to poke around I found this post: SiteMenu ItemTemplate not pulling Description

    I changed the Description eval to this:
    <p><%#Eval("CmsPage.Description")%></p>

    Victory was achieved.  That means it fixed the problem. :-)

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Designing with Sitefinity > Simplicity Template & Sitemapdatasource