85 Posts
yuberlin
10 years ago
5
Topic

Storage with calendar field is not working. I tried every possible way for storage but database is allways showing "0000-00-00 00:00:00". The Field in the form is blank after saving. I tried Datetime an Timestamp. Joomla! 2.5.11 an Seblod 3.1.1.

Get a VIP membership
595 Posts
Octopoos - Mehdi
10 years ago
0
Level 1

Hi yuberlin,

Thank you for your post and welcome to SEBLOD forum.

Before you say, "Storage with calendar field is not working", can you send us the storage setting of your calendar field?

Regards,
Mehdi.

85 Posts
yuberlin
10 years ago
0
Level 1

Hi Mehdi,

Thanks for your reply. Like i said...i tried different way for storage. But for my other fields i normally use "custom | free | cck_store_item_content | my_fieldname". For storage type (Alter) i tried different thinks, but only "text" is working. Isnt "Datetime" the right way to store this data in db?

595 Posts
Octopoos - Mehdi
10 years ago
0
Level 1

Hi yuberlin,

If you would like to save date starting from seblod form, you can not use free storage.
You should use :

  • for stadard format (i advise this format) :
    • standard | article | column_name_in_database, 
    • standard | category | column_name_in_database or 
    • standard | user | column_name_in_database
  • for custom format:
    • custom | article | column_name_in_database,
    • custom | category | column_name_in_database or 
    • custom| user | column_name_in_database

Regards,
Mehdi.

85 Posts
yuberlin
10 years ago
0
Level 1

Hi,

The fields are dates defining start (field_event_start) and end (field_event_end) of an event. When entering this event, admin must define start and end date by this fields. This is not possible to define as free?

Its really hard to understand this database storage stuff for a frontend guy like me sometimes...

595 Posts
Octopoos - Mehdi
10 years ago
0
Level 1

Hi,

For your case, i advise to create to calendar fields with these storage settings (this solution works fine):

  • standard | article | date_start
  • standard | article | date_end

Regards,
Mehdi

Get a Book for SEBLOD