From 6e431187706ed7d0ca171f17f0a305eb93c46f38 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Sun, 10 Mar 2024 12:42:05 +0100 Subject: [PATCH] [DOCS] Backport 11.5, Switch to PHP based documentation rendering (#970) * [DOCS] Backport 11.5, Switch to PHP based documentation rendering (#968) * Create guides.xml * Remove now outdated Settings.cfg * Remove outdated genindex.rst * Remove outdated screenshots.json * Introduce automatic testing for documentation changes * Introduce make file for easy local rendering (cherry picked from commit 556af2919341c3d1b2ae3b9f74e933e4a1b94983) * [BUGFIX] Fix rendering warnings --- .github/workflows/test-documentation.yml | 17 + .../BestPractises/LanguageFields.rst | 2 +- .../ColumnsConfig/CommonProperties/Mm.rst | 2 +- .../CommonProperties/ReadOnly.rst | 1 - .../ColumnsConfig/CommonProperties/Search.rst | 3 +- .../Type/Category/Properties/TreeConfig.rst | 2 +- .../ColumnsConfig/Type/Flex/Index.rst | 2 +- .../Type/Group/Properties/Filter.rst | 5 - .../ColumnsConfig/Type/Inline/Examples.rst | 10 +- .../Type/Inline/Properties/Index.rst | 29 +- .../Type/Inline/Properties/SymmetricField.rst | 7 - .../Select/Properties/ForeignTableWhere.rst | 2 +- .../Select/Properties/SelectTreeConfig.rst | 6 +- .../Type/Text/Properties/Index.rst | 15 +- .../Ctrl/Properties/LanguageField.rst | 2 +- Documentation/Includes.rst.txt | 35 +- Documentation/Index.rst | 1 - Documentation/Settings.cfg | 62 - Documentation/genindex.rst | 7 - Documentation/guides.xml | 23 + Documentation/screenshots.json | 2319 ----------------- Makefile | 16 + 22 files changed, 80 insertions(+), 2488 deletions(-) create mode 100644 .github/workflows/test-documentation.yml delete mode 100644 Documentation/Settings.cfg delete mode 100644 Documentation/genindex.rst create mode 100644 Documentation/guides.xml delete mode 100644 Documentation/screenshots.json create mode 100644 Makefile diff --git a/.github/workflows/test-documentation.yml b/.github/workflows/test-documentation.yml new file mode 100644 index 00000000..79ac662e --- /dev/null +++ b/.github/workflows/test-documentation.yml @@ -0,0 +1,17 @@ +name: test documentation + +on: [ push, pull_request ] + +jobs: + tests: + name: documentation + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Test if the documentation will render without warnings + run: | + mkdir -p Documentation-GENERATED-temp \ + && docker run --rm --pull always -v $(pwd):/project \ + ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --fail-on-log diff --git a/Documentation/BestPractises/LanguageFields.rst b/Documentation/BestPractises/LanguageFields.rst index b0cc8a9d..92e99c70 100644 --- a/Documentation/BestPractises/LanguageFields.rst +++ b/Documentation/BestPractises/LanguageFields.rst @@ -6,7 +6,7 @@ Language fields ================ -See also the :ref:`Frontend Localization Guide `. +See also the :ref:`Frontend Localization Guide `. .. note:: It is possible to change the names of the following fields, however this is diff --git a/Documentation/ColumnsConfig/CommonProperties/Mm.rst b/Documentation/ColumnsConfig/CommonProperties/Mm.rst index c28f787c..1a0f863b 100644 --- a/Documentation/ColumnsConfig/CommonProperties/Mm.rst +++ b/Documentation/ColumnsConfig/CommonProperties/Mm.rst @@ -113,7 +113,7 @@ Related configurations {#uid_local} = ###THIS_UID### The above example uses the special field quoting syntax :php:`{#...}` around identifiers of the - :ref:`QueryHelper ` to be as DBAL compatible + QueryHelper to be as DBAL compatible as possible. .. _tca_property_MM_auto_creation_mm_table: diff --git a/Documentation/ColumnsConfig/CommonProperties/ReadOnly.rst b/Documentation/ColumnsConfig/CommonProperties/ReadOnly.rst index 3378d38f..ac1758ab 100644 --- a/Documentation/ColumnsConfig/CommonProperties/ReadOnly.rst +++ b/Documentation/ColumnsConfig/CommonProperties/ReadOnly.rst @@ -14,7 +14,6 @@ readOnly :Types: :ref:`category `, :ref:`check `, - :ref:`email `, :ref:`group `, :ref:`imageManipulation `, :ref:`inline `, diff --git a/Documentation/ColumnsConfig/CommonProperties/Search.rst b/Documentation/ColumnsConfig/CommonProperties/Search.rst index 64322814..a2ffd146 100644 --- a/Documentation/ColumnsConfig/CommonProperties/Search.rst +++ b/Documentation/ColumnsConfig/CommonProperties/Search.rst @@ -51,5 +51,4 @@ search of type Text and Text & Images. This helps making any search more relevant. The above example uses the special field quoting syntax :php:`{#...}` around identifiers of the - :ref:`QueryHelper ` to be as DBAL compatible - as possible. + QueryHelper to be as DBAL compatible as possible. diff --git a/Documentation/ColumnsConfig/Type/Category/Properties/TreeConfig.rst b/Documentation/ColumnsConfig/Type/Category/Properties/TreeConfig.rst index 445fbee9..66387673 100644 --- a/Documentation/ColumnsConfig/Type/Category/Properties/TreeConfig.rst +++ b/Documentation/ColumnsConfig/Type/Category/Properties/TreeConfig.rst @@ -28,7 +28,7 @@ treeConfig Deprecated, use startingPoints (see below); uid of the record that shall be considered as the root node of the tree. In general this might be set by Page TSconfig, see - :ref:`pagetsconfigtceformconfigtreeconfig` + :ref:`t3tsconfig:pagetsconfigtceformconfigtreeconfig` startingPoints (string, comma separated values) allows to set multiple records as roots for tree records. diff --git a/Documentation/ColumnsConfig/Type/Flex/Index.rst b/Documentation/ColumnsConfig/Type/Flex/Index.rst index 336e0126..843be0c1 100644 --- a/Documentation/ColumnsConfig/Type/Flex/Index.rst +++ b/Documentation/ColumnsConfig/Type/Flex/Index.rst @@ -5,7 +5,7 @@ FlexForm field ============== -Renders a :ref:`FlexForm ` element. Essentially, this consists in a +Renders a :ref:`FlexForm ` element. Essentially, this consists in a hierarchically organized set of fields which will have their values saved into a single field in the database, stored as XML. diff --git a/Documentation/ColumnsConfig/Type/Group/Properties/Filter.rst b/Documentation/ColumnsConfig/Type/Group/Properties/Filter.rst index 45f9f33f..eba126e2 100644 --- a/Documentation/ColumnsConfig/Type/Group/Properties/Filter.rst +++ b/Documentation/ColumnsConfig/Type/Group/Properties/Filter.rst @@ -21,11 +21,6 @@ filter contains the array of values which should be filtered by the userFunc. The function must return the filtered array of values. - .. note:: - - Do not confuse the filter values with the page tree selector on the left side. To change the entry page in the navigation - use :ref:`elementBrowserEntryPoints ` instead. - Multiple filters can be defined, and an array of configuration data for each of the filters can be supplied: .. code-block:: php diff --git a/Documentation/ColumnsConfig/Type/Inline/Examples.rst b/Documentation/ColumnsConfig/Type/Inline/Examples.rst index 6a6d4050..8921dcb9 100644 --- a/Documentation/ColumnsConfig/Type/Inline/Examples.rst +++ b/Documentation/ColumnsConfig/Type/Inline/Examples.rst @@ -165,20 +165,20 @@ type inline** - as it is a container. { public function render() { - $fieldName = $this->data['fieldName']; + $fieldName = $this->data['fieldName']; $result = $this->initializeResultArray(); // Add fieldInformation only for this field name - // this may be changed accordingly + // this may be changed accordingly if ($fieldName !== 'my_new_field') { return $result; } - + $text = $GLOBALS['LANG']->sL( 'LLL:EXT:my_example/Resources/Private/Language/' . 'locallang_db.xlf:tt_content.fieldInformation.demo' ); - + $result['html'] = $text; return $result; } @@ -230,6 +230,6 @@ type inline** - as it is a container. * :ref:`['ctrl']['container'] ` * How to create custom fieldInformation, fieldControl or fieldWizard in - :ref:`FormEngine ` chapter (TYPO3 + :ref:`FormEngine ` chapter (TYPO3 Explained) * :ref:`fieldInformation ` property diff --git a/Documentation/ColumnsConfig/Type/Inline/Properties/Index.rst b/Documentation/ColumnsConfig/Type/Inline/Properties/Index.rst index 5ae40e63..5d439a72 100644 --- a/Documentation/ColumnsConfig/Type/Inline/Properties/Index.rst +++ b/Documentation/ColumnsConfig/Type/Inline/Properties/Index.rst @@ -13,30 +13,11 @@ Properties Special properties ================== -.. toctree:: - :titlesonly: - - Appearance - BehaviourDisableMovingChildrenWithParent - BehaviourEnableCascadingDelete - CustomControls - Filter - ForeignDefaultSortby - ForeignField - ForeignLabel - ForeignMatchFields - ForeignSelector - ForeignSortby - ForeignTable - ForeignTableField - ForeignUnique - Mm - OverrideChildTCa - ShowNewRecordLink - Size - SymmetricField - SymmetricLabel - SymmetricSortby +.. toctree:: + :titlesonly: + :glob: + + * Common properties diff --git a/Documentation/ColumnsConfig/Type/Inline/Properties/SymmetricField.rst b/Documentation/ColumnsConfig/Type/Inline/Properties/SymmetricField.rst index d6edd843..e1b2f167 100644 --- a/Documentation/ColumnsConfig/Type/Inline/Properties/SymmetricField.rst +++ b/Documentation/ColumnsConfig/Type/Inline/Properties/SymmetricField.rst @@ -15,10 +15,3 @@ symmetric\_field This works like :ref:`foreign_field `, but in case of using bidirectional symmetric relations. :code:`symmetric_field` defines in which field on the :ref:`foreign_table ` the uid of the "other" parent is stored. - -Example -======= - -.. include:: /CodeSnippets/InlineMnSymmetricInline1.rst.txt - -.. include:: /CodeSnippets/InlineMnSymmetricBranches.rst.txt diff --git a/Documentation/ColumnsConfig/Type/Select/Properties/ForeignTableWhere.rst b/Documentation/ColumnsConfig/Type/Select/Properties/ForeignTableWhere.rst index 1e88d09e..9fb0904b 100644 --- a/Documentation/ColumnsConfig/Type/Select/Properties/ForeignTableWhere.rst +++ b/Documentation/ColumnsConfig/Type/Select/Properties/ForeignTableWhere.rst @@ -22,7 +22,7 @@ Field quoting The example below uses the special field quoting syntax :php:`{#...}` around identifiers of the -:ref:`QueryHelper ` +QueryHelper to be as DBAL compatible as possible. Note that :php:`ORDER BY` and :php:`GROUP BY` should NOT be quoted, since they always receive proper quoting automatically through the API. diff --git a/Documentation/ColumnsConfig/Type/Select/Properties/SelectTreeConfig.rst b/Documentation/ColumnsConfig/Type/Select/Properties/SelectTreeConfig.rst index 3eb635dd..7eb44bbc 100644 --- a/Documentation/ColumnsConfig/Type/Select/Properties/SelectTreeConfig.rst +++ b/Documentation/ColumnsConfig/Type/Select/Properties/SelectTreeConfig.rst @@ -36,9 +36,9 @@ treeConfig Additionally, each value used in `startingPoints` may be fed from a site configuration by using the `###SITE:###` syntax. - - This property can also be set by page TSconfig, see - :ref:`pagetsconfigtceformconfigtreeconfig` + + This property can also be set by page TSconfig, see + :ref:`t3tsconfig:pagetsconfigtceformconfigtreeconfig` Example: diff --git a/Documentation/ColumnsConfig/Type/Text/Properties/Index.rst b/Documentation/ColumnsConfig/Type/Text/Properties/Index.rst index 11318a32..cd4121f0 100644 --- a/Documentation/ColumnsConfig/Type/Text/Properties/Index.rst +++ b/Documentation/ColumnsConfig/Type/Text/Properties/Index.rst @@ -7,16 +7,7 @@ Properties ========== -.. toctree:: +.. toctree:: + :glob: - Cols - EnableRichtext - EnableTabulator - Eval - FixedFont - Format.rst - IsIn - Max - RichtextConfiguration - Rows - Wrap + * diff --git a/Documentation/Ctrl/Properties/LanguageField.rst b/Documentation/Ctrl/Properties/LanguageField.rst index 50177e18..ebac2435 100644 --- a/Documentation/Ctrl/Properties/LanguageField.rst +++ b/Documentation/Ctrl/Properties/LanguageField.rst @@ -32,7 +32,7 @@ languageField these languages and if this option is set, edit access for languages will be enforced for this table. - Also see the :ref:`Frontend Localization Guide ` + Also see the :ref:`Frontend Localization Guide ` for a discussion about the effects of this property (and other TCA properties) on the localization process. diff --git a/Documentation/Includes.rst.txt b/Documentation/Includes.rst.txt index 469841d3..b5b5ca98 100644 --- a/Documentation/Includes.rst.txt +++ b/Documentation/Includes.rst.txt @@ -1,34 +1 @@ -.. More information about this file: - https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#includes-rst-txt - -.. ---------- -.. text roles -.. ---------- - -.. role:: aspect(emphasis) -.. role:: bash(code) -.. role:: html(code) -.. role:: js(code) -.. role:: php(code) -.. role:: rst(code) -.. role:: sep(strong) -.. role:: sql(code) - -.. role:: tsconfig(code) - :class: typoscript - -.. role:: typoscript(code) -.. role:: xml(code) - :class: html - -.. role:: yaml(code) - -.. default-role:: code - -.. --------- -.. highlight -.. --------- - -.. By default, code blocks use PHP syntax highlighting - -.. highlight:: php +.. You can put central messages to display on all pages here diff --git a/Documentation/Index.rst b/Documentation/Index.rst index 98fe68cb..9d072b49 100644 --- a/Documentation/Index.rst +++ b/Documentation/Index.rst @@ -50,4 +50,3 @@ This document is the complete reference of the *Table Configuration Array* :hidden: Sitemap - genindex diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg deleted file mode 100644 index 6b07e5e2..00000000 --- a/Documentation/Settings.cfg +++ /dev/null @@ -1,62 +0,0 @@ -# More information about this file: -# https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#settings-cfg - -[general] - -project = TCA Reference -version = 11.5 -release = 11.5 -copyright = since 2012 by the TYPO3 contributors - -[html_theme_options] - -# "Edit on GitHub" button -github_repository = TYPO3-Documentation/TYPO3CMS-Reference-TCA -github_branch = 11.5 - -# Footer links -project_home = https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ -project_contact = https://typo3.slack.com/archives/C028JEPJL -project_repository = https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TCA -project_issues = https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TCA/issues -project_discussions = - -use_opensearch = - -[intersphinx_mapping] - -# Official TYPO3 manuals -h2document = https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/ -# t3cheatsheets = https://docs.typo3.org/m/typo3/docs-cheatsheets/main/en-us/ -# t3contribute = https://docs.typo3.org/m/typo3/guide-contributionworkflow/main/en-us/ -t3coreapi = https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ -# t3docteam = https://docs.typo3.org/m/typo3/team-t3docteam/main/en-us/ -# t3editors = https://docs.typo3.org/m/typo3/tutorial-editors/main/en-us/ -t3extbasebook = https://docs.typo3.org/m/typo3/book-extbasefluid/main/en-us/ -# t3extexample = https://docs.typo3.org/m/typo3/guide-example-extension-manual/main/en-us/ -# t3home = https://docs.typo3.org/ -# t3install = https://docs.typo3.org/m/typo3/guide-installation/main/en-us/ -t3l10n = https://docs.typo3.org/m/typo3/guide-frontendlocalization/11.5/en-us/ -# t3sitepackage = https://docs.typo3.org/m/typo3/tutorial-sitepackage/main/en-us/ -# t3start = https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/ -# t3tca = https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ -# t3translate = https://docs.typo3.org/m/typo3/guide-frontendlocalization/main/en-us/ -t3tsconfig = https://docs.typo3.org/m/typo3/reference-tsconfig/11.5/en-us/ -t3tsref = https://docs.typo3.org/m/typo3/reference-typoscript/11.5/en-us/ -# t3ts45 = https://docs.typo3.org/m/typo3/tutorial-typoscript-in-45-minutes/main/en-us/ -# t3viewhelper = https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/ -# t3upgrade = https://docs.typo3.org/m/typo3/guide-installation/main/en-us/ - -# TYPO3 system extensions -# ext_adminpanel = https://docs.typo3.org/c/typo3/cms-adminpanel/main/en-us/ -ext_core = https://docs.typo3.org/c/typo3/cms-core/11.5/en-us/ -# ext_dashboard = https://docs.typo3.org/c/typo3/cms-dashboard/main/en-us/ -# ext_felogin = https://docs.typo3.org/c/typo3/cms-felogin/main/en-us/ -# ext_form = https://docs.typo3.org/c/typo3/cms-form/main/en-us/ -# ext_fsc = https://docs.typo3.org/c/typo3/cms-fluid-styled-content/main/en-us/ -# ext_indexed_search = https://docs.typo3.org/c/typo3/cms-indexed-search/main/en-us/ -# ext_rte_ckeditor = https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/ -# ext_scheduler = https://docs.typo3.org/c/typo3/cms-scheduler/main/en-us/ -# ext_seo = https://docs.typo3.org/c/typo3/cms-seo/main/en-us/ -ext_t3editor = https://docs.typo3.org/c/typo3/cms-t3editor/11.5/en-us/ -ext_workspaces = https://docs.typo3.org/c/typo3/cms-workspaces/11.5/en-us/ diff --git a/Documentation/genindex.rst b/Documentation/genindex.rst deleted file mode 100644 index 806ec56a..00000000 --- a/Documentation/genindex.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. include:: /Includes.rst.txt - -===== -Index -===== - -.. Sphinx will insert here the general index automatically. diff --git a/Documentation/guides.xml b/Documentation/guides.xml new file mode 100644 index 00000000..b472be3b --- /dev/null +++ b/Documentation/guides.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/Documentation/screenshots.json b/Documentation/screenshots.json deleted file mode 100644 index feec8490..00000000 --- a/Documentation/screenshots.json +++ /dev/null @@ -1,2319 +0,0 @@ -{ - "suites": { - "Examples": { - "screenshots": [ - [ - {"action": "setCodeSnippetsTargetPath", "path": "CodeSnippets"}, - {"action": "setScreenshotsImagePath", "path": "Images/AutomaticScreenshots"}, - {"action": "createScreenshotsRstFile", "create": true}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "goToRecord", - "table": "tt_content", - "uid": {"action": "getUidByField", "table": "tt_content", "field": "header", "value": "Advanced FlexForm in plugin"} - }, - { - "action": "click", - "link": "Plugin" - }, - { - "action": "makeScreenshotOfElement", - "selector": ".module-body", - "fileName": "PluginFlexFormConfigurationCheck", - "captionText": "Checking the TCA configuration for the newly added Flexform" - }, - { - "action": "goToRecord", - "table": "fe_users", - "uid": {"action": "getUidByField", "table": "fe_users", "field": "username", "value": "example_user"} - }, - { - "action": "click", - "link": "Extended" - }, - { - "action": "makeScreenshotOfElement", - "selector": ".module-body", - "fileName": "ExtendingTcaFeUsers", - "altText": "New fields for fe\\_users table", - "captionText": "New fields for fe\\_users table" - } - ] - ] - }, - "Introduction": { - "screenshots": { - "actionsIdentifierImageManipulation": [ - {"action": "resizeWindow", "width": 1024,"height": 768}, - {"action": "see", "text": "Page"}, - {"action": "click", "link": "Page"}, - {"action": "openPageTreePath", "path": ["Congratulations"]}, - {"action": "switchToContentFrame"}, - {"action": "waitForText", "text": "Congratulations", "timeout": 5}, - {"action": "click", "link": "div#element-tt_content-223 a[href*=edit]"}, - {"action": "waitForText", "text": "Edit Page Content \"Deliver business value\" on page \"Congratulations\"", "timeout": 5}, - {"action": "click", "link": "Images"}, - {"action": "click", "link": "//div[@id=\"data-1-tt_content-223-image_records\"]/div[1]//button[contains(@class, \"form-irre-header-button\")]"}, - {"action": "wait", "timeout": 0.5}, - {"action": "resizeToFullPage"}, - { - "action": "makeScreenshotOfElement", - "selector": "//div[@id=\"data-1-tt_content-223-image_records\"]/div[1]//div[contains(@class, \"form-group\")][contains(., \"Image manipulation\")]", - "fileName": "ImageManipulationButton" - }, - {"action": "click", "link": "//div[@id=\"data-1-tt_content-223-image_records\"]/div[1]//button[contains(@class, \"form-irre-header-button\")]"}, - {"action": "resizeWindow", "width": 1024,"height": 768} - ], - "be_groups": [ - {"action": "setCodeSnippetsTargetPath", "path": "CodeSnippets"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setNavigationDefaultTable", - "table": "be_groups" - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3/sysext/core" - }, - { - "action": "makeScreenshotOfField", - "uid": 1, - "fields": "file_mountpoints", - "fileName": "FileMountpoints" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/be_groups.php", - "fields": ["columns/file_mountpoints"], - "targetFileName": "FileMountpoints" - } - ], - "tt_content": [ - { - "action": "resizeWindow", - "width": 1024, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3/sysext/frontend" - }, - { - "action": "setNavigationDefaultTable", - "table": "tt_content" - }, - {"action": "amOnPage", "page": "/typo3/module/web/list?id=80&table=tt_content"}, - {"action": "switchToContentFrame"}, - { - "action": "makeScreenshotOfElement", - "fileName": "TtContent", - "selector": ".recordlist", - "altText": "Control section of tt_content" - }, - { - "action": "goToRecord", - "uid": { - "action": "getUidByField", - "table": "tt_content", - "field": "header", - "value": "Playground" - } - }, - - { - "action": "click", - "link": ".form-select" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "fileName": "CtrlType", - "altText": "The type selector of a content elements" - }, - - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tt_content", - "field": "header", - "value": "Deliver business value" - } - }, - { - "action": "makeScreenshotOfField", - "fields": "hidden", - "fileName": "TtContentHidden" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tt_content.php", - "fields": ["columns/hidden"], - "targetFileName": "TtContentHidden" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tt_content.php", - "fields": ["ctrl"], - "targetFileName": "TtContentCtrl" - }, - { - "action": "goToField", - "fields": "image" - }, - { - "action": "click", - "link": ".panel-heading button.form-irre-header-button" - }, - {"action": "waitForText", "text": "Alternative Text"}, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "Image" - }, - {"action": "cropScreenshot", "fileName": "Image", "position": "right-top", "height": 400, "width": 640}, - { - "action": "click", - "link": ".panel-heading button.form-irre-header-button" - } - ] - } - }, - "Styleguide": { - "screenshots": { - "options": [ - {"action": "setCodeSnippetsTargetPath", "path": "CodeSnippets"}, - {"action": "setScreenshotsImagePath", "path": "Images/AutomaticScreenshots"}, - {"action": "createScreenshotsRstFile", "create": true} - ], - "inline_fal": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_fal" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_fal", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "resizeWindow", - "width": 640, - "height": 2048 - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineFalInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_fal.php", - "fields": ["columns/inline_1"], - "targetFileName": "InlineFalInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_fal.php", - "fields": ["columns/inline_flex_1"], - "targetFileName": "InlineFalInline1Flexform" - } - ], - "overview": [ - {"action": "amOnPage", "page": "/typo3/main"}, - {"action": "resizeWindow", "width": 1220,"height": 440}, - {"action": "see", "text": "List"}, - {"action": "click", "link": "List"}, - {"action": "openPageTreePath", "path": ["styleguide TCA demo", "elements basic"]}, - {"action": "switchToContentFrame"}, - {"action": "waitForText", "text": "elements basic", "timeout": 5}, - { - "action": "click", - "link": "#recordlist-tx_styleguide_elements_basic a[data-bs-original-title=\"Edit record\"]" - }, - {"action": "waitForText", "text": "Edit Form engine elements", "timeout": 5}, - {"action": "makeScreenshotOfWindow", "fileName": "StyleguideViewExample"}, - {"action": "switchToMainFrame"}, - {"action": "click", "link": "#typo3-cms-backend-backend-toolbaritems-helptoolbaritem a"}, - {"action": "waitForText", "text": "Help", "timeout": 5}, - {"action": "see", "text": "Styleguide"}, - {"action": "click", "link": "Styleguide"}, - {"action": "switchToContentFrame"}, - {"action": "waitForText", "text": "TYPO3 CMS Backend Styleguide", "timeout": 5}, - {"action": "click", "link": "TCA / Records"}, - {"action": "waitForText", "text": "TCA test records", "timeout": 5}, - {"action": "switchToMainFrame"}, - {"action": "click", "link": "#typo3-cms-backend-backend-toolbaritems-helptoolbaritem a"}, - {"action": "makeScreenshotOfWindow", "fileName": "StyleguideCreateTCA"} - ], - "input_basic": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic"}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "sys_language_uid", - "fileName": "SysLanguageUid" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/sys_language_uid"], - "targetFileName": "SysLanguageUid" - }, - { - "action": "goToField", - "fields": "input_1" - }, - { - "action": "drawBox", - "selector": ".formengine-field-item-description" - }, - { - "action": "makeScreenshotOfElement", - "fileName": "Label" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_1"], - "targetFileName": "Input1" - }, - { - "action": "makeScreenshotOfField", - "fields": "input_28", - "fileName": "Input28" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_28"], - "targetFileName": "Input28" - }, - { - "action": "makeScreenshotOfField", - "fields": "input_29", - "fileName": "Input29" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_29"], - "targetFileName": "Input29" - }, - { - "action": "makeScreenshotOfField", - "fields": "input_30", - "fileName": "Input30" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_30"], - "targetFileName": "Input30" - }, - { - "action": "makeScreenshotOfField", - "fields": "input_33", - "fileName": "Input33" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_33"], - "targetFileName": "Input33" - }, - { - "action": "goToField", - "fields": "input_34" - }, - { - "action": "click", - "link": "input" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "fileName": "Input34" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/input_34"], - "targetFileName": "Input34" - }, - { - "action": "makeScreenshotOfField", - "fields": "inputdatetime_3", - "fileName": "Inputdatetime3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/inputdatetime_3"], - "targetFileName": "Inputdatetime3" - } - ], - "none_basic": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic"}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "none_1", - "fileName": "None1" - } - ], - "radio_basic": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic"}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "radio_1", - "fileName": "Radio1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/radio_1"], - "targetFileName": "Radio1" - } - ], - "checkbox_basic": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic"}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_2", - "fileName": "Checkbox2" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_2"], - "targetFileName": "Checkbox2" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_3", - "fileName": "Checkbox3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_3"], - "targetFileName": "Checkbox3" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_7", - "fileName": "Checkbox7" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_7"], - "targetFileName": "Checkbox7" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_8", - "fileName": "Checkbox8" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_8"], - "targetFileName": "Checkbox8" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_12", - "fileName": "Checkbox12" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_12"], - "targetFileName": "Checkbox12" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_16", - "fileName": "Checkbox16" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_16"], - "targetFileName": "Checkbox16" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_17", - "fileName": "Checkbox17" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_17"], - "targetFileName": "Checkbox17" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_18", - "fileName": "Checkbox18" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_18"], - "targetFileName": "Checkbox18" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_19", - "fileName": "Checkbox19" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_19"], - "targetFileName": "Checkbox19" - }, - { - "action": "makeScreenshotOfField", - "fields": "checkbox_21", - "fileName": "Checkbox21" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/checkbox_21"], - "targetFileName": "Checkbox21" - } - ], - "text_basic": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic"}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "text_4", - "fileName": "Text4" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_4"], - "targetFileName": "Text4" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_5", - "fileName": "Text5" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_5"], - "targetFileName": "Text5" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_6", - "fileName": "Text6" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_6"], - "targetFileName": "Text6" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_7", - "fileName": "Text7" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_7"], - "targetFileName": "Text7" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_9", - "fileName": "Text9" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_9"], - "targetFileName": "Text9" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_11", - "fileName": "Text11" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_11"], - "targetFileName": "Text11" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_14", - "fileName": "Text14" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_14"], - "targetFileName": "Text14" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_15", - "fileName": "Text15" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_15"], - "targetFileName": "Text15" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_17", - "fileName": "Text17", - "captionText": "The table wizard allows to edit the code-like configuration of the tables with a visual editor." - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_17"], - "targetFileName": "Text17" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_19", - "fileName": "Text19" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_19"], - "targetFileName": "Text19" - }, - { - "action": "makeScreenshotOfField", - "fields": "text_20", - "fileName": "Text20" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_basic.php", - "fields": ["columns/text_20"], - "targetFileName": "Text20" - } - ], - "basic_translation": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_basic translation "}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_basic" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_basic", - "field": "sys_language_uid", - "value": { - "action": "getUidByField", - "table": "sys_language", - "field": "title", - "value": "styleguide demo language german" - } - } - }, - { - "action": "makeScreenshotOfField", - "fields": "text_2", - "fileName": "TranslatedText2" - } - ], - "select": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_select" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_select", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "select_checkbox_1", - "fileName": "SelectCheckbox1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_checkbox_1"], - "targetFileName": "SelectCheckbox1" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_checkbox_2", - "fileName": "SelectCheckbox2" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_checkbox_2"], - "targetFileName": "SelectCheckbox2" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_checkbox_3", - "fileName": "SelectCheckbox3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_checkbox_3"], - "targetFileName": "SelectCheckbox3" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_checkbox_5", - "fileName": "SelectCheckbox5" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_checkbox_5"], - "targetFileName": "SelectCheckbox5" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_checkbox_7", - "fileName": "SelectCheckbox7" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_checkbox_7"], - "targetFileName": "SelectCheckbox7" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_1", - "fileName": "SelectMultiplesidebyside1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_1"], - "targetFileName": "SelectMultiplesidebyside1" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_2", - "fileName": "SelectMultiplesidebyside2" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_2"], - "targetFileName": "SelectMultiplesidebyside2" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_5", - "fileName": "SelectMultiplesidebyside5" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_5"], - "targetFileName": "SelectMultiplesidebyside5" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_6", - "fileName": "SelectMultiplesidebyside6" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_6"], - "targetFileName": "SelectMultiplesidebyside6" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_8", - "fileName": "SelectMultiplesidebyside8" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_8"], - "targetFileName": "SelectMultiplesidebyside8" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_multiplesidebyside_10", - "fileName": "SelectMultiplesidebyside10" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_multiplesidebyside_10"], - "targetFileName": "SelectMultiplesidebyside10" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_1", - "fileName": "SelectSingle1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_1"], - "targetFileName": "SelectSingle1" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_3", - "fileName": "SelectSingle3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_3"], - "targetFileName": "SelectSingle3" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_4", - "fileName": "SelectSingle4" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_4"], - "targetFileName": "SelectSingle4" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_7", - "fileName": "SelectSingle7" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_7"], - "targetFileName": "SelectSingle7" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_8"], - "targetFileName": "SelectSingle8" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_10", - "fileName": "SelectSingle10" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_10"], - "targetFileName": "SelectSingle10" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_12", - "fileName": "SelectSingle12" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_12"], - "targetFileName": "SelectSingle12" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_13"], - "targetFileName": "SelectSingle13" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_15", - "fileName": "SelectSingle15" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_15"], - "targetFileName": "SelectSingle15" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_16", - "fileName": "SelectSingle16" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_16"], - "targetFileName": "SelectSingle16" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_17", - "fileName": "SelectSingle17" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_17"], - "targetFileName": "SelectSingle17" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_18", - "fileName": "SelectSingle18" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_18"], - "targetFileName": "SelectSingle18" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_19", - "fileName": "SelectSingle19" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_19"], - "targetFileName": "SelectSingle19" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_20", - "fileName": "SelectSingle20" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_single_20"], - "targetFileName": "SelectSingle20" - }, - { - "action": "createCodeSnippet", - "sourceFile": "Classes/UserFunctions/FormEngine/SelectItemSorter.php", - "targetFileName": "SelectItemSorter" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_singlebox_1", - "fileName": "SelectSinglebox1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_singlebox_1"], - "targetFileName": "SelectSinglebox1" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_singlebox_3", - "fileName": "SelectSinglebox3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_singlebox_3"], - "targetFileName": "SelectSinglebox3" - }, - { - "action": "goToField", - "fields": "select_tree_1" - }, - { - "action": "wait", - "timeout": 1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "SelectTree1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_tree_1"], - "targetFileName": "SelectTree1" - }, - { - "action": "goToField", - "fields": "select_tree_2" - }, - { - "action": "wait", - "timeout": 1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "SelectTree2" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_tree_2"], - "targetFileName": "SelectTree2" - }, - { - "action": "goToField", - "fields": "select_tree_6" - }, - { - "action": "wait", - "timeout": 1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "SelectTree6" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_tree_6"], - "targetFileName": "SelectTree6" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_requestUpdate_1", - "fileName": "SelectRequestupdate1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_select.php", - "fields": ["columns/select_requestUpdate_1"], - "targetFileName": "SelectRequestupdate1" - } - ], - "select_translation": [ - {"comment": "************************************"}, - {"comment": "Screenshots from table tx_styleguide_elements_select translation "}, - {"comment": "************************************"}, - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_select" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_select", - "field": "sys_language_uid", - "value": { - "action": "getUidByField", - "table": "sys_language", - "field": "title", - "value": "styleguide demo language german" - } - } - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_8", - "fileName": "TranslatedSelectSingle8" - }, - { - "action": "makeScreenshotOfField", - "fields": "select_single_13", - "fileName": "TranslatedSelectSingle13" - } - ], - "rte": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_rte" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_rte", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "rte_1", - "fileName": "Rte1" - }, - {"action": "cropScreenshot", "fileName": "Rte1", "position": "right-top", "height": 300, "width": 640}, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_rte.php", - "fields": ["columns/rte_1"], - "targetFileName": "Rte1" - }, - { - "action": "makeScreenshotOfField", - "fields": "rte_2", - "fileName": "Rte2" - }, - {"action": "cropScreenshot", "fileName": "Rte2", "position": "right-top", "height": 300, "width": 640}, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_rte.php", - "fields": ["columns/rte_2"], - "targetFileName": "Rte2" - }, - { - "action": "makeScreenshotOfField", - "fields": "rte_3", - "fileName": "Rte3" - }, - {"action": "cropScreenshot", "fileName": "Rte3", "position": "right-top", "height": 300, "width": 640}, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_rte.php", - "fields": ["columns/rte_3"], - "targetFileName": "Rte3" - }, - { - "action": "makeScreenshotOfField", - "fields": "rte_4", - "fileName": "Rte4" - }, - {"action": "cropScreenshot", "fileName": "Rte4", "position": "right-top", "height": 300, "width": 640}, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_rte.php", - "fields": ["columns/rte_4"], - "targetFileName": "Rte4" - }, - { - "action": "makeScreenshotOfField", - "fields": "rte_5", - "fileName": "Rte5" - }, - {"action": "cropScreenshot", "fileName": "Rte5", "position": "right-top", "height": 350, "width": 640}, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_rte.php", - "fields": ["columns/rte_5"], - "targetFileName": "Rte5" - } - ], - "t3editor": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_t3editor" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_t3editor", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "t3editor_1", - "fileName": "T3editor1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_t3editor.php", - "fields": ["columns/t3editor_1"], - "targetFileName": "T3editor1" - } - ], - "flex": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_flex" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_flex", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "flex_1", - "fileName": "Flex1", - "altText": "A field with a simple, one-field flex form" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_flex.php", - "fields": ["columns/flex_1"], - "targetFileName": "Flex1" - }, - { - "action": "makeScreenshotOfField", - "fields": "flex_2", - "fileName": "Flex2", - "altText": "A flex form with two sheets and descriptions" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_flex.php", - "fields": ["columns/flex_2"], - "targetFileName": "Flex2" - }, - { - "action": "makeScreenshotOfField", - "fields": "flex_file_1", - "fileName": "FlexFile1", - "altText": "A field with a simple, one-field flex form" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_flex.php", - "fields": ["columns/flex_file_1"], - "targetFileName": "FlexFile1" - }, - { - "action": "createCodeSnippet", - "sourceFile": "Configuration/FlexForms/Simple.xml", - "targetFileName": "FlexFormFile1" - } - ], - "slugs": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_slugs" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_slugs", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "slug_1", - "fileName": "Slug1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_slugs.php", - "fields": ["columns/slug_1"], - "targetFileName": "Slug1" - }, - { - "action": "makeScreenshotOfField", - "fields": "slug_2", - "fileName": "Slug2" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_slugs.php", - "fields": ["columns/slug_2"], - "targetFileName": "Slug2" - }, - { - "action": "makeScreenshotOfField", - "fields": "slug_3", - "fileName": "Slug3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_slugs.php", - "fields": ["columns/slug_3"], - "targetFileName": "Slug3" - }, - { - "action": "makeScreenshotOfField", - "fields": "slug_4", - "fileName": "Slug4" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_slugs.php", - "fields": ["columns/slug_4"], - "targetFileName": "Slug4" - }, - { - "action": "makeScreenshotOfField", - "fields": "slug_5", - "fileName": "Slug5" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_slugs.php", - "fields": ["columns/slug_5"], - "targetFileName": "Slug5" - }, - { - "action": "createCodeSnippet", - "sourceFile": "Classes/UserFunctions/FormEngine/SlugPrefix.php", - "targetFileName": "SlugPrefix" - } - ], - "elements_group": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_elements_group" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_elements_group", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "group_db_1", - "fileName": "GroupDb1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_db_1"], - "targetFileName": "GroupDb1" - }, - { - "action": "makeScreenshotOfField", - "fields": "group_db_3", - "fileName": "GroupDb3" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_db_3"], - "targetFileName": "GroupDb3" - }, - { - "action": "makeScreenshotOfField", - "fields": "group_db_8", - "fileName": "GroupDb8" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_db_8"], - "targetFileName": "GroupDb8" - }, - { - "action": "makeScreenshotOfField", - "fields": "group_db_10", - "fileName": "GroupDb10" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_db_10"], - "targetFileName": "GroupDb10" - }, - { - "action": "makeScreenshotOfField", - "fields": "group_db_11", - "fileName": "GroupDb11" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_db_11"], - "targetFileName": "GroupDb11" - }, - { - "action": "makeScreenshotOfField", - "fields": "group_folder_1", - "fileName": "GroupFolder1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_elements_group.php", - "fields": ["columns/group_folder_1"], - "targetFileName": "GroupFolder1" - } - ], - "inline_1n": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_1n" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_1n", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "Inline1nInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_1n.php", - "fields": ["columns/inline_1"], - "targetFileName": "Inline1nInline1" - } - ], - "inline_1n1n": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_1n1n" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_1n1n", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "click", - "link": ".form-irre-object .panel-collapse .form-irre-header-button" - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "Inline1n1nInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_1n1n.php", - "fields": ["columns/inline_1"], - "targetFileName": "Inline1n1nInline1" - } - ], - "inline_mm": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mm" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_mm", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMmChildParents", - "captionText": "An inline field with MM relation defined in the opposite table" - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMmInline1", - "altText": "An inline field with MM relation" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_mm.php", - "fields": ["columns/inline_1"], - "targetFileName": "InlineMmInline1" - } - ], - "inline_mm_child": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mm_child" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_mm_child.php", - "fields": ["columns/parents"], - "targetFileName": "InlineMmChildParents" - } - ], - "inline_mn": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mn" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_mn", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMnInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_mn.php", - "fields": ["columns/inline_1"], - "targetFileName": "InlineMnInline1" - } - ], - "inline_mn_child": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mn_child" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_mn_child", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "parents" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMnChildParents" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_mn_child.php", - "fields": ["columns/parents"], - "targetFileName": "InlineMnChildParents" - } - ], - "inline_mnsymmetric_branches": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mnsymmetric" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_mnsymmetric", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "branches" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMnSymmetricBranches" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_mnsymmetric.php", - "fields": ["columns/branches"], - "targetFileName": "InlineMnSymmetricBranches" - } - ], - "inline_mnsymmetric_input": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_mnsymmetric" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_mnsymmetric", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "branches" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineMnSymmetric11Branches" - } - ], - "inline_usecombination": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_inline_usecombination" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_inline_usecombination", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "goToField", - "fields": "inline_1" - }, - { - "action": "click", - "link": ".form-irre-header-button" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": ".form-section", - "fileName": "InlineUsecombinationcInline1" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_inline_usecombination.php", - "fields": ["columns/inline_1"], - "targetFileName": "InlineUsecombinationcInline1" - } - ], - "type": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_type" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_type", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfField", - "fields": "record_type", - "fileName": "RecordType" - }, - { - "action": "goToRecord" - }, - { - "action": "makeScreenshotOfElement", - "selector": ".t3js-module-body", - "fileName": "CtrlTypeWithChangedFields" - }, - { - "action": "selectOption", - "select": "select[name=\"data[tx_styleguide_type][1][record_type]\"]", - "option": "0" - }, - {"action": "waitForModalDialogInMainFrame"}, - { - "action": "makeScreenshotOfElement", - "fileName": "CtrlTypeChangeModal" - }, - {"action": "click", "link": "OK"}, - {"action": "wait", "timeout": 0.3}, - { - "action": "makeScreenshotOfElement", - "selector": ".t3js-module-body", - "fileName": "CtrlType0" - }, - { - "action": "selectOption", - "select": "select[name=\"data[tx_styleguide_type][1][record_type]\"]", - "option": "withColumnsOverrides" - }, - {"action": "waitForModalDialogInMainFrame"}, - {"action": "click", "link": "OK"}, - {"action": "wait", "timeout": 1}, - { - "action": "makeScreenshotOfElement", - "selector": ".t3js-module-body", - "fileName": "CtrlTypeWithOverriddenColumns" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_type.php", - "fields": ["columns/record_type"], - "targetFileName": "RecordType" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_type.php", - "fields": ["ctrl"], - "targetFileName": "CtrlTypeCtrl" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_type.php", - "fields": ["types"], - "targetFileName": "CtrlTypeTypes" - }, - - { - "action": "makeScreenshotOfField", - "fields": "record_type", - "fileName": "RecordType" - } - ], - "typeforeign": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_typeforeign" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_typeforeign", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfRecord", - "fileName": "CtrlTypeForeign", - "selector": ".typo3-TCEforms", - "altText": "The type of the record is fetched from the record specified in field `foreign_table`" - }, - { - "action": "makeScreenshotOfField", - "fields": "foreign_table", - "fileName": "TypeForeignForeignTable" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_typeforeign.php", - "fields": ["columns/foreign_table"], - "targetFileName": "TypeForeignForeignTable" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_typeforeign.php", - "fields": ["ctrl"], - "targetFileName": "TypeForeignTableCtrl" - } - ], - "ctrl_common": [ - { - "action": "resizeWindow", - "width": 640, - "height": 640 - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_ctrl_common" - }, - { - "action": "setNavigationDefaultUid", - "uid": 1 - }, - { - "action": "makeScreenshotOfField", - "fields": "sys_language_uid", - "fileName": "SysLanguageUid", - "altText": "A typical sys_language_uid field" - }, - { - "action": "makeScreenshotOfRecord", - "fileName": "CtrlDescriptionColumn", - "selector": "#EditDocumentController", - "altText": "Record information shown editing an example record" - }, - { - "action": "goToRecord" - }, - { - "action": "waitForText", - "text": "Access", - "timeout": 5 - }, - { - "action": "click", - "link": "Access" - }, - { - "action": "wait", - "timeout": 0.1 - }, - { - "action": "makeScreenshotOfElement", - "selector": "[role=\"tabpanel\"]", - "fileName": "CtrlEnableFields", - "altText": "Record information shown editing an example record" - }, - {"action": "amOnPage", "page": "/typo3/module/web/list?id=7&table=tx_styleguide_ctrl_common"}, - - { - "action": "resizeWindow", - "width": 1024, - "height": 640 - }, - {"action": "switchToMainFrame"}, - { - "action": "click", - "link": "Hide Navigation" - }, - {"action": "switchToContentFrame"}, - { - "action": "makeScreenshotOfElement", - "fileName": "TxStyleguideCtrlCommon", - "selector": ".recordlist", - "altText": "A common example of the control section" - }, - {"action": "switchToMainFrame"}, - { - "action": "click", - "link": "Show Navigation" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_ctrl_common.php", - "fields": ["ctrl"], - "targetFileName": "TxStyleguideCtrlCommon" - } - ], - "ctrl_minimal": [ - { - "action": "resizeWindow", - "width": 1024, - "height": 640 - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_ctrl_minimal" - }, - { - "action": "setNavigationDefaultUid", - "uid": 1 - }, - {"action": "amOnPage", "page": "/typo3/module/web/list?id=12&table=tx_styleguide_ctrl_minimal"}, - - {"action": "switchToContentFrame"}, - { - "action": "makeScreenshotOfElement", - "fileName": "TxStyleguideCtrlMinimal", - "selector": ".recordlist", - "altText": "A minimal example of the control section" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_ctrl_minimal.php", - "fields": ["types"], - "targetFileName": "TypeMinimal" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_ctrl_minimal.php", - "targetFileName": "TxStyleguideCtrlMinimal" - } - ], - "palettes": [ - { - "action": "resizeWindow", - "width": 640, - "height": 1024 - }, - { - "action": "setNavigationDefaultTable", - "table": "tx_styleguide_palette" - }, - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3conf/ext/styleguide" - }, - { - "action": "setNavigationDefaultUid", - "uid": { - "action": "getUidByField", - "table": "tx_styleguide_typeforeign", - "field": "sys_language_uid", - "value": 0 - } - }, - { - "action": "makeScreenshotOfRecord", - "fileName": "Palette", - "selector": ".typo3-TCEforms", - "captionText": "Examples of different palettes in the extension styleguide" - }, - { - "action": "makeScreenshotOfRecord", - "fileName": "PaletteDescription", - "selector": "//*[contains(@class, 'form-section') and contains(., 'palette_1')]", - "captionText": "A palette with a description" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_palette.php", - "fields": ["palettes"], - "targetFileName": "Palettes" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_palette.php", - "fields": ["palettes/palette_1"], - "targetFileName": "PaletteDescription" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "Configuration/TCA/tx_styleguide_palette.php", - "fields": ["types"], - "targetFileName": "PalettesTypes" - } - ] - }, - "sys_file_reference": [ - { - "action": "setCodeSnippetsSourcePath", - "path": "typo3/sysext/core" - }, - { - "action": "createPhpArrayCodeSnippet", - "sourceFile": "/Configuration/TCA/sys_file_reference.php", - "fields": ["crop"], - "targetFileName": "ImageManipulationCrop" - } - ] - } - } -} diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..77dab54f --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +.PHONY: help +help: ## Displays this list of targets with descriptions + @echo "The following commands are available:\n" + @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' + +.PHONY: docs +docs: ## Generate projects documentation (from "Documentation" directory) + mkdir -p Documentation-GENERATED-temp + + docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation + +.PHONY: test-docs +test-docs: ## Test the documentation rendering + mkdir -p Documentation-GENERATED-temp + + docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --fail-on-log