Show only a subtree of the taxonomy structure (using explicit relations)
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. The tree shown is filtered even more by using explicit relations.
About this task
In Hypothetical taxonomy tree structure we defined a certain taxonomy structure. Instead of showing the entire taxonomy structure, we will configure the field FLOCATION in such a way that it will show a fixed subtree, namely the subtree below continent Australia and the subtree below Hemispheres. However, we will use explicit relations in this example to limit the tree even more and not show cities. We limit the user so that he can only select hemispheres.
Australia {id=5, class=continent, selectable=no}
- Australia {id=38, class=country, selectable=no}
Hemispheres {id=99, class=category, selectable=no}
- Northern {id=203, class=hemisphere, selectable=yes}
- Southern {id=14, class=hemisphere, 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>99</id> <!-- id of category Hemispheres -->
</static>
</entrynodes>
<selectable>
<condition name="CLASS">hemisphere</condition>
</selectable>
<relations>
<relation ref="continent2country" />
<relation ref="category2hemisphere" />
</relations>
</read>
</field>
</fields>
</parameter>
<parameter name="relations">
<relations>
<relation type="hierarchical" id="continent2country" abbreviation="NT" direction="Forward">
<from>
<condition name='CLASS'>continent</condition>
</from>
<to>
<condition name='CLASS'>country</condition>
</to>
</relation>
<relation type="hierarchical" id="category2hemisphere" abbreviation="NT" direction="Forward">
<from>
<condition name='CLASS'>category</condition>
</from>
<to>
<condition name='CLASS'>hemisphere</condition>
</to>
</relation>
</relations>
</parameter>
</parameters>
</initialize>
</source>
</sources>
</infoShareExtensionConfig>