OCE Toolkit unterstützt die Entwicklung von Komponenten mit dem Typ "Felddarstellung". Entwickler können benutzerdefinierte Feldeditoren erstellen und verwalten.
Bei Komponenten mit dem Typ "Felddarstellung" können Sie die folgenden Aufgaben ausführen:
Sie können eine Liste mit Komponenten nach dem Typ "Felddarstellung" filtern.
Die folgenden OCE Toolkit-Befehle sind beim Entwickeln benutzerdefinierter Feldeditoren verfügbar:
cec add-field-editor <name> Adds a field editor to a field in a content type. [alias: afe] cec remove-field-editor <name> Removes a field editor from a field in a content type. [alias: rfe] ------------------------ cec add-field-editor ------------------------ Usage: cec add-field-editor <name> Adds a field editor to a field in a content type. Options: --template, -t The template the content type is from [required] --contenttype, -c The content type [required] --field, -f The field the field editor is for [required] --contenttemplate, -n Flag to indicate the template is a content template --help, -h Show help [boolean] Examples: cec add-field-editor editor1 -t BlogTemplate -c BlogPost -f summary Use editor1 as the appearance for field summary in content type BlogPost from local template at src/templates/BlogTemplate cec add-field-editor editor1 -t BlogTemplateContent -n -c BlogPost -f summary Use editor1 as the appearance for field summary in content type BlogPost from local template at src/content/BlogTemplateContent ------------------------ cec remove-field-editor ------------------------ Usage: cec remove-field-editor <name> Removes a field editor from a field in a content type. Options: --template, -t The template the content type is from [required] --contenttype, -c The content type [required] --field, -f The field the field editor is for [required] --contenttemplate, -n Flag to indicate the template is a content template --help, -h Show help [boolean] Examples: cec remove-field-editor editor1 -t BlogTemplate -c BlogPost -f summary Remove editor1 as the appearance for field summary in content type BlogPost from local template at src/templates/BlogTemplate cec remove-field-editor editor1 -t BlogTemplateContent -n -c BlogPost -f summary Remove editor1 as the appearance for field summary in content type BlogPost from local template at src/content/BlogTemplateContent
Die folgenden Beispiele für Komponenten des Typs "Felddarstellung" sind in OCE Toolkit enthalten:
TextFieldEditorSliderFieldEditorMapFieldEditorDie folgende Abbildung zeigt OCE Toolkit-Befehle, mit denen Sie die Beispielkomponenten des Typs "Felddarstellung" entwickeln können.

Sie können die Out-of-the-box-Komponenten des Typs "Felddarstellung" auf dem lokalen Server erstellen, testen und in die Oracle Content Management-Instanz hochladen. Die folgende Abbildung zeigt diese Komponenten auf localhost:8085.

Sie können jede Komponente, wie z.B. den Schieberegler, auf dem lokalen Server testen. Dort können Sie Eigenschaften für die Komponente auswählen und diese dann speichern.

Bei der Kartenkomponente können Sie auf Stellen auf der Karte klicken, um einen Ort als Editorwert anzugeben.

Sie können die HTML-Datei für eine Komponente bearbeiten, um Einstellungen wie die Hintergrundfarbe zu ändern.

Sie können einen OCE Toolkit-Befehl verwenden, um einen Feldeditor lokal mit einem Feld eines Inhaltstyps zu verknüpfen:
cec add-field-editor editor1 -t SimpleContent -n -c SimpleType -f title cec add-field-editor slider -t SimpleContent -n -c SimpleType -f value
Nachdem Sie die benutzerdefinierten Feldeditoren konfiguriert und getestet haben, können Sie sie mit OCE Toolkit-Befehlen in die Oracle Content Management-Instanz hochladen.
# upload editors cec ulcp editor1,slider -p -s Latest # upload content cec cr Repo5 -s cec upload-content SimpleContent -r Rpo5 -s
Beim Hochladen der benutzerdefinierten Feldeditoren werden die Komponenten in die Oracle Content Management-Instanz importiert.
