.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. _templatingTemplateSelector: Template Selector ================= It is possible to provide selectable template layouts to the editors, eg. a "list layout" and a "tile layout", or different searchbox layouts. .. image:: ../Images/Templating/template-layout-selector.png Usage ----- Register your new templateLayout in the *Page TSConfig*. It will then appear in the plugin and the editor will be able to select ist. .. code-block:: none TCEFORM { tt_content { pi_flexform.ke_search_pi1.view.templateLayout.addItems { 20 = Custom search box 1 } } } Register your own template paths, see :ref:`custom-templates`. Add the new layout inside a condition which checks for the setting "conf.templateLayout". .. code-block:: none ... default template code ... custom template code