Documentation · ViewHelper reference

XSD schema file | vhs 2.1.4

Page / Menu / SubViewHelper

Page: Auto Sub Menu ViewHelper

Recycles the parent menu ViewHelper instance, resetting the page UID used as starting point and repeating rendering of the exact same tag content.

Used in custom menu rendering to indicate where a submenu is to be rendered; accepts only a single argument called pageUid which defines the new starting page UID that is used in the recycled parent menu instance.

  • Tag usage example

    < additionalAttributes="{foo: 'bar'}" pageUid="[mixed]">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    { {foo: 'bar'}, pageUid: [mixed])}


Argument Description Type

Additional tag attributes. They will be added directly to the resulting HTML tag.


Page UID to be overridden in the recycled rendering of the parent instance, if one exists

Required attribute

Revision history

commit 53aeb29952af0ee67aebf3cd3d152cd11f978b16
Author: Claus Due <*****>
Date:   Sat May 4 22:54:19 2013 +0200

    [FEATURE] Sub Menu ViewHelper
    Menu-based ViewHelper which only works inside other menu ViewHelpers and here, works by recycling the parent menu instance with a new starting page UID, conditioned by wether or not the page link being rendered is part of the currently rendered page's root line.
    Should be used only once inside any other Menu ViewHelper.
    ### Example:
    		<f:for each="{menu}" as="item">
    				<a href="{}">{item.title}</a><br />
    					< pageUid="{item.uid}" unset="item" />

commit 00cd2877a50b14f3c3c1424f1a205918c9d65a21
Author: Claus Due <*****>
Date:   Sat May 4 23:52:08 2013 +0200

    [FEATURE] Support expandAll as defined by top parent menu

commit 286df6c969e27cb8b73ed77e48d03fd7044404cf
Author: Claus Due <*****>
Date:   Thu May 16 19:09:20 2013 +0200

    [TASK] Rename method to remove "cloned" return type indication

commit d0ad75c9d4715f86b584a7269e12b06c8ad1f139
Author: Björn Fromme <*****>
Date:   Mon Jun 17 14:16:04 2013 +0200

    [TASK] Make use of new PageSelect service

commit 884091d88d756bc3bfb8481ad014f5f64f2e18ea
Author: Björn Fromme <*****>
Date:   Mon Jun 17 15:06:39 2013 +0200

    [BUGFIX] Remove improper use of static property

commit c862632fa9dbcc277b6449532a3abde71d105928
Author: Björn Fromme <*****>
Date:   Mon Jun 17 22:24:35 2013 +0200

    [TASK] Adapt changes in PageSelectService::getRootline()

commit e80849e11b1525590586ea428b67003320392692
Author: Björn Fromme <*****>
Date:   Mon Jun 17 22:42:14 2013 +0200

    [TASK] Adapt changes in PageSelectService

commit 418f384bc5f144de1932cb15dc0aebef72d26513
Author: Claus Due <*****>
Date:   Wed Jul 3 22:22:37 2013 +0200

    [BUGFIX] Fix exposure to "duplicate variables" issue in sub menu VH

commit 0c365eb7c5b22908335f10b1e13b8303a714e88b
Author: Claus Due <*****>
Date:   Wed Jul 3 23:21:51 2013 +0200

    [BUGFIX] Do not reset "is parent" state after sub menu renders

commit 54c35bf1b84aac4c593ebc12e23946d43edcb32e
Author: Danilo Bürger <*****>
Date:   Mon Dec 16 18:26:13 2013 +0100

    [FEATURE] Use MP by default in RootLine

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

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

    [TASK] Switch to namespaces

commit 7d2ffdc8cd065809da0f4c94bf876677a8b055f9
Author: Björn Fromme <*****>
Date:   Thu Sep 18 10:31:05 2014 +0200

    [BUGFIX] Incorrect template variable container key

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

    [TASK] Reference Copyright to file