Giter Club home page Giter Club logo

Comments (9)

mattbrailsford avatar mattbrailsford commented on June 9, 2024

Are you trying to resolve the RTE value through Ditto? or are you saying
Ditto is stopping you from rendering any RTE value with a macro in
altogether? ie, just trying to render it via @Umbraco.Field()

On 18 June 2015 at 10:48, Thor Jakobsen [email protected] wrote:

I'm trying to render a macro in a richtext editor, and it fails in the
frontend.

If i disable Ditto i renders fine.

YSOD
[image: image]
https://cloud.githubusercontent.com/assets/794203/8228544/f0ec5d1e-15af-11e5-82bc-a1fc49875ea1.png


Reply to this email directly or view it on GitHub
#93.

from umbraco-ditto.

leekelleher avatar leekelleher commented on June 9, 2024

Hi @dunston, I see from the stack-trace that you're using the ModelFactory. Other people have ran into issues with using it too. Personally I stopped using it as I hit some issues - that I couldn't fix.

We'll take a look, but to set expectations - don't hold your breath 🙀

from umbraco-ditto.

JimBobSquarePants avatar JimBobSquarePants commented on June 9, 2024

Quite a few of the issues associated with eager loading in the manner we do (which conflicts with ModelFactory) can be solved by marking the property as virtual which invokes lazy loading.

Could you give that a try?

from umbraco-ditto.

leekelleher avatar leekelleher commented on June 9, 2024

@dunston Any updates? Did marking the property with virtual work for you?

from umbraco-ditto.

dunston avatar dunston commented on June 9, 2024

@leekelleher sorry the delay.

Making it virtual did the trick thx.

from umbraco-ditto.

JimBobSquarePants avatar JimBobSquarePants commented on June 9, 2024

Excellent! Another win for the ProxyFactory! 🎆

from umbraco-ditto.

leekelleher avatar leekelleher commented on June 9, 2024

Cool, thanks for the update @dunston.

from umbraco-ditto.

naepalm avatar naepalm commented on June 9, 2024

Just ran into the same problem and marking the property virtual worked. Thanks guys!

from umbraco-ditto.

JimBobSquarePants avatar JimBobSquarePants commented on June 9, 2024

Great to hear!

from umbraco-ditto.

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.