Add this line
form->renderField('created'); ?>In a override of the front-end edit like
template\html\com_content\form\edit.php
Possible to edit and save the created date of a article in the front-end editor
Date is loaded but not saved
In site\components\com_content\models\article.xml
Add the following lines to the field created in the article.xml
filter="user_utc"
showtime="false"
I have changed the field created:
< field
name="created"
type="calendar"
label="Aanmaakdatum"
translateformat="true"
id="created"
filter="user_utc"
showtime="false"
/ >
Joomla version 3.8.11
It is possible to load the created date of a article but if you edit and save Joomla will not save it. This is caused by the filter of Joomla which will clear the value after submitting the changes.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-01 15:34:59 |
Closed_By | ⇒ | joomla-cms-bot |
Status | Closed | ⇒ | Expected Behaviour |
Closed_By | joomla-cms-bot | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/21349
Closed as expected Behaviour.
This is intended. Users are not allowed to change certain data in frontend. If you want to change this, you can create a content plugin with
onContentPrepareForm
event and set desired field attributes there.