giladk / u7-grid-data-type Goto Github PK
View Code? Open in Web Editor NEWGrid data type for umbraco 7
Grid data type for umbraco 7
It could be fine if the RTE could be embedded direct in the cell. Maybe there could be an option if you want it inline or in modal.
Datepicker not populating correctly Umbraco 7.2.8
I ran into this in a project upgraded from 7.1.x to 7.2.8. The problem is due to some Umbraco changes to their stock DatePicker that break the way DTG was using them. I believe this commit is the one that introduced the issue (umbraco/Umbraco-CMS@43f99e1), but several others are at play too.
In this commit, they essentially introduced a "render model" and use that to store the "live" picked value, then when the page is saved (via formSubmitting event), they assign that value to $scope.model.value, which is what DTG is reading. The problem is that DTG also relies on the formSubmitting event, but DTG's is firing first, before the DatePicker has had a chance to assign to $scope.model.value, thus it sees an empty value. Even though you see the picked value in the textbox at first, DTG never actually knows about it since it's not on $scope.model.value yet. This worked before because the datepicker was bound directly to $scope.model.value.
Unfortunately there is no way to control the order of formSubmitting events, and in general it's not a reliable way to handle nested properties.
That being said, here is one hacky workaround that does fix the issue But, I don't know what other problems it might introduce without spending some more time on this, so you'll definitely want to test. This is more to prove the issue and not meant to be a production fix.
The hack: /umbraco/Js/umbraco.controllers.js After line 4849, add: $scope.model.value = $scope.datetimePickerValue;
Some ideas for a proper fix:
Update DTG to force formSubmitting events, similar to Archetype
Update DTG to read the DatePicker value differently, maybe by accessing the render model instead or querying the textbox directly
Hi, I have trouble with datetimes not being valid after adding a new row or sorting the rows. The dates needs to be reset to be valid. This happens in Firefox and Safari.
The umbraco version is 7.2.8.
The date are set to have the date and time setting
Previous I used the hack mensioned in this issue: #1
The hack: /umbraco/Js/umbraco.controllers.js After line 4849, add: $scope.model.value = $scope.datetimePickerValue;
Can it be somehow a problem from the hack or is it from the plugin? Is there something I can do to fix this problem? I belive it has to do with the format, but can be wrong.
Thankful for any help here
/Linnea
I developed a new feature. I suggest that you include it in the plugin :
I just add a few lines of code into two files :
Web/App_Plugins/u7dtg/propertiesPrevalues/contentpicker.html
Web/App_Plugins/u7dtg/u7dtg.controller.js
Code :
changed-files.zip
Steps to reproduce:
I have implemented a non-ideal fix for this by adding the following line of css to u7dtg.style.css:
[u7dt-rte].modal {z-index: 2001;}
this puts the RTE modal and subsequent media picker drawer above the modal overlay, but ideally the modal overlay would lie over the RTE modal but beneath the media drawer when it is open. However to accomplish this, the modal overlay would need to also be inside of the RTE modal element.
How is this code compatible to umbraco 9? Nice to have an upgrade of this useful add-on data type. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.