.. This reStructured text file has been automatically generated, do not change. .. Source: https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php :edit-on-github-link: https://github.com/TYPO3/typo3/edit/main/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php :navigation-title: link.typolink .. include:: /Includes.rst.txt .. _typo3-fluid-link-typolink: ============================================ Link.typolink ViewHelper `` ============================================ A ViewHelper to create links from fields supported by the link wizard Example ======= ``{link}`` contains: ``t3://page?uid=2&arg1=val1#9 _blank some-css-class "Title containing Whitespace"``. Or a legacy version from older TYPO3 versions: ``{link}`` contains: ``9 _blank - "testtitle with whitespace" &X=y``. Minimal usage ------------- :: Linktext Output:: Linktext Depending on current page, routing and page path configuration. TextWrap usage -------------- :: Output:: Page title of some page wrapped in span Depending on current page, routing and page path configuration. Full parameter usage -------------------- :: Linktext Output:: Linktext Depending on routing and page path configuration. .. _typo3-fluid-link-typolink_source: Source code =========== Go to the source code of this ViewHelper: `TypolinkViewHelper.php (GitHub) `__. .. _typo3-fluid-link-typolink_arguments: Arguments ========= The following arguments are available for ``: .. confval-menu:: :display: table :type: :default: .. _typo3-fluid-link-typolink-parameter_argument: .. confval:: parameter :name: typo3-fluid-link-typolink-parameter :type: string :required: true StdWrap.typolink style parameter string .. _typo3-fluid-link-typolink-target_argument: .. confval:: target :name: typo3-fluid-link-typolink-target :type: string :required: false Define where to display the linked URL .. _typo3-fluid-link-typolink-class_argument: .. confval:: class :name: typo3-fluid-link-typolink-class :type: string :required: false Define classes for the link element .. _typo3-fluid-link-typolink-title_argument: .. confval:: title :name: typo3-fluid-link-typolink-title :type: string :required: false Define the title for the link element .. _typo3-fluid-link-typolink-language_argument: .. confval:: language :name: typo3-fluid-link-typolink-language :type: string :required: false Link to a specific language - defaults to the current language, use a language ID or "current" to enforce a specific language .. _typo3-fluid-link-typolink-additionalparams_argument: .. confval:: additionalParams :name: typo3-fluid-link-typolink-additionalparams :type: string :required: false Additional query parameters to be attached to the resulting URL .. _typo3-fluid-link-typolink-additionalattributes_argument: .. confval:: additionalAttributes :name: typo3-fluid-link-typolink-additionalattributes :type: mixed :default: `array ()` :required: false Additional tag attributes to be added directly to the resulting HTML tag .. _typo3-fluid-link-typolink-addquerystring_argument: .. confval:: addQueryString :name: typo3-fluid-link-typolink-addquerystring :type: boolean :required: false If set, the current query parameters will be kept in the URL .. _typo3-fluid-link-typolink-addquerystringmethod_argument: .. confval:: addQueryStringMethod :name: typo3-fluid-link-typolink-addquerystringmethod :type: string :required: false This argument is not evaluated anymore and will be removed in TYPO3 v12. .. _typo3-fluid-link-typolink-addquerystringexclude_argument: .. confval:: addQueryStringExclude :name: typo3-fluid-link-typolink-addquerystringexclude :type: string :required: false Define parameters to be excluded from the query string (only active if addQueryString is set) .. _typo3-fluid-link-typolink-absolute_argument: .. confval:: absolute :name: typo3-fluid-link-typolink-absolute :type: boolean :required: false Ensure the resulting URL is an absolute URL .. _typo3-fluid-link-typolink-parts-as_argument: .. confval:: parts-as :name: typo3-fluid-link-typolink-parts-as :type: string :default: `'typoLinkParts'` :required: false Variable name containing typoLink parts (if any) .. _typo3-fluid-link-typolink-textwrap_argument: .. confval:: textWrap :name: typo3-fluid-link-typolink-textwrap :type: string :required: false Wrap the link using the typoscript "wrap" data type