OCE Toolkit은 필드 모양 유형의 구성요소 개발을 지원합니다. 개발자는 사용자정의 필드 편집기를 생성하고 관리할 수 있습니다.
필드 모양 유형의 구성요소에 대해 다음 작업을 수행할 수 있습니다.
필드 모양 유형으로 구성요소 목록을 필터링할 수 있습니다.
다음 OCE Toolkit 명령은 사용자정의 필드 편집기 개발에 사용할 수 있습니다.
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에 포함됩니다.
TextFieldEditor
SliderFieldEditor
MapFieldEditor
다음 이미지는 샘플 필드 모양 구성요소 개발에 사용할 수 있는 OCE Toolkit 명령을 보여줍니다.
미리 정의된 필드 모양 구성요소를 로컬 서버에 생성하고 테스트하여 Oracle Content Management 인스턴스로 업로드할 수 있습니다. 다음 이미지는 localhost:8085
에서 해당 구성요소를 보여줍니다.
슬라이더와 같은 각 구성요소를 로컬 서버에서 테스트할 수 있습니다. 여기서 구성요소의 속성을 선택하고 저장할 수 있습니다.
맵 구성요소의 경우 맵 주위를 눌러 편집기 값으로 위치를 제공할 수 있습니다.
구성요소의 HTML 파일을 편집하여 배경색과 같은 설정을 변경할 수 있습니다.
OCE Toolkit 명령을 사용하여 로컬에서 필드 편집기를 콘텐츠 유형의 필드와 연관할 수 있습니다.
cec add-field-editor editor1 -t SimpleContent -n -c SimpleType -f title cec add-field-editor slider -t SimpleContent -n -c SimpleType -f value
사용자정의 필드 편집기 구성 및 테스트를 마친 후에 OCE Toolkit 명령을 사용하여 Oracle Content Management 인스턴스로 업로드할 수 있습니다.
# upload editors cec ulcp editor1,slider -p -s Latest # upload content cec cr Repo5 -s cec upload-content SimpleContent -r Rpo5 -s
사용자정의 필드 편집기를 업로드하면 구성요소가 Oracle Content Management 인스턴스로 임포트됩니다.