ViewHelper Documentation
v:if.context.isCli
Condition: Is context CLI?
A condition ViewHelper which renders the then
child if
current context being rendered is CLI.
Examples
<!-- simple usage, content becomes then-child -->
<v:if.context.isCli>
Hooray for CLI contexts!
</v:if.context.isCli>
<!-- extended use combined with f:then and f:else -->
<v:if.context.isCli>
<f:then>
Hooray for CLI contexts!
</f:then>
<f:else>
Maybe BE, maybe FE.
</f:else>
</v:if.context.isCli>
Arguments
then anySimpleType
Value to be returned if the condition if met.
else anySimpleType
Value to be returned if the condition if not met.