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

Forums / Designing with Sitefinity / BreadCrumb pathseparator

BreadCrumb pathseparator

6 posts, 0 answered
  1. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    09 Dec 2008
    Link to this post
    Hi,

    I want to use & r a q u o ; (this is >>, two small arrows) in PathSeparator, but in html and on page I have & a m p ; r a q u o ;

    how to solve this problem?

    Thanks,
    Anton.
  2. eraashishgupta
    eraashishgupta avatar
    50 posts
    Registered:
    26 Nov 2008
    09 Dec 2008
    Link to this post
    Just go to Sitefinity admin and then to pages and templates.Select the template where you have placed your breadcrum,just edit that template and then edit the breadcrum navigate to the "Appearance" property and in that there will be path Separator just put >> in that and that will do the trick.
    If this is not what you want then probably i didn't got your question correctly.
    Pardon me for my ignorance.

    Thanks
    Aashish
  3. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    10 Dec 2008
    Link to this post
    Hello Aashish,

    No, I want use just & r a q u o ; because >> it is not nice. Compare >> and »

    Thanks,
    Anton.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Dec 2008
    Link to this post
    Hello Anton,

    The property PathSeparator is not set to decode html symbols.

    You have two options though.

    1. Copy the » decoded and paste it to the property textbox.
    2. Override the Breadcrumb control as the example below demonstrates

    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Web; 
    using System.Web.Security; 
    using System.Web.UI; 
    using System.Web.UI.HtmlControls; 
    using System.Web.UI.WebControls; 
    using System.Web.UI.WebControls.WebParts; 
    using Telerik.Cms.Web; 
     
    namespace CustomBreadCrumb 
     
        /// <summary> 
        /// Summary description for BreadCrumb 
        /// </summary> 
        public class BreadCrumb : Telerik.Cms.Web.UI.Breadcrumb 
        { 
            public override string PathSeparator 
            { 
                get 
                { 
                    return base.PathSeparator; 
                } 
                set 
                { 
                    base.PathSeparator = HttpUtility.HtmlDecode(value); 
                } 
            } 
        } 

    web.config

    <toolboxControls> 
            <clear /> 
            <add name="CustomBreadCrumb" section="Custom" type="CustomBreadCrumb.BreadCrumb, App_code" /> 
    </toolboxControls> 

    I hope this helps.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    12 Dec 2008
    Link to this post
    Hi Ivan,

    Thank you, it work! I used option №1.

    Best regards,
    Anton.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Dec 2008
    Link to this post
    Hi Anton,

    I am glad that everything works fine now. I recommend that you should the second way. It is the better solution for me. However, it is up to you.

    Greetings,
    Ivan Dimitrov
    the Telerik team

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