Package

ViewHelpers

ViewHelper Documentation

v:page.link

Page: Link ViewHelper

Viewhelper for rendering page links

This viewhelper behaves identically to Fluid's link viewhelper except for it fetches the title of the provided page UID and inserts it as linktext if that is omitted. The link will not render at all if the requested page is not translated in the current language.

Automatic linktext: <v:page.link pageUid="UID" /> Manual linktext: <v:page.link pageUid="UID">linktext</v:page.link>

Arguments

additionalAttributes anySimpleType

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

data anySimpleType

Additional data-* attributes. They will each be added with a "data-" prefix.

class string

CSS class(es) for this element

dir string

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

id string

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

lang string

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

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

target string

Target of link

rel string

Specifies the relationship between the current document and the linked document

pageUid integer

UID of the page to create the link and fetch the title for.

additionalParams anySimpleType

Query parameters to be attached to the resulting URI

pageType integer

Type of the target page. See typolink.parameter

noCache boolean

When TRUE disables caching for the target page. You should not need this.

noCacheHash boolean

When TRUE supresses the cHash query parameter created by TypoLink. You should not need this.

section string

The anchor to be added to the URI

linkAccessRestrictedPages boolean

When TRUE, links pointing to access restricted pages will still linkto the page even though the page cannot be accessed.

absolute boolean

When TRUE, the URI of the rendered link is absolute

addQueryString boolean

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

argumentsToBeExcludedFromQueryString anySimpleType

Arguments to be removed from the URI. Only active if $addQueryString = TRUE

titleFields string

CSV list of fields to use as link label - default is "nav_title,title", change tofor example "tx_myext_somefield,subtitle,nav_title,title". The first field that contains text will be used. Field value resolvedAFTER page field overlays.

pageTitleAs string

When rendering child content, supplies page title as variable.

ViewHelper Resources

Schema Resources