TYPO3 Logo
VHS: Fluid ViewHelpers
Options
View source How to edit Full documentation (single file)

VHS: Fluid ViewHelpers

  • Installation
  • Configuration
  • Usage
  • fluidtypo3/vhs
    • asset
    • call
    • const
    • debug
    • l
    • menu
    • or
    • tag
    • try
    • unless
    • asset
      • asset.prefetch
      • asset.script
      • asset.style
    • condition
      • context
        • condition.context.isBackend
        • condition.context.isCli
        • condition.context.isDevelopment
        • condition.context.isFrontend
        • condition.context.isProduction
        • condition.context.isTesting
      • form
        • condition.form.hasValidator
        • condition.form.isRequired
      • iterator
        • condition.iterator.contains
      • page
        • condition.page.hasSubpages
        • condition.page.isChildPage
        • condition.page.isLanguage
      • string
        • condition.string.contains
        • condition.string.isLowercase
        • condition.string.isNumeric
        • condition.string.isUppercase
      • type
        • condition.type.isArray
        • condition.type.isBoolean
        • condition.type.isDomainObject
        • condition.type.isFloat
        • condition.type.isInstanceOf
        • condition.type.isInteger
        • condition.type.isObject
        • condition.type.isQueryResult
        • condition.type.isString
        • condition.type.isTraversable
      • variable
        • condition.variable.isNull
        • condition.variable.isset
    • content
      • content.get
      • content.info
      • content.render
      • content.resources
      • random
        • content.random.get
        • content.random.render
      • resources
        • content.resources.fal
    • context
      • context.get
    • count
      • count.bytes
      • count.lines
      • count.substring
      • count.words
    • extension
      • extension.icon
      • extension.loaded
      • path
        • extension.path.absolute
        • extension.path.relative
        • extension.path.resources
        • extension.path.siteRelative
    • form
      • form.fieldName
    • format
      • format.append
      • format.case
      • format.dateRange
      • format.eliminate
      • format.hash
      • format.hide
      • format.markdown
      • format.plaintext
      • format.pregReplace
      • format.prepend
      • format.replace
      • format.sanitizeString
      • format.substring
      • format.tidy
      • format.trim
      • format.wordWrap
      • json
        • format.json.decode
        • format.json.encode
      • placeholder
        • format.placeholder.image
        • format.placeholder.lipsum
      • url
        • format.url.decode
        • format.url.encode
    • iterator
      • iterator.chunk
      • iterator.column
      • iterator.diff
      • iterator.explode
      • iterator.extract
      • iterator.filter
      • iterator.first
      • iterator.for
      • iterator.implode
      • iterator.indexOf
      • iterator.intersect
      • iterator.keys
      • iterator.last
      • iterator.loop
      • iterator.merge
      • iterator.next
      • iterator.pop
      • iterator.previous
      • iterator.push
      • iterator.random
      • iterator.range
      • iterator.reverse
      • iterator.shift
      • iterator.slice
      • iterator.sort
      • iterator.split
      • iterator.unique
      • iterator.values
    • math
      • math.average
      • math.ceil
      • math.cube
      • math.cubicRoot
      • math.division
      • math.floor
      • math.maximum
      • math.median
      • math.minimum
      • math.modulo
      • math.power
      • math.product
      • math.range
      • math.round
      • math.squareRoot
      • math.square
      • math.subtract
      • math.sum
    • media
      • media.audio
      • media.exists
      • media.extension
      • media.files
      • media.gravatar
      • media.image
      • media.pdfThumbnail
      • media.picture
      • media.size
      • media.source
      • media.spotify
      • media.video
      • media.vimeo
      • media.youtube
      • image
        • media.image.height
        • media.image.mimetype
        • media.image.width
    • menu
      • menu.browse
      • menu.deferred
      • menu.directory
      • menu.list
      • menu.sub
    • once
      • once.cookie
      • once.instance
      • once.session
      • once.standard
    • page
      • page.absoluteUrl
      • page.breadCrumb
      • page.footer
      • page.header
      • page.info
      • page.languageMenu
      • page.language
      • page.link
      • page.resources
      • page.rootline
      • page.staticPrefix
      • header
        • page.header.alternate
        • page.header.canonical
        • page.header.link
        • page.header.meta
        • page.header.title
      • menu
        • page.menu.browse
        • page.menu.deferred
        • page.menu.directory
        • page.menu.list
        • page.menu.sub
      • resources
        • page.resources.fal
    • random
      • random.number
      • random.string
    • render
      • render.ascii
      • render.cache
      • render.inline
      • render.record
      • render.request
      • render.template
      • render.uncache
    • resource
      • resource.collection
      • resource.file
      • resource.image
      • resource.language
      • resource.record
      • record
        • resource.record.fal
    • security
      • security.allow
      • security.deny
    • site
      • site.name
      • site.url
    • system
      • system.dateTime
      • system.timestamp
      • system.uniqId
    • uri
      • uri.gravatar
      • uri.image
      • uri.request
    • variable
      • variable.convert
      • variable.extensionConfiguration
      • variable.get
      • variable.pregMatch
      • variable.set
      • variable.typoscript
      • variable.unset
      • register
        • variable.register.get
        • variable.register.set
  • Changelog
  • Contribution
  • Changelog
  • Sitemap
  • Index
  1. VHS: Fluid ViewHelpers
  2. fluidtypo3/vhs
  3. page
  4. page.link

page.link ViewHelper <vhs: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>

Copied!

Arguments

additionalAttributes

DataType
mixed
Required
false
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data

DataType
mixed
Required
false
Description
Additional data-* attributes. They will each be added with a "data-" prefix.

aria

DataType
mixed
Required
false
Description
Additional aria-* attributes. They will each be added with a "aria-" prefix.

class

DataType
string
Required
false
Description
CSS class(es) for this element

dir

DataType
string
Required
false
Description
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id

DataType
string
Required
false
Description
Unique (in this file) identifier for this HTML element.

lang

DataType
string
Required
false
Description
Language for this element. Use short names specified in RFC 1766

style

DataType
string
Required
false
Description
Individual CSS styles for this element

title

DataType
string
Required
false
Description
Tooltip text of element

accesskey

DataType
string
Required
false
Description
Keyboard shortcut to access this element

tabindex

DataType
integer
Required
false
Description
Specifies the tab order of this element

onclick

DataType
string
Required
false
Description
JavaScript evaluated for the onclick event

showAccessProtected

DataType
boolean
Required
false
Description
If TRUE links to access protected pages are always rendered regardless of user login status

classAccessProtected

DataType
string
Default
'protected'
Required
false
Description
Optional class name to add to links which are access protected

classAccessGranted

DataType
string
Default
'access-granted'
Required
false
Description
Optional class name to add to links which are access protected but access is actually granted

useShortcutUid

DataType
boolean
Required
false
Description
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

DataType
boolean
Required
false
Description
Optional param for using shortcut target instead of shortcut itself for current link

useShortcutData

DataType
boolean
Required
false
Description
Shortcut to set useShortcutTarget and useShortcutData simultaneously

target

DataType
string
Required
false
Description
Target of link

rel

DataType
string
Required
false
Description
Specifies the relationship between the current document and the linked document

pageUid

DataType
integer
Required
false
Description
UID of the page to create the link and fetch the title for.

additionalParams

DataType
mixed
Default
array ()
Required
false
Description
Query parameters to be attached to the resulting URI

pageType

DataType
integer
Required
false
Description
Type of the target page. See typolink.parameter

noCache

DataType
boolean
Required
false
Description
When TRUE disables caching for the target page. You should not need this.

noCacheHash

DataType
boolean
Required
false
Description
When TRUE supresses the cHash query parameter created by TypoLink. You should not need this. Has no effect on TYPO3v11 and above.

section

DataType
string
Required
false
Description
The anchor to be added to the URI

absolute

DataType
boolean
Required
false
Description
When TRUE, the URI of the rendered link is absolute

addQueryString

DataType
boolean
Required
false
Description
When TRUE, the current query parameters will be kept in the URI

argumentsToBeExcludedFromQueryString

DataType
mixed
Default
array ()
Required
false
Description
Arguments to be removed from the URI. Only active if $addQueryString = TRUE

titleFields

DataType
string
Default
'nav_title,title'
Required
false
Description
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

DataType
string
Required
false
Description
When rendering child content, supplies page title as variable.
  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned.The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

Last rendered: May 06, 2025 14:18

  • Legal Notice
  • Privacy Policy