×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Change format of Calendar (J_Calendar)
Russell English
Bakır Üye
Posts: 21
10 yıl 1 ay önce #445
Yazan: Russell English
Change format of Calendar (J_Calendar), Russell English tarafından oluşturuldu
Is there anyway to change the format of the date that is created when selecting a date from the J_Calendar?
It appears to be in DATE_FORMAT_LC4 , but I can't find this to create a content override
It appears to be in DATE_FORMAT_LC4 , but I can't find this to create a content override
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
10 yıl 1 ay önce - 10 yıl 1 ay önce #447
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından Change format of Calendar (J_Calendar) konusunda yanıtlandı
Hi Russell!
Long time no see. Hope this helps, it's Joomla Calendar Field standard behaviour: docs.joomla.org/Calendar_form_field_type
Long time no see. Hope this helps, it's Joomla Calendar Field standard behaviour: docs.joomla.org/Calendar_form_field_type
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Son Düzenleme: 10 yıl 1 ay önce Düzenleyen:Andres Maeso
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Russell English
Bakır Üye
Posts: 21
10 yıl 1 ay önce - 10 yıl 1 ay önce #448
Yazan: Russell English
Russell English tarafından Change format of Calendar (J_Calendar) konusunda yanıtlandı
Thanks Andres, just found the XML file I need to edit.
Son Düzenleme: 10 yıl 1 ay önce Düzenleyen:Russell English
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Russell English
Bakır Üye
Posts: 21
10 yıl 1 hafta önce #480
Yazan: Russell English
Russell English tarafından Change format of Calendar (J_Calendar) konusunda yanıtlandı
I've tried editing the XML file, but it's not working correctly. Also, accourding to your wiki here www.component-creator.com/wiki/index.php...ndar_(Date_Selector) there should be a format option within the field editor in Component Creator, but there doesn't appear to be.
Any ideas please?
Any ideas please?
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
10 yıl 1 hafta önce #482
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından Change format of Calendar (J_Calendar) konusunda yanıtlandı
Hi Russel
For Joomla to be multilingual it has to store the date in a string called date_format_*, for that to be used it has to be converted from language file to string using JText class. Joomla calendar Field doesn't do that. To achieve that you would need to do your own calendar field (based on the joomla one) and convert that language string into the desired format.
Hope it helps
For Joomla to be multilingual it has to store the date in a string called date_format_*, for that to be used it has to be converted from language file to string using JText class. Joomla calendar Field doesn't do that. To achieve that you would need to do your own calendar field (based on the joomla one) and convert that language string into the desired format.
Hope it helps
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Russell English
Bakır Üye
Posts: 21
10 yıl 1 hafta önce #495
Yazan: Russell English
Russell English tarafından Change format of Calendar (J_Calendar) konusunda yanıtlandı
Thanks Andres, I've tried to change the date format (in the XML) to ="%d-%m-%Y" from here docs.joomla.org/Calendar_form_field_type but for some reason, whenever the date is entered (using the component created by component-creator) and then saved, the date is saved as 000-00-00
I've tried this on several components as outputted by component-creator and they all give the same result.
Any ideas?
I've tried this on several components as outputted by component-creator and they all give the same result.
Any ideas?
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.103 saniye