Documentation · ViewHelper reference

XSD schema file | vhs master

Condition / Page / HasSubpagesViewHelper

Condition: Page has subpages

A condition ViewHelper which renders the then child if current page or page with provided UID has subpages. By default disabled subpages are considered non existent which can be overridden by setting $includeHidden to TRUE. To include pages that are hidden in menus set $showHiddenInMenu to TRUE. /

  • Tag usage example

    <v:condition.page.hasSubpages then="[mixed]" else="[mixed]" condition="1" pageUid="123" includeHidden="1" includeAccessProtected="1" includeHiddenInMenu="1" showHiddenInMenu="1">
    	<!-- tag content - may be ignored! -->
    </v:condition.page.hasSubpages>
  • Inline usage example

    {v:condition.page.hasSubpages(then: [mixed], else: [mixed], condition: 1, pageUid: 123, includeHidden: 1, includeAccessProtected: 1, includeHiddenInMenu: 1, showHiddenInMenu: 1)}

Arguments

Argument Description Type
condition

Condition expression conforming to Fluid boolean rules

boolean
else

Value to be returned if the condition if not met.

mixed
includeAccessProtected

Include access protected pages

boolean
includeHidden

DEPRECATED: Include hidden pages

boolean
includeHiddenInMenu

Include pages hidden in menu

boolean
pageUid

Parent page to check

integer
showHiddenInMenu

DEPRECATED: Use includeHiddenInMenu

boolean
then

Value to be returned if the condition if met.

mixed
Required attribute

Revision history

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file