Step1: Choose Menu Action
Site Publisher >> Manage Taxonomies
I've added hieghrachiel structure and the taxonomy node label is "custom categories" and @id is "hj11h47k".
Step2: Register the Taxonomy Id in the Sentence
/iwadmin/main/livesite/config/WORKAREA/shared/rules/verbalizations/includes/actions/tagged-content-paragraph.xml
<Sentence Id="sentence.custom.category">
<Label i18nKey="label.custom.category"/>
<Clause>
<Structure i18nKey="label.custom.category"/>
<UserInput InputId="ea" Control="hidden"><Value Type="String">TeamSite/Metadata/CustomCategories</Value></UserInput>
<UserInput InputId="operator" Control="hidden"><Value Type="String">ContentMultiValuedContainsAny</Value></UserInput>
</Clause>
<Clause>
<Structure i18nKey="layout.one.of"/>
<UserInput InputId="ea.value" Control="callout">
<CalloutConfig>
<Url>/livesite/taxonomyexplorer/Taxonomy.do</Url>
<CalloutWidth>700</CalloutWidth>
<CalloutHeight>500</CalloutHeight>
<ValueParamName>iw_item_value</ValueParamName>
<QueryParams>
<Param Name="method">loadTaxonomyExplorerForCallout</Param>
<Param Name="selectMode">multiple</Param>
<Param Name="categoryTypeId">custom categories</Param>
</QueryParams>
</CalloutConfig>
</UserInput>
</Clause>
</Sentence>
Step3: Add the callout entry in datacapture.cfg
<item name="ContentCategory" pathid="ContentCategory">
<label>Content Category</label>
<description>Content Category</description>
<text required="f" maxlength="250" readonly="t">
<cgi-callout url="/iw-cc/livesite/taxonomyexplorer/Taxonomy.do?categoryTypeId=ContentCategories&method=loadTaxonomyExplorerForCallout&selectMode=multiple" label="Choose Topics" window-features="width=675,height=450,resizable=no,toolbar=no,scrollbars=yes,status=no"/>
</text>
</item>
Issue: when the DCT form is rendered and when we click on the callout, it loads Taxonomy.do but it says "No Such taxonomy"
1. Any Pointers to map correctly and load the taxonomies in OOTB taxonomy browser (Taxonomy.do)
2. and once we choose, will the callout return values to text box by default or do we need to inject some script to set IWItem value.
Regards,
Aneel