Package

ViewHelpers

ViewHelper Documentation

v:if.context.isFrontend

Condition: Is context Frontend?

A condition ViewHelper which renders the then child if current context being rendered is FE.

Examples

<!-- simple usage, content becomes then-child -->
<v:if.context.isFrontend>
    Hooray for BE contexts!
</v:if.context.isFrontend>
<!-- extended use combined with f:then and f:else -->
<v:if.context.isFrontend>
    <f:then>
       Hooray for BE contexts!
    </f:then>
    <f:else>
       Maybe BE, maybe CLI.
    </f:else>
</v:if.context.isFrontend>

Arguments

then anySimpleType

Value to be returned if the condition if met.

else anySimpleType

Value to be returned if the condition if not met.

ViewHelper Resources

Schema Resources