.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.txt Change and editing templates ---------------------------- EXT:int_blog is using fluid as template engine. If you are used to fluid already, you might skip this section. This documentation won't bring you all information about fluid but only the most important things you need for using it. You can get more information in books like the one of `Jochen Rau und Sebastian Kurfürst `_ or online, e.g. at `http://wiki.tpyo3.org/Fluid `_ or many other sites. Change the templates using TypoScript constants """"""""""""""""""""""""""""""""""""""""""""""" You can use the settings from extension manager to change the paths .. code-block:: php plugin.tx_intblog { settings { # cat=plugin.tx_intblog//80; type=text; label=Template folder templatesFolder = /Templates # cat=plugin.tx_intblog//90; type=text; label=Partial folder partialFolder = /Partials # cat=plugin.tx_intblog//100; type=text; label=Layout folder layoutFolder = /Layouts # cat=plugin.tx_intblog//110; type=text; label=Themes folder themesFolder = Themes/ # cat=plugin.tx_intblog//120; type=text; label=Default Theme defaultTheme = Events } } Thems, Layouts, Templates & Partials """""""""""""""""""""""""""""""""""" If using fluid, the templates are structured by using Layouts, Templates and Partials. Theme ''''' Themes are used to structure the output in many ways. You can add themes to have a different output in frontend. Some examples for themes: Events Theme for different type of event (conference, wedding, etc), Recipe Theme , Technical Theme, etc Layouts ''''''' Layouts are used to structure the output of a plugin. A simple example is to wrap every output with the same
element. Therefore it is not needed to repeat this code and write it only once. A layout can look this: .. code-block:: html
This means that the output of the section ``main`` will be rendered inside a div with the id ``tx-int-blog``. Templates ''''''''' Every action needs its own template which can be found at ``Templates//.html``. If **Layouts** are used, it is required to define the name of the Layout (which is identical to the file name of the Layout file). .. code-block:: html This will be rendered Partials '''''''' Partials are used within templates to be able to reuse code snippets. Sections '''''''' Sections are very similar to partials. The difference is that sections are defined in the same file as the template. ViewHelpers ''''''''''' Ever fluid viewhelper starts with **