Hi Simon,
Thanks for your detailed explanation about how to install modules manually.
I have followed the steps and am able to install it correctly. After Navigating to admin section , when I tried to create a blog post I am getting below error
getting this error message
But the published date text field was automatically taking date in this
Not able to enter this format
.
Can you please help me where I need to change date format from
Thank you,
Siri
Manually Install blog Module
3 years ago
3 years ago
#1
3 years ago
#2
It's been a while, wishing you and the family a safe and happy New Year.
You can change the format in the validation to English instead of American format. Open 'blog_notices.php' and edit the 'submit' method to:
I also changed this line as it was returning null on update
The form input field for the datepicker needs a little help sometimes too. As dates are stored as Y-m-d (eg. today is 2023-01-20) in the database and when retrieved output to the form field which confuses the datepicker. I would change line 20 of the 'create' view in 'Blog_notices.php' to
This will convert an existing record to day-month-year format, so when you open it, the datepicker gets the date right, and the ternary will insert today's date on a new record.
I hope this helps :)
You can change the format in the validation to English instead of American format. Open 'blog_notices.php' and edit the 'submit' method to:
I also changed this line as it was returning null on update
The form input field for the datepicker needs a little help sometimes too. As dates are stored as Y-m-d (eg. today is 2023-01-20) in the database and when retrieved output to the form field which confuses the datepicker. I would change line 20 of the 'create' view in 'Blog_notices.php' to
This will convert an existing record to day-month-year format, so when you open it, the datepicker gets the date right, and the ternary will insert today's date on a new record.
I hope this helps :)
3 years ago
#3
Hi Simon,
First of all many thanks for your wishes. May GOD bless you and your family also. I followed your instructions and every thing working fine.
Thank you ,
Siri
First of all many thanks for your wishes. May GOD bless you and your family also. I followed your instructions and every thing working fine.
Thank you ,
Siri