Welcome, Guest
Username: Password: Remember me

TOPIC: minutes and seconds only in time

minutes and seconds only in time 01 Jan 2014 20:44 #11876

  • beasty1711
  • beasty1711's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Thank you received: 1
  • Karma: 0
The time filed only allows HH:MM:SS however i don't care about the hours as they are always 00, i only need to store minutes and seconds.

before i start hacking through code, is there an easy way via the builder?
The administrator has disabled public write access.

minutes and seconds only in time 02 Jan 2014 10:12 #11879

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi,
One option would be to build your options in an enumeration field type maybe? This way, you can easily limit how you'd like time to increment both mins and seconds and make available to select via a combo. However, if you want to allow every single second, it could be time consuming to build.

What is the field used to capture - I mean, the mins and secs of what? Duration of an activity?

Anyway, hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

minutes and seconds only in time 03 Jan 2014 12:51 #11893

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Maybe a new custom UI for that ?

The format string for you is :
i:s
You gonna need to change it in the XML file.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

minutes and seconds only in time 03 Jan 2014 17:18 #11900

  • beasty1711
  • beasty1711's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Thank you received: 1
  • Karma: 0
audibleid wrote:
Hi,
One option would be to build your options in an enumeration field type maybe? This way, you can easily limit how you'd like time to increment both mins and seconds and make available to select via a combo. However, if you want to allow every single second, it could be time consuming to build.

What is the field used to capture - I mean, the mins and secs of what? Duration of an activity?

Anyway, hope it helps,

Gez

Its to record times for races so it could be anything, but it's sorted now thanks. I forked the model to still store it as HH:mm:ss and changed the format string for the input to i:s so the user only enters the min and seconds
Last Edit: 03 Jan 2014 17:19 by beasty1711. Reason: typo
The administrator has disabled public write access.

minutes and seconds only in time 05 Jan 2014 08:51 #11905

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
A new UI would definitely be a good way to go...

I found this GitHub Repo that may be of interest to you: vitalets.github.io/combodate

It isn't just a time picker, it includes dates too but can be setup with whatever date/time formats you require. Therefore, it could be quite a powerful basis for a new jDom Class.

Anyway, hope it helps!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
The following user(s) said Thank You: admin

minutes and seconds only in time 05 Jan 2014 15:22 #11908

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Thank you Gez,

nice one.
I took note for this implementation. Actually I can acomplish only 10% of my wishes, so it will come one rainy day for sure, but when ?...

Remember that JDom is on github now, so contributors are welcome.
github.com/Cook-Self-Service/JDom

I started recently with github, it is not so difficult I was thinking before to get in touch with it.
(I say this for newbies)
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

minutes and seconds only in time 05 Jan 2014 15:32 #11909

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
No probs! Indeed, I will be getting into JDom quite heavily in the next week or so... :cheer:

@admin - on a separate note, I decided to read FoF docs from beginning to end this morning - phew - isn't that something? Cook + FoF will kick some serious a%s! Have you decided exactly which FoF features (and in which order) you will start adopting in Cook yet? What looks really interesting is the XML for defining views etc... POWERFUL STUFF!

Thanks,

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

minutes and seconds only in time 05 Jan 2014 15:49 #11910

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
YES.
In facts.

But I take my time, because I do not want to miss the release. It will be released wintin 6 months I think not before.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.118 seconds

Get Started