### Be.infobox ViewHelper Examples Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Be/Infobox.rst Provides code examples for using the Be.infobox ViewHelper with different configurations, including custom icons and HTML content. ```APIDOC ## PUT /api/users/{id} ### Description Updates an existing user resource identified by their ID. ### Method PUT ### Endpoint /api/users/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the user to update. #### Request Body - **email** (string) - Optional - The new email address for the user. - **password** (string) - Optional - The new password for the user. ### Request Example ```json { "email": "john.doe.updated@example.com" } ``` ### Response #### Success Response (200) - **message** (string) - A confirmation message indicating the user was updated successfully. #### Response Example ```json { "message": "User with ID 101 updated successfully." } ``` ``` ```APIDOC ## DELETE /api/users/{id} ### Description Deletes a user resource by their ID. ### Method DELETE ### Endpoint /api/users/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the user to delete. ### Response #### Success Response (204) No content is returned upon successful deletion. #### Response Example (No content) ``` -------------------------------- ### Security.nonce ViewHelper Examples Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Security/Nonce.rst Examples demonstrating the usage of the Security.nonce ViewHelper with different configurations for inline scripts, external scripts, and inline styles. ```APIDOC ## Security.nonce ViewHelper Examples ### Basic Usage ```html ``` ### Inline Script with Explicit Directive ```html ``` ### External Script with Nonce ```html ``` ### Inline Style Block ```html ``` ``` -------------------------------- ### TypoScript Configuration for Render.contentArea Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Render/ContentArea.rst Example TypoScript setup to enable the page-content data processor, which is necessary for the `` ViewHelper to function. ```APIDOC ## TypoScript Configuration for `` ### Description This TypoScript configuration sets up a PAGE object with a PAGEVIEW content object and enables the page-content data processor, which is required for the `` ViewHelper. ### Method TypoScript ### Endpoint N/A (Configuration) ### Parameters N/A ### Request Example ```typoscript page = PAGE page { 10 = PAGEVIEW 10 { paths.10 = EXT:my_sitepackage/Resources/Private/Templates/ dataProcessing.10 = page-content } } ``` ### Response N/A ``` -------------------------------- ### Be.infobox ViewHelper with HTML content, icon and links Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Be/Infobox.rst This example demonstrates a complex infobox with HTML content, an icon, and links. It is typically found in the TYPO3 backend module 'System > DB Check > Manage Reference Index' if 'typo3/cms-lowlevel' is installed. ```html

The reference index is used to manage the TYPO3 reference index.

Manage Reference Index
``` -------------------------------- ### Example: Textarea bound to action argument Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Form/Textarea.rst Illustrates a basic setup for a textarea bound to a controller action argument using Fluid and a PHP controller. ```APIDOC ## Basic Textarea Bound to Action Argument ### Description This example demonstrates how to use the `` ViewHelper to create a text area that is directly bound to an argument in an Extbase controller action. This is useful when you need to process user input without necessarily involving a full domain model. ### Method Not applicable (ViewHelper/Controller Action) ### Endpoint Not applicable (ViewHelper/Controller Action) ### Parameters See general `` ViewHelper arguments. ### Request Example #### Fluid Template (`_codesnippets/_TextfieldSimple.html`) ```html ``` #### Controller Action (`_codesnippets/_TextfieldSimpleController.php`) ```php addFlashMessage('Message sent successfully!'); $this->redirect('index'); } } ``` ### Response #### Success Response (200) Upon successful submission, the controller action processes the input and typically redirects the user or displays a success message. #### Response Example (Redirect to index action or display flash message) ``` -------------------------------- ### Extbase Model Example Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Render/Text.rst Example of an Extbase model definition. Ensure all columns to be rendered and the record type column are mapped. ```php ``` -------------------------------- ### Simple Debug ViewHelper Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Debug.rst Use this ViewHelper to output a simple HTML dump of a variable. It requires no additional setup. ```fluid {myVariable} ``` -------------------------------- ### Generate Image URI with Inline Notation Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Uri/Image.rst This example shows how to use the f:uri.image ViewHelper with inline notation, including parameters for minimum and maximum width. The output is a cached image path. ```html {f:uri.image(src: 'EXT:myext/Resources/Public/typo3_logo.png', minWidth: 30, maxWidth: 40)} ``` -------------------------------- ### Debug ViewHelper with All Features Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Debug.rst This example demonstrates using the `` ViewHelper with all its available options, including custom titles, depth control, blacklisting of classes and properties, and output formatting. It's useful for in-depth debugging scenarios. ```fluid {blogs} ``` -------------------------------- ### f:form.countrySelect ViewHelper Usage Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Form/CountrySelect.rst Examples demonstrating how to use the f:form.countrySelect ViewHelper in Fluid templates. ```APIDOC ## f:form.countrySelect ViewHelper ### Description The `f:form.countrySelect` ViewHelper renders a country selection form element. ### Method Fluid ViewHelper ### Endpoint N/A (Client-side rendering) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ```html ``` ### Response #### Success Response (200) N/A (Renders HTML form element) #### Response Example ```html ``` ## Examples ### Basic Country Selector This example shows a basic country selector bound to an action argument. ```html ``` ### Prioritize Countries Define a list of countries which should be listed as first options. ```html ``` ### Display Another Language Show localized official names in a different language. ```html ``` ### Bind to Extbase Model Use the `property` attribute to bind the country selector to an Extbase model. ```html ``` ### Arguments of f:form.countrySelect This ViewHelper accepts arbitrary arguments that are passed to the underlying HTML select element. Refer to `/Includes/_ArbitraryArguments.rst.txt` for details on arbitrary arguments. ``` -------------------------------- ### Asset.script ViewHelper Usage Source: https://github.com/typo3-documentation/typo3cms-reference-viewhelper/blob/main/Documentation/Global/Asset/Script.rst Examples demonstrating how to use the `` ViewHelper to include external JavaScript files or inline scripts. ```APIDOC ## Asset.script ViewHelper ### Description The `` ViewHelper is used to include JavaScript assets in your TYPO3 Fluid templates. It leverages the AssetCollector to manage assets, ensuring that each asset is included only once. The 'identifier' attribute serves as a unique key for assets. ### Method Not applicable (this is a ViewHelper, not an API endpoint). ### Endpoint Not applicable (this is a ViewHelper, not an API endpoint). ### Parameters #### Path Parameters None. #### Query Parameters None. #### Request Body None. ### Attributes - **identifier** (string) - Required - A unique identifier for the asset. If assets are added multiple times with the same identifier, the last one overrides previous ones. - **src** (string) - Optional - The path to the external JavaScript file (e.g., `EXT:my_ext/Resources/Public/JavaScript/foo.js`). - **inline** (boolean) - Optional - If set to true, the content of the referenced file is added as an inline script. If not provided and `src` is used, it includes the external file. - **async** (boolean) - Optional - HTML attribute for asynchronous script loading. - **crossorigin** (string) - Optional - HTML attribute for CORS settings. - **defer** (boolean) - Optional - HTML attribute for deferring script execution. - **integrity** (string) - Optional - HTML attribute for Subresource Integrity. - **nomodule** (boolean) - Optional - HTML attribute for indicating a module script. - **nonce** (string) - Optional - HTML attribute for script nonces. - ** referrerpolicy** (string) - Optional - HTML attribute for referrer policy. - **type** (string) - Optional - HTML attribute for the script type (e.g., `text/javascript`). ### Request Example ```html alert('hello world'); ``` ### Response This ViewHelper does not directly return a response body. It generates HTML `