+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Simplicity Template & Sitemapdatasource

Simplicity Template & Sitemapdatasource

2 posts, 0 answered
  1. Shawn Davis
    Shawn Davis avatar
    81 posts
    Registered:
    13 Oct 2012
    28 Dec 2011
    Link to this post
    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" />
  2. Shawn Davis
    Shawn Davis avatar
    81 posts
    Registered:
    13 Oct 2012
    29 Dec 2011
    Link to this post
    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. :-)

2 posts, 0 answered