U4-2154 - v4.11.6 Navigation razor template throws error

Created by Blake Clerke 25 Apr 2013, 16:22:08 Updated by Sebastiaan Janssen 01 Jun 2013, 14:24:52

In version 4.11.6 when you create a new scripting file and select the Navigation template in the .cshtml language the script throws an error. There is an extra quotation mark in the li class styles that throws off the formatting.

This is the code that is given by default (line 18 has the extra quote):

@inherits umbraco.MacroEngines.DynamicNodeContext

@* Macro to display child pages below the root page of a standard website. Also highlights the current active page/section in the navigation with the css class "current". *@

@{ @*Get the root of the website *@ var root = Model.AncestorOrSelf(1); }

    @foreach (var page in root.Children.Where("Visible")) {
  • @page.Name
  • }

Comments

Sebastiaan Janssen 31 May 2013, 16:04:52

This is now fixed from 6.0.0 onwards


Sebastiaan Janssen 01 Jun 2013, 14:24:52

Sorry about that, someone is marking a bunch of issues as fixed (they're now banned).


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Very Easy

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 4.11.6

Due in version:

Sprint:

Story Points:

Cycle: