Code Monkey home page Code Monkey logo

Comments (2)

rtpHarry avatar rtpHarry commented on September 13, 2024

@TheLogan

Thanks for your feedback. I've just had a look through this bug report and I'll be submitting a pull request to resolve your issues in a minute. I just thought I would address them below as well.

Side note: You have used some angle brackets in your issue which meant I couldn't see parts of this issue. I eventually pulled it up using the API which gave me raw access so I could see what you had typed but in future if you want to show <tags> then you can use the backtick or four indented spaces :)

Wrong Namespaces (using Contrib)

Yes, this is a typo in the article, the source code was correct so I have updated the tutorial to match.

Wrong Namespaces (ContentFieldDriver<Fields.DateTimeField>)

I was confused by this for a while and even opened a StackOverflow question to get help on it. The project compiled and worked but I didn't know why. Then I went back to basics and got out my copy of C# 4.0 in a nutshell. This is what's known as a partially qualified namespace and it is valid. When you say namespace CustomFields.DateTimeField.Drivers you are actually nesting three namespaces within each other. The code says <Fields.DateTimeField> because when it doesn't find it the Drivers name space it goes up to CustomFields.DateTimeField and then finds CustomFields.DateTimeField.Fields

.timepickr();

This is actually worse than the issue you reported. The script isn't included in the project and there isn't any ResourceManifests.cs file setting this up. I'm going to open a separate issue here as its going to need a lot of work and changes to the download file. It looks like the full module on codeplex that this tutorial is based off also has this bug.

Editing the csproj

Yes this is confusing and personally I don't know why this is even included as it doesn't seem a likely use-case to be editing an MVC website outside of Visual Studio. Perhaps the situation was different back when this was written but VS Community edition was released yesterday so I think we will be revisiting all of this soon.

I've reworded it slightly to make it less confusing.

Module doesn't work

I agree, as I said above I will revisit this in more detail and improve it.

from orcharddoc.

TheLogan avatar TheLogan commented on September 13, 2024

Glad I could be of service
And I'll see to remembering your note about brackets =)

from orcharddoc.

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.