Git Product home page Git Product logo

Comments (4)

ArnoldV avatar ArnoldV commented on July 17, 2024

Yes, we have the same issue, will try to fix it and send a pull requests.

our code that breaks is:

@inherits UmbracoViewPage<Lecoati.LeBlender.Extension.Models.LeBlenderModel​>

@{
    var currentPage = Lecoati.LeBlender.Extension.Helper.GetCurrentContent();

    foreach (var child in currentPage.Children.Where(c => !c.GetPropertyValue<bool>("umbracoNaviHide")))
     {
         @Html.GetGridHtml(child, "layoutGrid")
     }
}

from leblender.

ArnoldV avatar ArnoldV commented on July 17, 2024

Looking into this it seems te be caused by this line:

ViewDataDictionary datas = new ViewDataDictionary(this.ViewData) { { "editorAlias", Model.editor.alias }, { "frontView", frontView } };

if you remove the 'this.ViewData' from the creation of the new ViewDataDictionary things work.
It might be that I am overlooking something though that will now break?

from leblender.

ArnoldV avatar ArnoldV commented on July 17, 2024

So basically this commit should be reverted: 3516de3

from leblender.

Bitmapped avatar Bitmapped commented on July 17, 2024

This revert causes problems for me because properties I add to ViewData from my _ViewStart file are now lost. This needs to go back to the drawing board for a better fix.

from leblender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.