OCE Toolkit poskytuje podporu pre vývoj komponentov typu Vzhľad poľa. Vývojári môžu vytvárať a spravovať vlastné editory polí.
Pre komponent typu Vzhľad poľa môžete vykonať nasledujúce úlohy:
Komponenty v zozname môžete filtrovať podľa typu Vzhľad poľa.
Súprava OCE Toolkit ponúka na vývoj vlastných editorov polí nasledujúce príkazy:
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
OCE Toolkit obsahuje tieto vzorky komponentov typu Vzhľad poľa:
TextFieldEditorSliderFieldEditorMapFieldEditorNasledujúci obrázok znázorňuje príkazy súpravy OCE Toolkit, ktoré môžete používať na vývoj vzorových komponentov typu Vzhľad poľa.

Na lokálnom serveri môžete vytvoriť hotové komponenty typu Vzhľad poľa, otestovať ich a potom ich nahrať do inštancie služby Oracle Content Management. Nasledujúci obrázok znázorňuje tieto komponenty v inštancii localhost:8085.

Každý komponent, napríklad jazdec, môžete otestovať na lokálnom serveri. Pre komponent tam môžete vybrať vlastnosti a potom ho uložiť.

Pre komponent mapy môžete klikaním po mape zadať miesto ako hodnotu editora.

V rámci úprav súboru HTML môžete zmeniť nastavenia komponentu, napríklad farbu pozadia.

Pomocou príkazu súpravy OCE Toolkit môžete editor poľa lokálne priradiť k poľu obsahového typu:
cec add-field-editor editor1 -t SimpleContent -n -c SimpleType -f title cec add-field-editor slider -t SimpleContent -n -c SimpleType -f value
Nakonfigurované a otestované vlastné editory polí môžete nahrať do inštancie služby Oracle Content Management pomocou nasledujúcich príkazov súpravy OCE Toolkit:
# upload editors cec ulcp editor1,slider -p -s Latest # upload content cec cr Repo5 -s cec upload-content SimpleContent -r Rpo5 -s
Keď nahráte vlastné editory polí, vaše komponenty sa importujú do inštancie služby Oracle Content Management.
