Documentation · ViewHelper reference

XSD schema file | vhs master

Page / Header / AlternateViewHelper

Returns the all alternate urls. /

  • Tag usage example

    <v:page.header.alternate languages="[mixed]" pageUid="123" normalWhenNoLanguage="1" addQueryString="1">
    	<!-- tag content - may be ignored! -->
    </v:page.header.alternate>
  • Inline usage example

    {v:page.header.alternate(languages: [mixed], pageUid: 123, normalWhenNoLanguage: 1, addQueryString: 1)}

Arguments

Argument Description Type
addQueryString

If TRUE, the current query parameters will be kept in the URI

boolean
languages

The languages (either CSV, array or implementing Traversable)

mixed
normalWhenNoLanguage

If TRUE, a missing page overlay should be ignored

boolean
pageUid

The page uid to check

integer
Required attribute

Revision history

commit dfcc95a3fb0b21f4db2b7dce38a1e419a4f8fc9d
Author: Danilo Bürger <*****@hmspl.de>
Date:   Sun Oct 27 21:37:08 2013 +0100

    [FEATURE] Added alternate view helper

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

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit f01dcaef9460306b221e5ba46f4c162c9e7e0b04
Author: Danilo Bürger <*****@hmspl.de>
Date:   Thu Feb 20 00:53:39 2014 +0100

    [BUGFIX] Removed prefix slash from namespaces class strings

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