2017 © Pedro Peláez
 

typo3-cms-extension typo3-fluidloader

Automatic fluid template loader for TYPO3 CMS

image

sethorax/typo3-fluidloader

Automatic fluid template loader for TYPO3 CMS

  • Tuesday, June 6, 2017
  • by Sethorax
  • Repository
  • 1 Watchers
  • 0 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 26 % Grown

The README.md

TYPO3 Extension fluidloader

Build Status StyleCI Latest Stable Version License, (*1)

This extension automatically loads HTML fluid template files from a directory., (*2)

Features

  • Automatically loads HTML template files from a directory as soon as they are added
  • Available templates can be assigned to a page in the page settings
  • Backend layout can directly in the template

This extension makes it very easy to work with different fluid templates for TYPO3 pages., (*3)

Usage

Installation

Installation using Composer, (*4)

It is recommended to install this extension via composer.
To install it just do composer require sethorax/typo3-fluidloader, (*5)

This extension can also be installed traditionally via the TYPO3 Extension Repository (TER)., (*6)

Setup

  1. Include the static TypoScript template of the extension.
  2. Set your template, partial and layout root paths in the extension settings.
  3. Start adding some HTML fluid templates to the template root path as you wold normally do.
  4. Once a template is added, you can select this template in the page settings. Please note that the template must contain a special fluid section for the configuration options.

Fluid Template

Configuration Section

All templates must contain a special fluid section with the template configuration in XML format., (*7)

Example configuration:, (*8)

<f:section name="configuration">
    <configuration>
        <general>
            <layoutName>My awesome template</layoutName>
        </general>
        <backendLayout>
            <row>
                <column pos="0" colspan="2">Full width</column>
            </row>
            <row>
                <column pos="1">50% Width Left</column>
                <column pos="2">50% Width Right</column>
            </row>
            <row>
                <column pos="3" colspan="2">Some more content</column>
            </row>
        </backendLayout>
    </configuration>
</f:section>

The template configuration is located within the "configuration" fluid section.
The configuration is in XML format., (*9)

The configuration has one root element configuration. Within that element you can specify general configuration and the backendLayout.
Within general you can set the name of the template. This name will be used as the display value of the select field in the page settings., (*10)

Whitin backendLayout you can configure the backend layout of this template. The example above should be self explanatory. The content of the column elements is the label for that section., (*11)

Please note that the content of <f:section name="configuration"> must be valid XML!, (*12)

Rest of the template

The rest of the template is just standard fluid. You can specify as many sections as you like and of course set the layout of the template., (*13)

It is recommended to use the FluidTYPO3 VHS extension to easily render the columns., (*14)

The configuration of the current page can be accessed via the page fluid variable., (*15)

Sidenotes

The creation of this extension was heavily inspired by FluidTYPO3's fluidpages extension., (*16)

The Versions

06/06 2017

dev-master

9999999-dev

Automatic fluid template loader for TYPO3 CMS

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Avatar Sethorax

typo3 cms fluid

06/06 2017

1.0.0

1.0.0.0

Automatic fluid template loader for TYPO3 CMS

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Avatar Sethorax

typo3 cms fluid

26/04 2017

0.9.0

0.9.0.0

Automatic fluid template loader for TYPO3 CMS

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Avatar Sethorax

typo3 cms fluid