Show only a subtree of the taxonomy structure
We will configure the Tridion Docs SES Connector in such a way the user will only be able to browse a specific subtree of terms.
About this task
In Hypothetical taxonomy tree structure we defined a certain taxonomy structure. We will configure the field FLOCATION in such a way that it will only show 2 fixed subtrees, namely the subtree below continents Australia and Europe. These terms will be the root terms or entry points in the tree. We will also limit the user so that he can only select countries or cities.
Australia {id=5, class=continent, selectable=no}
- Australia {id=38, class=country, selectable=yes}
- Sydney {id=46, class=city, selectable=yes}
Europe {id=17, class=continent, selectable=no}
- France {id=105, class=country, selectable=yes}
- Paris {id=12, class=city, selectable=yes}
Procedure
Results
<infoShareExtensionConfig version="1.0">
<metadatabindings>
<metadatabinding ishfieldname="FLOCATION" sourceref="SESExampleModelDataSource" />
</metadatabindings>
<sources>
<source id="SESExampleModelDataSource" handler="SmartLogicSESConnector">
<initialize>
<parameters>
<parameter name="ses.api.url">http://smartlogic.example.com/ses</parameter>
<parameter name="ses.api.tbdb">Example</parameter>
<parameter name="metadatabinding">
<fields>
<field name="FLOCATION" level="logical">
<read>
<entrynodes>
<static>
<id>5</id> <!-- id of continent Australia -->
<id>17</id> <!-- id of continent Europe -->
</static>
</entrynodes>
<selectable>
<condition name="CLASS">country</condition>
<condition name="CLASS">city</condition>
</selectable>
<relations>
<relation ref="narrowerterm" />
</relations>
</read>
</field>
</fields>
</parameter>
<parameter name="relations">
<relations>
<relation type="hierarchical" id="narrowerterm" abbreviation="NT" direction="Forward"/>
</relations>
</parameter>
</parameters>
</initialize>
</source>
</sources>
</infoShareExtensionConfig>