[TASK] Add documentation for fluid template configuration in indexed_search 29/47929/3
authorChristian Weiske <weiske@mogic.com>
Wed, 27 Apr 2016 07:32:09 +0000 (09:32 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 29 Apr 2016 10:15:03 +0000 (12:15 +0200)
Describe how to use custom templates for fluid based indexed_search

Releases: master
Resolves: #75935
Change-Id: I2f55bcd359a8c604907eccf34e93016920a7def1
Reviewed-on: https://review.typo3.org/47929
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/indexed_search/Documentation/Configuration/FluidTemplating/Index.rst [new file with mode: 0644]
typo3/sysext/indexed_search/Documentation/Configuration/Index.rst

diff --git a/typo3/sysext/indexed_search/Documentation/Configuration/FluidTemplating/Index.rst b/typo3/sysext/indexed_search/Documentation/Configuration/FluidTemplating/Index.rst
new file mode 100644 (file)
index 0000000..4630d6b
--- /dev/null
@@ -0,0 +1,33 @@
+.. ==================================================
+.. FOR YOUR INFORMATION
+.. --------------------------------------------------
+.. -*- coding: utf-8 -*- with BOM.
+
+.. include:: ../../Includes.txt
+
+
+
+.. _configuration-fluidtemplating:
+
+Fluid Templating
+^^^^^^^^^^^^^^^^
+
+The plugin "Indexed Search (Extbase & Fluid based)" can be extended with custom templates:
+
+.. code-block:: typoscript
+
+   plugin.tx_indexedsearch.view {
+       templateRootPaths {
+           0 = EXT:indexed_search/Resources/Private/Templates/
+           1 = EXT:myextension/Resources/Private/Templates/
+       }
+
+       partialRootPaths {
+           0 = EXT:indexed_search/Resources/Private/Partials/
+           1 = EXT:myextension/Resources/Private/Partials/
+       }
+   }
+
+The above configuration will made the plugin look for any template in ``myextension`` first and
+fall back to the default ``indexed_search`` template if a template could not be found in
+``myextension``.