Hello, I want to add a date field to the frontend view of an item edit form to allow the users to specify a "Finish Publishing" date.
To do so, I have created a new core field in the flexicontent_fields database because I could not find any other way of creating core fields. My Finish Publishing field is actually just a copy of the "modified" core field with some modifications:
Code:
INSERT INTO `jml_flexicontent_fields`
(`field_type`, `name`, `label`, `description`, `isfilter`, `iscore`, `issearch`, `isadvsearch`, `positions`, `published`, `attribs`, `checked_out`, `checked_out_time`, `access`, `ordering`)
VALUES
('publish_down', 'publish_down', 'Finish publishing', 'Publish until date', 0, 1, 0, 0, '', 1, 'display_label=1', 0, '0000-00-00 00:00:00', 0, 5)
The "modified" field appears correctly, so we can assume that the associations to a content type, etc. are correct. The main modification is the reference to the existing publish_down column of the default Joomla content item table.
Now I can see the field in the backend template editor, but I fail to have it show up in the front editor. I have also tried to use field_type = date, but to no avail.
Anyone has an idea what I am missing? Thanks!