From 284011327e60b5fe8081adff93b0eab99f8edf13 Mon Sep 17 00:00:00 2001 From: Christian Weiske <weiske@mogic.com> Date: Wed, 27 Apr 2016 09:32:09 +0200 Subject: [PATCH] [TASK] Add documentation for fluid template configuration in indexed_search 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> --- .../Configuration/FluidTemplating/Index.rst | 33 +++++++++++++++++++ .../Documentation/Configuration/Index.rst | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 typo3/sysext/indexed_search/Documentation/Configuration/FluidTemplating/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 index 000000000000..4630d6bcffa6 --- /dev/null +++ b/typo3/sysext/indexed_search/Documentation/Configuration/FluidTemplating/Index.rst @@ -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``. diff --git a/typo3/sysext/indexed_search/Documentation/Configuration/Index.rst b/typo3/sysext/indexed_search/Documentation/Configuration/Index.rst index 444f0ec4b317..c77b3108c092 100644 --- a/typo3/sysext/indexed_search/Documentation/Configuration/Index.rst +++ b/typo3/sysext/indexed_search/Documentation/Configuration/Index.rst @@ -20,4 +20,4 @@ Configuration General/Index TypoScript/Index - + FluidTemplating/Index -- GitLab