Skip to content

Commit ebc5a5c

Browse files
linawolfsfroemkenjwfroemken
authored
[TASK] Remove duplicate FlexForm example (#5407)
* [BUGFIX] Fix path to snippet Releases: main, 13.4 * [BUGFIX] Fix path to snippet Releases: main, 13.4 * Apply suggestions from code review * Correct indents and line length * Update Documentation/ExtensionArchitecture/HowTo/Configuration.rst --------- Co-authored-by: Stefan Frömken <[email protected]> Co-authored-by: Stefan Froemken <[email protected]>
1 parent 2bb7274 commit ebc5a5c

File tree

1 file changed

+35
-33
lines changed

1 file changed

+35
-33
lines changed

Documentation/ExtensionArchitecture/HowTo/Configuration.rst

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.. include:: /Includes.rst.txt
2-
.. index:: Extension; Configuration
3-
.. _extension_configuration:
1+
.. include:: /Includes.rst.txt
2+
.. index:: Extension; Configuration
3+
.. _extension-configuration:
44

55
=============
66
Configuration
@@ -13,9 +13,10 @@ various options described here each differs in:
1313
plugin)
1414
* the access level required to make the change (editor, admin)
1515

16-
.. index::
17-
TypoScript
18-
Configuration; TypoScript
16+
.. index::
17+
TypoScript
18+
Configuration; TypoScript
19+
.. _extension-configuration-typoscript-constants:
1920

2021
TypoScript and constants
2122
========================
@@ -24,16 +25,18 @@ You can define configuration options using TypoScript.
2425
These options can be changed via TypoScript constants and setup in the backend.
2526
The changes apply to the current page and all subpages.
2627

27-
.. seealso::
28+
.. seealso::
29+
30+
* :ref:`Extbase TypoScript configuration <extbase_typoscript_configuration>`
2831

29-
* :ref:`Extbase TypoScript configuration <extbase_typoscript_configuration>`
32+
* :ref:`t3tsref:typoscript-syntax-what-are-constants`
3033

31-
* :ref:`t3tsref:typoscript-syntax-what-are-constants`
3234

35+
.. index::
36+
Configuration; Extension configuration
37+
Files; ext_conf_template.txt
3338

34-
.. index::
35-
Configuration; Extension configuration
36-
Files; ext_conf_template.txt
39+
.. _extension-configuration-global:
3740

3841
Extension configuration
3942
=======================
@@ -42,42 +45,39 @@ Extension configuration is defined in the file :file:`ext_conf_template.txt`
4245
using TypoScript constant syntax.
4346

4447
The configuration options you define in this file can be changed in the
45-
backend :guilabel:`Admin Tools > Settings > Extension Configuration` and is stored in :file:`config/system/settings.php`.
48+
backend :guilabel:`Admin Tools > Settings > Extension Configuration` and is
49+
stored in :file:`config/system/settings.php`.
4650

47-
Use this file for general options that should be globally applied to the extension.
51+
Use this file for general options that should be globally applied to
52+
the extension.
4853

49-
.. seealso::
54+
.. seealso::
5055

51-
* :ref:`extension-options`
56+
* :ref:`extension-options`
5257

5358

54-
.. index:: FlexForms
59+
.. index:: FlexForms
60+
61+
.. _extension-configuration-flexforms:
5562

5663
FlexForms
5764
=========
5865

59-
FlexForms can be configured in the backend by editors. With FlexForms you can
60-
configure each plugin or content element individually without adding extra fields to the :sql:`tt_content` table.
66+
`FlexForms <https://docs.typo3.org/permalink/t3coreapi:flexforms>`_ define
67+
forms that can be used by editors to configure plugins and content elements.
6168

6269
In Extbase plugins, settings made in the FlexForm of a plugin
6370
override settings made in the TypoScript configuration of that plugin.
6471

65-
.. note::
66-
67-
If you wish to access a setting set via FlexForm in Extbase from your controller via
68-
:php:`$this->settings`, the name of the setting must begin with **settings**,
69-
directly followed by a dot (`.`).
72+
If you want to access a setting via FlexForm in Extbase from your controller via
73+
:php:`$this->settings`, the name of the setting must begin with **settings**,
74+
directly followed by a dot (`.`).
7075

7176
.. seealso::
7277

73-
* :ref:`flexforms`
74-
75-
76-
Example
77-
-------
78-
79-
.. include:: /CodeSnippets/Extbase/Configuration/PluginSettings.rst.txt
78+
* `FlexForms <https://docs.typo3.org/permalink/t3coreapi:flexforms>`_
8079

80+
.. _extension-configuration-settings:
8181

8282
Access settings
8383
===============
@@ -86,9 +86,11 @@ The settings can be read using :php:`$this->settings` in an
8686
Extbase controller action and via :html:`{settings}` within Fluid.
8787

8888
Example: Access settings in an Extbase controller
89-
--------------------------------------------------
89+
-------------------------------------------------
90+
91+
.. include:: /CodeSnippets/Extbase/Controllers/Settings.rst.txt
9092

91-
.. include:: /CodeSnippets/Extbase/Controllers/Settings.rst.txt
93+
.. _extension-configuration-yaml:
9294

9395
YAML
9496
====

0 commit comments

Comments
 (0)