0
Wie man den Standardwert in Drodown im Oktober cms hinzufügt?
Auf Fields.yaml Datei-Code ist:
category:
label: Category
nameFrom: category_name
descriptionFrom: description
span: auto
type: relation
Mein Controller-Code ist:
public $belongsTo = [
'category' => [
'Ashish\Taeq\Models\RecipeCategory',
'conditions' => 'status = 1'
],
Ich brauche Standardkategorie Drop-down zu setzen, wie "Bitte wählen Sie Kategorie".