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

Forums / Developing with Sitefinity / PanelBar with Page Description

PanelBar with Page Description

4 posts, 0 answered
  1. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    11 Aug 2010
    Link to this post
    How can I extend the integrated panelbar to allow me to show my meta page description under each link? 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Aug 2010
    Link to this post
    Hi medicalwebgeek,

    You can add the logic below to ItemDataBound event of SitePanelBar control

    Sitefinity\UserControls\Navigation35\SitePanelbar.ascx.cs

    public void RadPanelbar1_ItemDataBound(object sender, RadPanelBarEventArgs e)
       {
           CmsSiteMapNode node1 = e.Item.DataItem as CmsSiteMapNode;
           if (!String.IsNullOrEmpty(node1.CmsPage.Description))
           {
               e.Item.Text = e.Item.Text + node1.CmsPage.Description;
           }
     
                  ....
                      .....
        }


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    12 Aug 2010
    Link to this post
    Thanks - I tried this and it is almost exactly what I was trying to achieve.  When I do this, the Description shows up as part of the link.  How can I modify it (the description) to just show up as a label under the orginal link?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Aug 2010
    Link to this post
    Hi medicalwebgeek,

    You can create a template for the PanelBarItem



    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered