선택 그룹 구성 요소 확장
checkboxgroup, dropdown 및 radiobutton 핵심 구성 요소를 확장하여 추가 속성 탭을 포함했습니다. 추가 속성 탭에는 필드를 Blob 인덱스 탭으로 사용할지 여부를 나타내는 확인란이 있습니다
. 확인란을 선택하면 다음 스크린샷과 같이 Searchable이라는 속성이 만들어지고 해당 값이 jcr 저장소에서 true로 설정됩니다
.
_cq_dialog 폴더에 다음 .content.xml을 만들었습니다.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Check box group"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs"
maximized="{Boolean}false">
<items jcr:primaryType="nt:unstructured">
<properties
jcr:primaryType="nt:unstructured"
jcr:title="Additional Properties"
sling:resourceType="granite/ui/components/coral/foundation/container"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<Searchable
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
emptyText="Want to include in search?"
fieldDescription="Indicate if you want to use in search"
text="Want to use this field in query"
value="{Boolean}true"
uncheckedValue="{Boolean}false"
name="./Searchable"
checked="{Boolean}false"
required="{Boolean}false"/>
</items>
</column>
</items>
</columns>
</items>
</properties>
</items>
</tabs>
</items>
</content>
</jcr:root>
4859a77c-7971-4ac9-8f5c-4260823c6f69