From 802d8d6fea960f568affd962167b3726b5897595 Mon Sep 17 00:00:00 2001 From: linawolf <112@linawolf.de> Date: Sat, 12 Nov 2022 08:34:45 +0000 Subject: [PATCH] [DOCS] Fix rendering in ViewHelper reference Solves https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper/issues/50 Occurences of `:ts:` are adressed in https://forge.typo3.org/issues/99068 Resolves: #99069 Releases: main, 11.5 Change-Id: I49a42ba29017081d338bec815e3b2c5f14bf7a68 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76566 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Lina Wolf <112@linawolf.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Lina Wolf <112@linawolf.de> --- .../Classes/ViewHelpers/Asset/CssViewHelper.php | 2 +- .../fluid/Classes/ViewHelpers/FormViewHelper.php | 2 +- .../Classes/ViewHelpers/Format/HtmlViewHelper.php | 12 ++++++------ .../Classes/ViewHelpers/Format/PaddingViewHelper.php | 2 +- .../Classes/ViewHelpers/Link/ActionViewHelper.php | 2 +- .../Classes/ViewHelpers/Uri/ActionViewHelper.php | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php index 60bcf4d70429..02a6679256bc 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php @@ -34,7 +34,7 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder; * .foo { color: black; } * </f:asset.css> * - * See also :ref:`_changelog-Feature-90522-IntroduceAssetCollector` + * See also :ref:`changelog-Feature-90522-IntroduceAssetCollector` */ final class CssViewHelper extends AbstractTagBasedViewHelper { diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php index f76f9119e030..9005e5c45684 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php @@ -111,7 +111,7 @@ class FormViewHelper extends AbstractFormViewHelper $this->registerArgument('action', 'string', 'Target action'); $this->registerArgument('arguments', 'array', 'Arguments', false, []); $this->registerArgument('controller', 'string', 'Target controller'); - $this->registerArgument('extensionName', 'string', 'Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used'); + $this->registerArgument('extensionName', 'string', 'Target Extension Name (without `tx_` prefix and no underscores). If NULL the current extension name is used'); $this->registerArgument('pluginName', 'string', 'Target plugin. If empty, the current plugin name is used'); $this->registerArgument('pageUid', 'int', 'Target page uid'); $this->registerArgument('object', 'mixed', 'Object to use for the form. Use in conjunction with the "property" attribute on the sub tags'); diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php index 02983e639df9..6d2792457b34 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php @@ -64,8 +64,8 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic; * Data argument * -------------- * - * If you work with TypoScript "field" property, you should add the current record as "data" - * to the ViewHelper to allow processing the "field" and "dataWrap" properties correctly. + * If you work with TypoScript :typoscript:`field` property, you should add the current record as `data` + * to the ViewHelper to allow processing the `field` and `dataWrap` properties correctly. * * :: * @@ -78,26 +78,26 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic; * Current argument * ----------------- * - * Use the current argument to set the current value of the content object. + * Use the `current` argument to set the current value of the content object. * * :: * * <f:format.html current="{strContent}" parseFuncTSPath="lib.info">I'm gone</f:format.html> * - * After "setContentToCurrent = 1" you may have this Output:: + * After `setContentToCurrent = 1` you may have this output:: * * Thanks Kasper for this great CMS * * CurrentValueKey argument * ------------------------- * - * Use the currentValueKey argument to define a value of data object as the current value. + * Use the `currentValueKey` argument to define a value of data object as the current value. * * :: * * <f:format.html data="{contentRecord}" currentValueKey="header" parseFuncTSPath="lib.content">Content: </f:format.html> * - * After "dataWrap = |{CURRENT:1}" you may have this Output:: + * After `dataWrap = |{CURRENT:1}` you may have this Output:: * * Content: How to install TYPO3 in under 2 minutes ;-) * diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Format/PaddingViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Format/PaddingViewHelper.php index 7f75cfe0d454..976da974fcc4 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Format/PaddingViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Format/PaddingViewHelper.php @@ -24,7 +24,7 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderS /** * Formats a string using PHPs :php:`str_pad` function. - * See https://www.php.net/manual/function.str_pad.php. + * See https://www.php.net/manual/en/function.str-pad. * * Examples * ======== diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Link/ActionViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Link/ActionViewHelper.php index e45524b9323f..44e6e45193a2 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Link/ActionViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Link/ActionViewHelper.php @@ -57,7 +57,7 @@ final class ActionViewHelper extends AbstractTagBasedViewHelper $this->registerTagAttribute('target', 'string', 'Specifies where to open the linked document'); $this->registerArgument('action', 'string', 'Target action'); $this->registerArgument('controller', 'string', 'Target controller. If NULL current controllerName is used'); - $this->registerArgument('extensionName', 'string', 'Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used'); + $this->registerArgument('extensionName', 'string', 'Target Extension Name (without `tx_` prefix and no underscores). If NULL the current extension name is used'); $this->registerArgument('pluginName', 'string', 'Target plugin. If empty, the current plugin name is used'); $this->registerArgument('pageUid', 'int', 'Target page. See TypoLink destination'); $this->registerArgument('pageType', 'int', 'Type of the target page. See typolink.parameter'); diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ActionViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ActionViewHelper.php index d59e0762780d..c4b65c3ee4ee 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ActionViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Uri/ActionViewHelper.php @@ -48,7 +48,7 @@ final class ActionViewHelper extends AbstractViewHelper $this->registerArgument('action', 'string', 'Target action'); $this->registerArgument('arguments', 'array', 'Arguments', false, []); $this->registerArgument('controller', 'string', 'Target controller. If NULL current controllerName is used'); - $this->registerArgument('extensionName', 'string', 'Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used'); + $this->registerArgument('extensionName', 'string', 'Target Extension Name (without `tx_` prefix and no underscores). If NULL the current extension name is used'); $this->registerArgument('pluginName', 'string', 'Target plugin. If empty, the current plugin name is used'); $this->registerArgument('pageUid', 'int', 'Target page. See TypoLink destination'); $this->registerArgument('pageType', 'int', 'Type of the target page. See typolink.parameter', false, 0); -- GitLab