Copied to clipboard

Flag this post as spam?

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


  • Tan 2 posts 22 karma points
    Mar 29, 2013 @ 10:09
    Tan
    0

    Problem document types and Breadcrumb in templates

    I create a document type with name ListA and itemA.

    All  are good until Breadcrumb

    In content :

    ListA-1:
    --->ListA-1.1
    ------>ListA-1.1.1
    ---------->ItemA1
    ---------->ItemA2
    ---------->ItemA3
    ------>ListA-1.1.2
    --->ListA-1.2
    --->ListA-1.3

    Click ItemA1
    Breadcrumb: Home->ListA-1.1.1->ItemA1 is False
    Breadcrumb: Home->ListA-1-->ListA-1.1-->ListA-1.1.1->ItemA1 is True

    Appreciate any help I can get. 

    Thanks!

    Tan

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 29, 2013 @ 11:14
    Jan Skovgaard
    0

    Hi Tan and welcome to our :)

    Could you tell us a bit more about the issue? And could you for instance show some of the code you're currently using to have the breadcrumb rendered?

    Looking forward to hearing from you.

    /Jan

  • Tan 2 posts 22 karma points
    Mar 30, 2013 @ 03:07
    Tan
    0

    Hi Jan,
    Thank you for your interest in my question

    Code Breadcrumb:

    <ul>
        @foreach (var level in @Model.Ancestors().Where("Visible"))
        {
            <li><a href="@level.Url">@level.Name</a><span class="spacing-ico">&raquo;</span></li>
        }
        <li>@Model.Name</li>
    </ul>

    I think breadcrumb not make the error.

    I has using the package Creative Website Starter (CWS) and attempt to do like news-events list and News Item.

    Something that I do not properly.

    Document type: DanhSachTaiLieu
    It 's the same News Events list

    Document type:  TaiLieu
    It 's the same News item.

    Thanks!

    Tan

     

     

Please Sign in or register to post replies

Write your reply to:

Draft