Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Raja 21 posts 90 karma points notactivated
    Apr 29, 2016 @ 13:25
    Raja
    0

    Pass the same breadscrumb value to across to the umbraco templates.

    Hi,

    Is there Any possibility to Send the BreadScrumb value to across Multiple templates,

    _First -second -third -fourth

    Here The FIrst temple under have two templates if select the breadscrumb by using partial i have passed to this templates if selecting the Third:i have breadscrumb value is:Start/first/second/third

    The fourth template is not under first it has the saparate page /template if selecting i got breadscrumb value is:Start/fourth

    Is there any possibility to send same breadscrumb value of Third.to this Fourth Template i want to Start/first/second/fourth

  • Nathan Sleigh 109 posts 353 karma points
    Apr 29, 2016 @ 14:51
    Nathan Sleigh
    0

    Hi Raja,

    Try this code:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    
    @{ var selection = CurrentPage.Ancestors(); }
    
    @if (selection.Any())
    {
        <ul class="breadcrumb">
            @foreach (var item in selection.OrderBy("Level"))
            {
                <li><a href="@item.Url">@item.Name </a></li>
            }
            <li class="active">@CurrentPage.Name</li>
        </ul>
    }
    

    Nathan

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Apr 29, 2016 @ 15:16
    Stefan Kip
    2

    SUCH CAPS

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Apr 29, 2016 @ 15:33
    Sebastiaan Janssen
    0

    I think what @kipusoep is trying to say: writing in all capitals to a most people sounds like you're shouting at them. I updated the title of your post to not use all caps.

  • Raja 21 posts 90 karma points notactivated
    May 02, 2016 @ 04:06
    Raja
    0

    ok janssen ,thank you.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies