×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Change format of Calendar (J_Calendar)
Russell English
Junior Member
Posts: 21
10 år 1 månad sedan #445
av Russell English
Change format of Calendar (J_Calendar) skapades av Russell English
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
Be Logga in eller Skapa ett konto ansluta till konversationen.
Andres Maeso
Platinum Member
Posts: 338
10 år 1 månad sedan - 10 år 1 månad sedan #447
av Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Den här e-postadressen skyddas mot spambots. Du måste tillåta JavaScript för att se den.
Svar från Andres Maeso i ämnet Change format of Calendar (J_Calendar)
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.
Den här e-postadressen skyddas mot spambots. Du måste tillåta JavaScript för att se den.
Last edit: 10 år 1 månad sedan by Andres Maeso.
Be Logga in eller Skapa ett konto ansluta till konversationen.
Russell English
Junior Member
Posts: 21
10 år 1 månad sedan - 10 år 1 månad sedan #448
av Russell English
Svar från Russell English i ämnet Change format of Calendar (J_Calendar)
Thanks Andres, just found the XML file I need to edit.
Last edit: 10 år 1 månad sedan by Russell English.
Be Logga in eller Skapa ett konto ansluta till konversationen.
Russell English
Junior Member
Posts: 21
10 år 1 vecka sedan #480
av Russell English
Svar från Russell English i ämnet Change format of Calendar (J_Calendar)
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?
Be Logga in eller Skapa ett konto ansluta till konversationen.
Andres Maeso
Platinum Member
Posts: 338
10 år 1 vecka sedan #482
av Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Den här e-postadressen skyddas mot spambots. Du måste tillåta JavaScript för att se den.
Svar från Andres Maeso i ämnet Change format of Calendar (J_Calendar)
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.
Den här e-postadressen skyddas mot spambots. Du måste tillåta JavaScript för att se den.
Be Logga in eller Skapa ett konto ansluta till konversationen.
Russell English
Junior Member
Posts: 21
10 år 3 dagar sedan #495
av Russell English
Svar från Russell English i ämnet Change format of Calendar (J_Calendar)
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?
Be Logga in eller Skapa ett konto ansluta till konversationen.
Sidan laddades på: 0.098 sekunder