Documentation · ViewHelper reference

XSD schema file | vhs master

Page / Header / CanonicalViewHelper

Returns the current canonical url in a link tag. /

  • Tag usage example

    <v:page.header.canonical class="NULL" dir="NULL" id="NULL" lang="NULL" style="NULL" title="NULL" accesskey="NULL" tabindex="123" onclick="NULL" pageUid="123" queryStringMethod="'GET'" normalWhenNoLanguage="1">
    	<!-- tag content - may be ignored! -->
    </v:page.header.canonical>
  • Inline usage example

    {v:page.header.canonical(class: 'NULL', dir: 'NULL', id: 'NULL', lang: 'NULL', style: 'NULL', title: 'NULL', accesskey: 'NULL', tabindex: 123, onclick: 'NULL', pageUid: 123, queryStringMethod: ''GET'', normalWhenNoLanguage: 1)}

Arguments

Argument Description Type
accesskey

Keyboard shortcut to access this element

string
class

CSS class(es) for this element

string
dir

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

string
id

Unique (in this file) identifier for this HTML element.

string
lang

Language for this element. Use short names specified in RFC 1766

string
normalWhenNoLanguage

DEPRECATED: Visibility is now handled by core's typolink function.

boolean
onclick

JavaScript evaluated for the onclick event

string
pageUid

The page uid to check

integer
queryStringMethod

From which place to add parameters. Values: "GET", "POST" and "GET,POST". See https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Typolink/Index.html, addQueryString.method

string
style

Individual CSS styles for this element

string
tabindex

Specifies the tab order of this element

integer
title

Tooltip text of element

string
Required attribute

Revision history

commit 3e3b6a0047f242674ee8d6d4755fcc25153f37b5
Author: Danilo Bürger <*****@hmspl.de>
Date:   Wed Oct 16 23:34:43 2013 +0200

    [FEATURE] Added v:page.header.canonical to render canonical tag

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 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

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