Copied to clipboard

Flag this post as spam?

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


  • Eudes 8 posts 79 karma points
    Aug 01, 2018 @ 16:49
    Eudes
    0

    How to create a Carousel in Umbraco using Nested Content and Bootstrap

    Hi, I followed this tutorial (https://codeshare.co.uk/blog/how-to-create-a-carousel-in-umbraco-using-nested-content-and-bootstrap/ ) to make a slide on the home page of my site but I see this error

    enter image description here

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 01, 2018 @ 17:03
    Jan Skovgaard
    0

    Hi Eudes and welcome to our :-)

    I'm not sure I will be able to provide you with the correct answer - But before anyone can provide some suggestions on what might be wrong you will need to set "customErrors" mode to "off" in the web.config file in the root of your Umbraco project. Then please share what the error message is.

    Afterwards you can switch the "customErrors" element back to "remoteOnly". But when developing locally it's a good idea to have it set to "Off" and when deploying to a live site it should be set to "RemoteOnly" for security reasons since exposing potential errors can be a security risk.

    I hope this makes sense? :-)

    /Jan

  • Eudes 8 posts 79 karma points
    Aug 01, 2018 @ 17:16
    Eudes
    1

    Hi Jan Skovgaard, Thank you I'll modify the file and I refer the question

  • Eudes 8 posts 79 karma points
    Aug 02, 2018 @ 10:13
    Eudes
    0

    Hi, Here is the line of the error thank you for helping me manage

    enter image description here

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Aug 02, 2018 @ 10:28
    Paul Wright (suedeapple)
    1

    Have you got

    @using Umbraco.Web.Models
    

    At the top of your view.

    Also, check the version of umbraco you are running. That "Related Link" property type, didnt get added until a recent version. So you may need to upgrade your site.

    V7.6+ I think...

    https://our.umbraco.com/documentation/getting-started/Setup/Upgrading/760-breaking-changes#property-value-converters-u4-7318

  • Eudes 8 posts 79 karma points
    Aug 02, 2018 @ 15:16
    Eudes
    0

    Hi, I have try to upgrade my site

    Download the .zip file for the new version you are upgrading to from https://our.umbraco.com/download

    Copy the following folders from inside the .zip file over the existing folders in your site:

    /bin /Umbraco /Umbraco_Client

    But here is the error that appears

    enter image description here

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Aug 02, 2018 @ 15:22
    Paul Wright (suedeapple)
    0

    You need to go through ALL the upgrade steps, which differ depending on what version you are upgrading from.

    The Umbraco Documentation provides very good info, on what files you may need to move/add/delete, when upgrading.

    Ensure you have done all the steps, or start from a "CLEAN" install, if this is just a hobby site, or a new site.

  • Eudes 8 posts 79 karma points
    Aug 03, 2018 @ 16:05
    Eudes
    0

    Hi, i'm using this code to manage my menu item :

    @inherits UmbracoViewPage
    

    @using Umbraco.Web.Models

    @{ IPublishedContent homePage = Umbraco.AssignedContentItem.AncestorOrSelf("home"); IEnumerable

    @helper RenderChildren(IEnumerable

    @helper RenderPrettyLink(IPublishedContent item) { RelatedLinks relatedLinks = item.GetPropertyValue

    if (prettyLink != null)
    {
        if (!item.GetPropertyValue<bool>("disableDropdown") && item.Children != null && item.Children.Where(x => x.IsVisible()).Any())
        {
            IEnumerable<IPublishedContent> childItems = item.Children.Where(x => x.IsVisible());
            bool textOnly = item.GetPropertyValue<bool>("textOnlyInNavigation");
            <li class="dropdown">
                <a class="dropdown-toggle @(textOnly ? "textonly" : null)" data-toggle="dropdown" aria-expanded="false" href="@prettyLink.Link">@prettyLink.Caption <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>
                    @RenderChildren(childItems)
                    </li>
                </ul>
            </li>
        }
        else
        {
            <li role="presentation"><a href="@prettyLink.Link" target="@(prettyLink.NewWindow ? "_blank" : null)">@prettyLink.Caption</a></li>
        }
    
    }
    

    }

    @helper RenderPageLink(IPublishedContent item) { bool isActive = Umbraco.AssignedContentItem.Id == item.Id;

    if (!item.GetPropertyValue<bool>("disableDropdown") && item.Children != null && item.Children.Where(x => x.IsVisible()).Any())
    {
        IEnumerable<IPublishedContent> childItems = item.Children.Where(x => x.IsVisible());
        bool textOnly = item.GetPropertyValue<bool>("textOnlyInNavigation");
        <li class="dropdown">
            <a class="dropdown-toggle @(textOnly ? "textonly" : null) @(isActive ? "active" : null)" data-toggle="dropdown" aria-expanded="false" href="@item.Url">@item.Name <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
                @RenderChildren(childItems)
            </ul>
        </li>
    }
    else
    {
        <li role="presentation" class="@(isActive ? "active" : null)">
            <a href="@item.Url">@item.Name</a>
        </li>
    }
    

    }

    So i want to have a menu navigation like this :

                               ![enter image description here][1]
    
  • Eudes 8 posts 79 karma points
    Aug 03, 2018 @ 16:10
    Eudes
    0

    I want to have a menu like it

Please Sign in or register to post replies

Write your reply to:

Draft