Keyword

How to delete date in extrafield

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168290 by TheAnt
How to delete date in extrafield was created by TheAnt
Helo
I need to delete the date in date extrafield. It is not a requested field, I can only change the date, not to delete.
Please, how to?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168300 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
You are right, the flatpickr (the lib used for the calendar) marks the field as read only.
Let me see if a clear button can be added.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168301 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
Would something like this be useful in your case?
github.com/flatpickr/flatpickr/issues/229

Please Log in or Create an account to join the conversation.

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168305 by TheAnt
Replied by TheAnt on topic How to delete date in extrafield
Yes, it should be right. How to?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168324 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
We will try to incorporate it to the latest release.
If you have the required coding skills the Flattplckr calendar is initialised here: github.com/getk2/k2/blob/master/media/k2/assets/js/k2.backend.js#L501-L504

Please Log in or Create an account to join the conversation.

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168328 by TheAnt
Replied by TheAnt on topic How to delete date in extrafield
Sorry, I'm not skilled enough for this. I will wait your update. Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168335 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
Give it a shot :)
Worst case, reinstate the original file.

Please Log in or Create an account to join the conversation.

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168358 by TheAnt
Replied by TheAnt on topic How to delete date in extrafield
I don't understand what to do.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168364 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
OK, allow some time then for this feature to be implemented.

Please Log in or Create an account to join the conversation.

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168449 by TheAnt
Replied by TheAnt on topic How to delete date in extrafield
Hi Krikor, thanks for reply. Please, what you mean with “some time”?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168464 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
It was a polite term of, unfortunately I cannot provide an accurate ETA.
I will open the issue on Github so you track it progress.

Please Log in or Create an account to join the conversation.

  • TheAnt
  • TheAnt's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 10 months ago #168472 by TheAnt
Replied by TheAnt on topic How to delete date in extrafield
It's a pity, the site is practically ready and the only problem is the date to be deleted in the articles. I do not understand in which file should be made the changes suggested by the link you indicated.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168475 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to delete date in extrafield
The file which needs to be changed is github.com/getk2/k2/blob/master/media/k2/assets/js/k2.backend.js#L501-L504
But it is not that simple, it needs to be tested across multiple browsers and Joomla! versions.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum