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
- data
- class
- dir
- id
- lang
- style
- title
- accesskey
- tabindex
- onclick
- showAccessProtected
- classAccessProtected
- classAccessGranted
- useShortcutUid
- useShortcutTarget
- useShortcutData
- target
- rel
- pageUid
- additionalParams
- pageType
- noCache
- noCacheHash
- section
- linkAccessRestrictedPages
- absolute
- addQueryString
- argumentsToBeExcludedFromQueryString
- titleFields
- pageTitleAs
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
showAccessProtected boolean
If TRUE links to access protected pages are always rendered regardless of user login status
classAccessProtected string
Optional class name to add to links which are access protected
classAccessGranted string
Optional class name to add to links which are access protected but access is actually granted
useShortcutUid boolean
If TRUE, substitutes the link UID of a shortcut with the target page UID (and thus avoiding redirects) but does not change other data - which is done by using useShortcutData.
useShortcutTarget boolean
Optional param for using shortcut target instead of shortcut itself for current link
useShortcutData boolean
Shortcut to set useShortcutTarget and useShortcutData simultaneously
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
DEPRECATED: Use showAccessProtected instead.
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 to for example "tx_myext_somefield,subtitle,nav_title,title". The first field that contains text will be used. Field value resolved AFTER page field overlays.
pageTitleAs string
When rendering child content, supplies page title as variable.