Enhancement : TYPE_LINK Show or Hide options
Want to use TYPE_LINK block field with telephone number or file and external url options, but don't want to show other options like: link target, internal page, email_address inside TYPE_LINK field or vice versa.
Is it possible to add filter options for this kind of usages?
Yes, we could provide options for zaa-link directive.
@nadar Are hideTargetOption, hideInternalOption, hideExternalOption, hideFileOption, hideMailOption, hideTelephoneOption appropriate names for keys?
e.g.:
'vars' => [
['var' => 'mylink', 'label' => 'Link', 'type' => self::TYPE_LINK, 'options' => [
'hideTargetOption' => true, 'hideInternalOption' => true, 'hideMailOption' => true
]
]
]
even we made that mistake also somewhere, but i would not prefix hide, just: targetOption = true/false (where true) is default value to not break BC. also i would add constants:
Link::TARGET_OPTION = true
(not sure where to put the constants yet, but you got the idea i think).