{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DateTime.js')} {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} {$context->oPage->requireJSResource('resources/js/taillog.js')} {$context->oPage->requireJSResource('resources/js/conditional_usage.js')}

{i18n}Conditional Metadata Overview{/i18n}

{i18n}Conditional Metadata is made up of fields, values and behaviours. For a given behaviour, various values in other fields can be selected. Depending on both the behaviour and the newly selected value, additional fields and values may be selected, which cause a new behaviour to be "active".{/i18n}

{i18n}Test Instance{/i18n}

{i18n}For the majority of conditional cases, simply walking through a test is sufficient. You can do that below for the fieldset you have selected.{/i18n}

{$description}

{i18n}conditional data.{/i18n}

{i18n}These behaviours and the fields and values they allow are shown below for the active field.{/i18n}

Behaviours

{i18n}Clicking on a given behaviour below will show you which fields and values can be selected when the clicked behaviour is active.{/i18n}

No Active Behaviour (initial values)

{* this is a list of field rows ... see db. *} {foreach from=$context->getSetsForBehaviour(null, $fieldset_id) item=row} Field: {$row.field_name} » Option: {$row.lookup_name} » {if empty($row.behaviour_id)} no additional behaviours {else} {$row.behaviour_name} {/if}
{/foreach} {foreach from=$behaviours item=oBehaviour}

{$oBehaviour->getName()}

{* this is a list of field rows ... see db. *} {foreach from=$context->getSetsForBehaviour($oBehaviour, $fieldset_id) item=row} Field: {$row.field_name} » Option: {$row.lookup_name} » {if empty($row.behaviour_id)} no additional behaviours {else} {$row.behaviour_name} {/if}
{/foreach} {/foreach}