Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Custom format for date fields 8 years 8 months ago #1468

  • Mmax2
  • Mmax2's Avatar Topic Author
My suggestion for this excellent software is to get the possibility of custom format for date fields. I don't know if this is already possible without changing the code.
Thank you!
Massimo

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

Re: Custom format for date fields 8 years 8 months ago #1469

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1183
  • Karma: 21
  • Thank you received: 224
Do you mean the STYLE or the functionality?

You can style the form-fields individually by its ID. (Name of the field collumn)

E.g.
#mydate { float: right; width: 100px; }

The pro version hat a plugin system.

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

Re: Custom format for date fields 8 years 8 months ago #1476

  • Mmax2
  • Mmax2's Avatar Topic Author
When I view my catalog template, if the field is a date one I obtain this result:
31 Maggio 2010
But I prefer displaying 31/05/2010 because it's narrower and I have little space.
Thank you very much for your reply!
Massimo

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

Re: Custom format for date fields 8 years 8 months ago #1477

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1183
  • Karma: 21
  • Thank you received: 224
Oh you mean the field display and not the form-field for date.

JooDB uses DATE_FORMAT_LC3 from the en-GB.ini file respective it-IT.ini
in /languages/en-GB.

So if you want to change, use the it-IT.override.ini
in /languages/it-IT/overrides
Or whatever your frontend-language is.

And inset the following:
DATE_FORMAT_LC3="d/m/Y"
The following user(s) said Thank You: Mmax2, caseelse

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

Re: Custom format for date fields 8 years 8 months ago #1478

  • Mmax2
  • Mmax2's Avatar Topic Author
Many many thanks!
Massimo

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

Re: Custom format for date fields 8 years 5 months ago #1813

  • tiren82
  • tiren82's Avatar
  • Offline
  • Posts: 1
  • Thank you received: 0
Does this work for a time display format as well?

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

  • Page:
  • 1
Moderators: Dirkjoest