Comments (6)
Should be very easy. Change the input type, from "date" to "datetime-local" in the MetaHelper.
from metamagik.
Tks a lot for the direction / frankly I'm not a programmer thus I attempted to change the field "data_type" @ table "metadata_types" from DATE to DATETIME or DATETIME-LOCAL by PHPMyAdmin in the DB, but with no success...
Well hope the MetaHelper will help :-)
from metamagik.
This line, specifically
MetaMagik/Helper/MetaHelper.php
Line 30 in 90a5d81
from metamagik.
Lovely!!!
I managed to re-define the date to date&time :-)
same time I tried not just re-define but ADD the new format by copying the function renderDateField, unfortunately with no further success yet :-)
Anyway you assisted my a lot!!! Thank you again!
from metamagik.
If you want to add it, you would have to add the type as well, and add the option in the template. It wouldn't be hard, but there is more to it than meets the eye.
I could add it, but don't have a working server anymore, haven't played with kanboard in a while. So...i wouldn't be able to test it.
Try this:
Add the option here
By just adding a line for 'datetime' => 'Date Time'
Then copy the renderDateField function in the helper, but call it renderDateTimeField. Change to datetime-local like before.
Then in the renderMetaFields function of the helper, add an else if for the new datetime type, just copy the else if for date, and change date to datetime, and have it point to the new renderDateTimeField function, instead of renderDateField
MetaMagik/Helper/MetaHelper.php
Lines 140 to 141 in 90a5d81
I think that should do it, unless I'm forgetting something
from metamagik.
IT
WORKS
PERFECTLY
!
Thanks for your efforts!
from metamagik.
Related Issues (20)
- Keep values of custom fields if one required field is empty HOT 3
- About $ sign HOT 11
- Edit Fields HOT 3
- Feature request HOT 10
- Referencing custom field in automatic action HOT 5
- Custom field caption HOT 3
- metakey and metaval filters seem not to be working HOT 9
- using API with MetaMagic HOT 25
- [Feature request] Text area fields should be the same width as the parent column HOT 1
- Go
- The task creator will always be current user when import a task. HOT 2
- Feature Request: Label Custom Field Columns HOT 7
- I am unable to select and copy text from metamagic tables in task view HOT 1
- Sales pipeline, amounts and percentages HOT 6
- No Webhook-Notification upon changes to meta field values
- Cannot unassign tasks when MetaMagik is active HOT 4
- Autocomplete function for fields with many values
- Bug with MetaMagik HOT 1
- Add data-key and data-value to HTML elements
- Key-Value from DB with giving tablename,keycolumn,valuecolumn stop working HOT 1
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 metamagik.