Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 11.5] [TASK] Remove quote around examples #547

Merged
merged 1 commit into from
Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 4 additions & 25 deletions Documentation/Conditions/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ applicationContext
See :ref:`t3coreapi:bootstrapping-context`.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -75,7 +74,6 @@ page
All data of the current page record as array. To find out which fields are available, you can enable the debug mode in the TYPO3 backend which will display the field names.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -192,7 +190,6 @@ tree.pagelayout
for frontend and backend.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -226,7 +223,6 @@ tree.rootLine
Array of arrays with uid and pid.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -498,7 +494,6 @@ frontend.user.isLoggedIn
True if current user is logged in

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -521,7 +516,6 @@ frontend.user.userId
UID of current user

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -546,7 +540,6 @@ frontend.user.userGroupIds
Frontend

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -574,7 +567,6 @@ frontend.user.userGroupList
Comma list of group UIDs

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -620,7 +612,6 @@ workspace.workspaceId
id of current workspace

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -647,7 +638,6 @@ workspace.isLive
True if current workspace is live

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -674,7 +664,6 @@ workspace.isOffline
True if current workspace is offline

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -713,7 +702,6 @@ typo3.version
TYPO3_version (e.g. 9.4.0-dev)

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -736,7 +724,6 @@ typo3.branch
TYPO3_branch (e.g. 9.4)

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -759,7 +746,6 @@ typo3.devIpMask
:php:`$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']`

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -861,7 +847,6 @@ request.getParsedBody()
form via POST, the submitted values.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -887,7 +872,6 @@ request.getHeaders()
Provides all values from request headers.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -921,7 +905,6 @@ request.getCookieParams()
Provides all available cookies.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1020,7 +1003,6 @@ request.getNormalizedParams()
Example: ``route=%2Fajax%2Fsystem-information%2Frender``

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1053,7 +1035,10 @@ request.getPageArguments()
Get current `PageArguments` object with resolved route parts from enhancers.

:aspect:`Example`
[request.getPageArguments().get('foo_id') > 0]
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

[request.getPageArguments().get('foo_id') > 0]

Allows migration from old condition syntax using `[globalVar = GP:singlepartner > 0]`
to `[request.getPageArguments().get('singlepartner') > 0]`.
Expand Down Expand Up @@ -1081,7 +1066,6 @@ date
reference for possible usage.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1204,7 +1188,6 @@ ip
Value or Constraint, Wildcard or RegExp possible special value: devIP (match the devIPMask).

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1236,7 +1219,6 @@ compatVersion
Compares against the current TYPO3 branch.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1285,7 +1267,6 @@ loginUser
TypoScript.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1356,7 +1337,6 @@ getenv
PHP function: `getenv <https://www.php.net/manual/en/function.getenv.php>`_

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -1597,7 +1577,6 @@ siteLanguage
* ``siteLanguage("fallbackLanguageIds")``

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
3 changes: 0 additions & 3 deletions Documentation/Functions/Encapslines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ encapsTagList
List of tags which qualify as encapsulating tags. Must be lowercase.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -108,7 +107,6 @@ addAttributes.[*tagname*]
Always override/set the value of the attributes.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -170,7 +168,6 @@ wrapNonWrappedLines
Wrapping for non-encapsulated lines

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
2 changes: 0 additions & 2 deletions Documentation/Functions/HtmlparserTags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ fixAttrib.[attribute].prefixRelPathWith
will be prefixed the attribute.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -291,7 +290,6 @@ fixAttrib.[attribute].userFunc
of this function will be used as the new tag value.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
3 changes: 0 additions & 3 deletions Documentation/Functions/If.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ isNull
features are available below this property.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -203,7 +202,6 @@ equals
Returns true, if the content is equal to :typoscript:`value`.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand All @@ -230,7 +228,6 @@ isInList
**Note:** The list in :typoscript:`value` may not have spaces between elements!

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
1 change: 0 additions & 1 deletion Documentation/Functions/Imgresource.rst
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ stripProfile
0

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
2 changes: 0 additions & 2 deletions Documentation/Functions/Makelinks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ http.ATagParams
Additional parameters

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -160,7 +159,6 @@ mailto.ATagParams
Additional parameters

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
1 change: 0 additions & 1 deletion Documentation/Functions/Parsefunc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ constants
with the value of the according constant.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down
7 changes: 3 additions & 4 deletions Documentation/Functions/Replacement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ useRegExp
0

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

10 {
search = #(a )CAT#i
replace = \1cat
useRegExp = 1
search = #(a )CAT#i
replace = \1cat
useRegExp = 1
}

.. _replacement-useoptionsplitreplace:
Expand Down
30 changes: 14 additions & 16 deletions Documentation/Functions/Select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ where
WHERE clause without the word "WHERE".

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

Expand Down Expand Up @@ -441,20 +440,19 @@ markers
by the quoting of the fields, see :issue:`87799`.

:aspect:`Example`

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

page.60 = CONTENT
page.60 {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
markers {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
markers {
whatever.data = GP:first
}
}
}
}
}

This example selects all records from table tt_content, which are on page 73 and
Expand All @@ -466,15 +464,15 @@ markers

page.60 = CONTENT
page.60 {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
markers {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
markers {
whatever.value = some
whatever.wrap = |thing
}
}
}
}
}


Expand Down
Loading