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

Forums / Developing with Sitefinity / Site Menu & Images

Site Menu & Images

7 posts, 0 answered
  1. Randel
    Randel avatar
    50 posts
    Registered:
    30 Aug 2012
    14 Oct 2008
    Link to this post
    I've just been asked to see if it's possible to assign images to each menu item of a Site Menu.
  2. Mike
    Mike avatar
    221 posts
    Registered:
    19 Aug 2008
    15 Oct 2008
    Link to this post
    I am new to this myself so, please do not take only my word for it... But i belive this would be possible (maybe not with the site menu control). I am creating a custom menu control that uses images for the top level pages/sections of the site and them dynamically generates submenu items for each of the sections...

    through the APi you have access to the page hirachy ... http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bggkhg.aspx 

    Hope this help...

    Nugs
  3. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    15 Oct 2008
    Link to this post
    Hi Nugs,

    Each RadMenuItem has a set of properties you can use to add images to your menu items. The following properties let you add images to menu items:
    • ImageUrl specifies an image that is added to the menu item. This image is always used, unless you set one of the other properties to specify an alternate image to use in a specific state.
    • HoveredImageUrl specifies an image that is used when the mouse is over the menu item.
    • ImageClickedUrl specifies an image that is used when the user clicks the menu item.
    • ExpandedImageUrl specifies an image that is used when the list of child items is showing.
    • DisabledImageUrl specifies an image that is used when the item is disabled.
    Here is a simple example that illustrates how to achieve the required functionality for SiteMenu control (~/Sitefinity/UserControls/Navigation35/SiteMenu.ascx):

    .acsx.cs
    public void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e) 
        { 
            e.Item.ImageUrl = "~/Images/a_default.gif"
            ... 

    Do let us know if this helps.

    Greetings,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    05 Feb 2009
    Link to this post
    Hi,

    We're trying to customize our Site Menu. We'd like to use one of the Telerik RadMenu skins (Web20) but change the color of the background images.

    Working with Telerik Ajax components, this is not a problem, as all skins are there open for modifications. However, we can't find these skins in the Sitefinity CMS.

    Where can these skins be found? Or are they all compiled in dll files...

    Thanks in advance for any clue.

    Chanan Zass.
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Feb 2009
    Link to this post
    Hello Chanan Zass,

    They are compiled into the Telerik.Web.UI assembly. We suggest you taking them from the Ajax components, set the RadMenu (which is forming the Site Menu) to use the external skin. For this purpose, you need to set the property UseEmbeddedSkins to false.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    05 Feb 2009
    Link to this post
    Thanks for your prompt reply.
    You probably mean "EnableEmbeddedSkins" (rather than UseEmbeddedSkins").

    Thanks.

    Chanan.
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Feb 2009
    Link to this post
    Hello Chanan Zass,

    I apologize for the mistake, yes, the property is EnableEmbeddedSkins.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
7 posts, 0 answered