Oracle İçerik ve Deneyim Araç Paleti, Alan Görünümü tipinde bileşenler geliştirme desteği sağlar. Geliştiriciler özel alan düzenleyicilerini oluşturabilir ve yönetebilir.
Alan Görünümü tipindeki bir bileşen için şu görevleri gerçekleştirebilirsiniz:
Bileşenlerin Alan Görünümü tipine göre listesini filtreleyebilirsiniz.
Özel alan düzenleyicileri geliştirmek için Aşağıdaki Oracle İçerik ve Deneyim Araç Paleti komutları kullanılabilir:
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
Şu örnek Alan Görünümü bileşenleri Oracle İçerik ve Deneyim Araç Paleti ile birlikte gelir:
TextFieldEditor
SliderFieldEditor
MapFieldEditor
Aşağıdaki görüntüde, örnek Alan Görünümü bileşenlerini geliştirmek için kullanabileceğiniz Oracle İçerik ve Deneyim Araç Paleti komutları gösterilir.
Kullanıma hazır Alan Görünümü bileşenlerini yerel sunucunuzda Oracle Content Management anınıza yükleyebilirsiniz. Aşağıdaki görüntüde bu bileşenler localhost:8085
üzerinde gösterilir.
Her bileşeni (örneğin kaydırıcı) yerel sunucuda test edebilirsiniz. Burada bileşenin niteliklerini seçebilir ve bileşeni kaydedebilirsiniz.
Harita bileşeni için düzenleyici değeri olarak bir konum sağlamak üzere haritanın üzerine tıklayabilirsiniz.
Bir bileşenin ayarlarını değiştirmek (arka plan rengi gibi) için HTML dosyasını düzenleyebilirsiniz.
Bir Oracle İçerik ve Deneyim Araç Paleti komutu kullanarak bir alan düzenleyicisini bir içerik tipinin alanıyla yerel olarak ilişkilendirebilirsiniz:
cec add-field-editor editor1 -t SimpleContent -n -c SimpleType -f title cec add-field-editor slider -t SimpleContent -n -c SimpleType -f value
Özel alan düzenleyicilerini konfigüre ve test etme işlemini tamamladıktan sonra Oracle İçerik ve Deneyim Araç Paleti komutlarını kullanarak onları Oracle Content Management anınıza yükleyebilirsiniz:
# upload editors cec ulcp editor1,slider -p -s Latest # upload content cec cr Repo5 -s cec upload-content SimpleContent -r Rpo5 -s
Özel alan düzenleyicilerini yüklediğinizde bileşenleriniz Oracle Content Management anınıza aktarılır.