[!!!][TASK] Removed optional fluid typoscript template 05/51105/9
authorFrans Saris <franssaris@gmail.com>
Tue, 3 Jan 2017 11:36:17 +0000 (12:36 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 7 Jan 2017 17:06:58 +0000 (18:06 +0100)
The typoscript template was meant as an example/showcase on how to
use Fluid Widgets in FE. The current used includes are outdated or
broken.

Resolves: #78988
Releases: master
Change-Id: I5c30b017c10d6244d6aa559d395e351dd242d48d
Reviewed-on: https://review.typo3.org/51105
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/master/Breaking-78988-RemovedOptionalFluidTyposcriptTemplate.rst [new file with mode: 0644]
typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php [deleted file]
typo3/sysext/fluid/Configuration/TypoScript/setup.txt [deleted file]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-78988-RemovedOptionalFluidTyposcriptTemplate.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-78988-RemovedOptionalFluidTyposcriptTemplate.rst
new file mode 100644 (file)
index 0000000..8e7882e
--- /dev/null
@@ -0,0 +1,61 @@
+.. include:: ../../Includes.txt
+
+=============================================================
+Breaking: #78988 - Removed optional fluid typoscript template
+=============================================================
+
+See :issue:`78988`
+
+Description
+===========
+
+Static include file "Fluid: (Optional) default ajax configuration (fluid)" was meant as an
+example/showcase on how to use Fluid Widgets in FE. But the current used includes are outdated or
+broken. Furthermore the way of including files with `page.headerData` instead of
+`page.inlcudeJSLibs` or `page.includeCSSLibs` is not the prefered way anymore. Also in many
+situations this way of including JavaScript and CSS conflicts with other included JavaScript libs
+and CSS files.
+
+Including the files manually has many benefits:
+
+- more control of what versions of the javascript libs are included
+- no double jquery.js includes
+- more control of adjusting styling without resetting/overriding styles deliverd by jquery-ui-theme.css
+
+
+Impact
+======
+
+The jQuery JavaScript and CSS files are not included anymore so the AJAX handling in the front-end
+will not work anymore when the site relies on these files.
+
+
+Affected Installations
+======================
+
+All installations that depend on the jQuery includes added by the static typoscript template
+"Fluid: (Optional) default ajax configuration (fluid)".
+
+
+Migration
+=========
+
+Include the needed file manually in your typoscript template.
+
+.. code-block:: typoscript
+
+    page.includeJSLibs {
+        jquery = https://code.jquery.com/jquery-3.1.1.slim.min.js
+        jquery.external = 1
+        jquery.integrity = sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=
+        jqueryUi = https://code.jquery.com/ui/1.12.1/jquery-ui.min.js
+        jqueryUi.external = 1
+        jqueryUi.integrity = sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=
+    }
+
+    page.includeCSSLibs {
+        jqueryUI = https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css
+        jqueryUi.external = 1
+    }
+
+.. index:: Fluid, Frontend, JavaScript
\ No newline at end of file
diff --git a/typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/fluid/Configuration/TCA/Overrides/sys_template.php
deleted file mode 100644 (file)
index f7f14bc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('fluid', 'Configuration/TypoScript', 'Fluid: (Optional) default ajax configuration');
diff --git a/typo3/sysext/fluid/Configuration/TypoScript/setup.txt b/typo3/sysext/fluid/Configuration/TypoScript/setup.txt
deleted file mode 100644 (file)
index d1c8b90..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
- # includes jQuery library and default styles for Fluid Autocomplete Widget
-page.headerData.998 = TEXT
-page.headerData.998.value (
-       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
-       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
-       <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" type="text/css" media="all" />
-       <link rel="stylesheet" href="https://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
-)
\ No newline at end of file