Skip to content

Commit ddcdee1

Browse files
committed
[TASK] Add example: Display an Extbase plugin in a Fluid template
Releases: main, 12.4
1 parent bc9fcdd commit ddcdee1

File tree

1 file changed

+7
-6
lines changed
  • Documentation/ContentObjects/Extbaseplugin

1 file changed

+7
-6
lines changed

Documentation/ContentObjects/Extbaseplugin/Index.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,30 @@ Example: Display an Extbase plugin via TypoScript
6767
Example: Display an Extbase plugin in a Fluid template
6868
======================================================
6969

70-
It is possible to display an Extbase plugin in within Fluid using the
70+
It is possible to display an Extbase plugin in Fluid using the
7171
:ref:`CObject ViewHelper <f:cObject> <t3viewhelper:typo3-fluid-cobject>`:
7272

7373
.. literalinclude:: _CodeSnippets/_SomeTemplate.html
74-
:caption: EXT:myExtension/Configuration/TypoScript/setup.typoscript
74+
:caption: EXT:my_extension/Configuration/TypoScript/setup.typoscript
7575

76-
Save the :typoscript:`EXTBASEPLUGIN` into a :typoscript:`lib` object:
76+
Create a lib object which utilizes the :typoscript:`EXTBASEPLUGIN` into
77+
a :typoscript:`lib` object:
7778

7879
.. literalinclude:: _CodeSnippets/_libMyPlugin.typoscript
79-
:caption: EXT:myExtension/Configuration/TypoScript/setup.typoscript
80+
:caption: EXT:my_extension/Configuration/TypoScript/setup.typoscript
8081

8182
For `extensionName` and `pluginName` use the names as configured in
8283
:php:`\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin()`:
8384

8485
.. literalinclude:: _CodeSnippets/_configurePlugin.php
85-
:caption: EXT:myExtension/ext_localconf.php
86+
:caption: EXT:my_extension/ext_localconf.php
8687
:emphasize-lines: 9,10
8788

8889
If you passed data to the ViewHelper, you can access the data in the controller's
8990
action by getting the currentContentObject from the request:
9091

9192
.. literalinclude:: _CodeSnippets/_MyController.php
92-
:caption: EXT:myExtension/Classes/Controller/MyController.php
93+
:caption: EXT:my_extension/Classes/Controller/MyController.php
9394
:emphasize-lines: 16,17
9495

9596
.. note::

0 commit comments

Comments
 (0)