GithubHelp home page GithubHelp logo

Comments (7)

kjac avatar kjac commented on June 3, 2024

Weird! I'm stuck in Copenhagen without my laptop (whine!) but if I'm not completely mistaken I was the last one to mess about with the property validators... I'll have a look at it tomorrow when I get home :-)

from archetype.

kjac avatar kjac commented on June 3, 2024

Ok this is more nasty than I thought.

The validation IS actually triggered, but for some reason the validation result is ignored by Umbraco, and the submit proceeds as if nothing happened.

What's worse... validation of nested Archetypes does not work at all. Looks like the validation needs a redo. I'll submit a PR soon with a suggestion on how to solve both issues.

First tho', we need to decide on how to perform validation. @kgiszewski maybe you want to weigh in here too :)

Archetype currently validates the property editors while the editor is entering data, thus giving an immediate feedback on the validity of the property. A consequence of this is that the invalid properties are highlighted immediately upon page load.

The "Umbraco way" of validating is to let the editor enter whatever they want and perform validation on submit. This obviously does not give an immediate feedback to the editor, but on the upside it leaves all property editors in their valid appearance until submit, which one might argue is a nicer editing experience?

So... do we stick with the Archetype way of doing validation (immediate feedback and a bunch of red property editors) or do we adopt the Umbraco way of doing it? In my opinion we should do it the Umbraco way, even if the immediate feedback is a nice feature.

On a side note, the last commit (4785c85) seems to have broken the validation highlighting of invalid fieldsets and property editors?

from archetype.

kjac avatar kjac commented on June 3, 2024

Submitted PR #137 to handle this.

from archetype.

kjac avatar kjac commented on June 3, 2024

By the looks of things, this should be fixed with v1.2. I think :)

from archetype.

rmillo8 avatar rmillo8 commented on June 3, 2024

Hi, I noticed that validation now only works for the last field.

If the first (or second, etc..) field is required, and left empty, the page will be published.
If the last field is required, and left empty, the page will prompt a "Property has errors" message.

I have Archetype latest 1.4.1 version.

from archetype.

kgiszewski avatar kgiszewski commented on June 3, 2024

@kjac @tomfulton Any chance the alias names might be at play here?

from archetype.

kjac avatar kjac commented on June 3, 2024

Hmm it used to work just fine. I'll have a look at it when I get home next
week.
On 6 Aug 2014 16:41, "Kevin Giszewski" [email protected] wrote:

@kjac https://github.com/kjac @tomfulton https://github.com/tomfulton
Any chance the alias names might be at play here?


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

from archetype.

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.