Giter VIP home page Giter VIP logo

Comments (18)

leekelleher avatar leekelleher commented on June 30, 2024

@JimBobSquarePants Was this an update from the previous version?

Initial thought would be to bump the ClientDependency version number, (unfortunately that's not automated).

I'll see if I can reproduce the error.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

It was.

I'd already bumped the ClientDependency version number without change and manually copied the scripts, views etc from the packages folder to be sure. Unfortunately the error still remains.

Chrome Version 43.0.2357.130 m (64-bit)

from umbraco-nested-content.

leekelleher avatar leekelleher commented on June 30, 2024

I can reproduce the error. There are a few things going on, which we'll need to resolve.

  1. If the Umbraco package was originally installed, then the NuGet package (via MyGet in this case) is installed, then it seems that Visual Studio will not overwrite the existing files. (e.g. v0.1.1 files remain).
  2. Due to a change in how Nested Content, we now reference DocTypes by Alias not GUID, (see the discussion on #4), the DataType prevalues need to be re-saved. (We should look to avoid that step).
  3. After manually copying over files from the extracted NuGet package, (e.g. the "/App_Plugins" folder and assembly), then the ClientDependency version number needs to be bumped.

After that, it started to work fine. Existing property data was still there on the node, (no data loss).

// CC'ing you in @mattbrailsford - I'm not 100% sure how to resolve the above issues.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

Ok....

So I think I did all of the above and it's still not working.

Could you clarify.

Due to a change in how Nested Content, we now reference DocTypes by Alias not GUID, (see the discussion on #4), the DataType prevalues need to be re-saved. (We should look to avoid that step).

I re-saved the datatype, is that all that entails?

Does this do anything to the db? I have completely cleared out everything and started again. Still throws the error?

from umbraco-nested-content.

leekelleher avatar leekelleher commented on June 30, 2024

That's the steps that I took to get it to work last night.

We'll need to bring @kjac and @mattbrailsford in to clarify this.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

@leekelleher I can send you the json returned by GetNodes, PostSave, and GetContentTypes if that helps? It looks to my untrained eye that the scope.alias property is not being output.

from umbraco-nested-content.

leekelleher avatar leekelleher commented on June 30, 2024

I'll really need @kjac or @mattbrailsford to take a look... my knowledge of the Angular side is somewhat lacking. (I believe they got notifications when I @ mention them?)

from umbraco-nested-content.

mattbrailsford avatar mattbrailsford commented on June 30, 2024

Yup, attach the JSON and I'll take a look.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

@mattbrailsford Github won't let me add zip files directly so here's a dropbox link. Cheers!

https://dl.dropboxusercontent.com/u/78716633/NestedContent.zip

from umbraco-nested-content.

mattbrailsford avatar mattbrailsford commented on June 30, 2024

Did you re-save the nested content prevalues?

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

I went into the data type and re-saved. I did it a couple of times changing to different Document types also. Is that what you mean?

from umbraco-nested-content.

mattbrailsford avatar mattbrailsford commented on June 30, 2024

yup, and did you resave the nested content values in the content editor?

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

I can't edit or save preexisting items in the content tree nor add new ones.

My property containing nested content is stored in a composite document type. I have re-saved that, the doctype that is nested, and the doctypes that include the composite type.

All JavaScript files are definitely up to date also as I have fully cleared out and bumped client dependency.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

Here's the DataType prevalue saved value from the db.

[
  {
    "ncAlias": "HeadlineSlide",
    "ncTabAlias": "Headline Slides",
    "nameTemplate": "{{title}}"
  }
]

from umbraco-nested-content.

mattbrailsford avatar mattbrailsford commented on June 30, 2024

Is this anywhere public I would be able to see it from?
On 6 Jul 2015 5:23 pm, "James Jackson-South" [email protected]
wrote:

Here's the DataType prevalue saved value from the db.

[
{
"ncAlias": "HeadlineSlide",
"ncTabAlias": "Headline Slides",
"nameTemplate": "{{title}}"
}
]


Reply to this email directly or view it on GitHub
#19 (comment)
.

from umbraco-nested-content.

JimBobSquarePants avatar JimBobSquarePants commented on June 30, 2024

@mattbrailsford I'll drop you a message on Skype with details.

from umbraco-nested-content.

kjac avatar kjac commented on June 30, 2024

Hmmm ... looks like there's no scaffold doc type to clone. Could you please try adding a console.log() in the addNode() function of nestedcontent.controllers.js (under App_Plugins > NestedContent > Js) right after var scaffold = $scope.getScaffold(alias); and check the value of the scaffold - e.g. console.log("$scope.addNode", alias, scaffold);?

from umbraco-nested-content.

leekelleher avatar leekelleher commented on June 30, 2024

Closing this issue, as @JimBobSquarePants had a Skype chat with @mattbrailsford, which they found it was a DataType config issue, and not an immediate bug with Nested Content.

from umbraco-nested-content.

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.