Comments (7)
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.
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.
Submitted PR #137 to handle this.
from archetype.
By the looks of things, this should be fixed with v1.2. I think :)
from archetype.
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.
@kjac @tomfulton Any chance the alias names might be at play here?
from archetype.
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)
- Content picker (and probably media picker) label templates don't work in 7.6 HOT 2
- Fail to convert the value when GetValue<int>() ? HOT 4
- Console Error Relating to Preview Images HOT 5
- Missing Placeholder Translation Text for Icon Filter HOT 8
- Convert DataType Drop Down to Select2 HOT 5
- Allow Complex (e.g., JSON) Default Property Values HOT 4
- ToPublishedContentSet Throws Exception for Orphaned Properties HOT 2
- Support Promises and Injected Services for Label Templates HOT 15
- Automatic Newer Version Checks HOT 9
- Fieldset Labels Don't Sanitize Rich Text Immediately HOT 16
- Custom label template broken HOT 12
- Label Templates Not Fully Resolving in Umbraco 7.4.3 HOT 11
- Upgrade Check Ironically Fails to Run on Upgraded Archetype Installs HOT 2
- Label Template not working after Upgrade to 1.17.1 HOT 12
- Courier bundled in (again) HOT 4
- Archetype has been sunset HOT 16
- Fail to convert the value when GetValue<int>() ? HOT 3
- Label template empty until opening archetype HOT 2
- Automapper excpetion -Archetype.Api.ArchetypeDataTypeController
- Update archetype fieldset model field HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archetype.