Copied to clipboard

Flag this post as spam?

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


  • Surikus 2 posts 72 karma points
    Jul 24, 2017 @ 15:54
    Surikus
    0

    Content doesn't removed from frontend

    Hi! I created 4 contents using the same tepmlate and doc type. Then removed 2 of them and deleted from recycle bin.

    But 1 of the removed content still remains, it can be accessible by URL, and it exists in frontend menu.

    I'm getting menu using this code:

    @{ var selection = CurrentPage.Site().Children.Where("Visible");} <ul class="header-nav">
    
    <li>
        <a href="~/@Umbraco.UmbracoContext.PublishedContentRequest.Culture.TwoLetterISOLanguageName">@Umbraco.GetDictionaryValue("Home_menu_link")</a>
    </li>
    
    @foreach (var item in selection)
    {
        <li class="@(item.IsAncestorOrSelf(CurrentPage) ? "active" : null)">
            <a href="@item.Url">@item.Name</a>
        </li>
    }</ul>
    
  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jul 24, 2017 @ 16:11
    Alex Skrypnyk
    100

    Hi Surikus

    Can you republish your site and clear cache?

    Thanks,

    Alex

  • Surikus 2 posts 72 karma points
    Jul 24, 2017 @ 16:30
    Surikus
    0

    Thanks a lot! Problem solved.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jul 24, 2017 @ 16:30
    Alex Skrypnyk
    0

    Glad to help you!

    Have a nice evening!

Please Sign in or register to post replies

Write your reply to:

Draft