I’ve been working on this recipe site project and I need to store/output several different times for a recipe.
There is Prep, Cook, Inactive and Total time.
An example of the rendered code with microdata would be: <time datetime=”PT1H30M” itemprop=”totalTime”>1 hour 30 min</time>
I’m trying to sort the most efficient, and flexible way to store these 4 times that won’t paint me in any corners in the future. I would love if ee had only a time field instead of date/time field, but that’s not the case.
Aside from that, all I can think of is a grid.. Any other option I may not be considering?
Well yes and no. Since I need the hours and minutes to be separate (general flexibility and microdata generation), a time field would have been nice as I could output in the template using time formatting (%g and %i) etc. where needed and have only 4 fields (Prep, Cook, Inactive and Total time).
But with keeping the value of minutes and hours separate for the 4 durations in text fields or a grid results in 8 fields or columns respectively. That’s why I was just curious if there was another good option I hadn’t considered.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.