Copied to clipboard

Flag this post as spam?

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


  • Christina 127 posts 390 karma points notactivated
    Jun 18, 2018 @ 08:42
    Christina
    0

    How can I have two pages of same id when I'm changing doctype

    Hi

    I have change doctype and now i have two pages with the same name and id

    How can i Get rid of one? Many thanks Christina

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jun 18, 2018 @ 08:57
    Alex Skrypnyk
    0

    Hi Christina,

    It's not possible, can you show a screenshot that you have 2 pages with the same ID?

    Alex

  • Christina 127 posts 390 karma points notactivated
    Jun 18, 2018 @ 10:45
    Christina
    0

    Hi Alex Thanks for helping me, its not in backoffice its in the main menu who is rendering menu.

    I tried to delete the pageid(1080) that i had change documenttype for but it still showing two pages in menu and this in backoffice

     This document is published but its url would collide with content /home/page(id=1080)
    
        @{
        var site = Model.Site();
        var selection = site.Children.Where(x => x.IsVisible());
    }
    
    
    
    <ul>
        <li><a href="/" id="show-logo" class=" margin-top-menu"></a></li>
        <li class="@Html.Raw(Model.Id == site.Id ? "is-active" : "")"><a class="nav-link " href="@site.Url">@site.Name</a></li>
        @foreach (var item in selection)
        {
            <li class="@(item.IsAncestorOrSelf(Model) ? "is-active" : null)"><a class="nav-link " href="@item.Url">@item.Name</a></li>
        }
    </ul>
    
Please Sign in or register to post replies

Write your reply to:

Draft