.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _installation: .. image:: ../Images/logo_typotonic.jpg :width: 250px Installation & Configuration ---------------------------- Step 1 - Installing the Extension ################################# You can install the extension either with composer or manually by uploading the zip file to the Extension Manager. .. code-block:: bash composer require aix/tonic Once it is correctly installed and fits the version dependency, it should appear in your extension list as seen in the following screenshot. .. image:: ../Images/Screenshots/screenshot_ext_list.jpg Step 2 - Include Static Template to your Site Template ###################################################### In order to add all fields and configuration of TypoTonic, it is necessary to include the static template ``[TypoTonic] General Configuration (tonic)`` to your site template. Please refer to the following screenshot for more information. .. image:: ../Images/Screenshots/screenshot_static_template.jpg Step 3 - Clear all caches ######################### Please manually clear all the caches to reload your TypoScript Configuration. Additional Configuration ######################## Pre-Defining Templates for the Template Selector in TypoScript ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: ../Images/Screenshots/screenshot_template_selection.jpg :width: 300px You manually can add predefined templates to the template selector for easy usage. You have to edit the TypoScript of your Page-Template and add the following information. (example) This gives you the possibility to create extensions that deliver Templates for TypoTonic. You can use the predefined templates as parts later within fluid by using the template identifier. Please use the following information to define a template: +-------------------------+-----------------------------------------------------------------------+ | Template Identifier | This identifier can be used with the dv:render.template ViewHelper | +-------------------------+-----------------------------------------------------------------------+ | group | The group name to group multiple templates | +-------------------------+-----------------------------------------------------------------------+ | icon | Path to the icon file, you can use icons of TypoTonic | +-------------------------+-----------------------------------------------------------------------+ | name | The name of the template | +-------------------------+-----------------------------------------------------------------------+ | file | Path to the template file | +-------------------------+-----------------------------------------------------------------------+ See the following example: .. code-block:: html plugin.tx_tonic.templates { myTemplateIdentifier { group = General icon = EXT:tonic/Resources/Public/Icons/Datatype/brick.png name = My Test Template file = EXT:tonic_templates/Resources/Private/Templates/tonic_test1.html } } Rendering pre-defined templates within fluid ******************************************** Predefined templates aswell as html files can be rendered within fluid by using the Template.RenderViewHelper. See the following example on how to use the ViewHelper .. code-block:: html Toolbar Item (Pro-Feature) ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: ../Images/Screenshots/screenshot_toolbar_item.jpg TypoTonic Professional adds an icon to the toolbar in the backend. With this toolbar item, you can easyly manage or create records of your existing datatypes. To deactivate the toolbar item, you need to disable it in the User TSconfig with the following code .. code-block:: html options { tonic { disableTonicToolbarItem = 1 } } Editing Records in Frontend (Pro-Feature) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: ../Images/Screenshots/screenshot_record_edit_button.jpg :width: 150px You can enable an edit button for according records that will be shown on a dynamic detail page in the top right corner of the browser window. .. code-block:: html options { tonic { enableRecordEditButton = 1 } } Add Record Creation-Buttons to DocHeader ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: ../Images/Screenshots/screenshot_docheader_datatypes.jpg It is possible to manually add the record-add buttons to the docheader in the list module by using the datatype uid within the following code. This code has to be placed in the Page TSconfig. The button also will automatically be added when configuring the "Behaviour" in the page settings! .. code-block:: html tx_tonic { docHeaderDatatypes = 1,2,3 }