管理の記事編集ページにカスタム フィールドを挿入しました - 2 つのファイルを変更しました: /administrator/components/com_content/models/forms/article.xml にフィールド サブタイトルを追加しました
<field name="subtitle" type="text" label="Subtitle"
description="Add a subtitle here" class="inputbox" size="30"
required="true" />
そして、administrator/components/com_content/views/article/tmpl/edit.php に追加しました
<?php echo $this->form->getLabel('subtitle'); ?>
<?php echo $this->form->getInput('subtitle'); ?
これで、カスタム フィールドが作成されました。しかし、何かを入力して保存するときに値をデータベースに保存する必要があります。誰でも私を助けることができますか?
ありがとう