blueways/bw-static-template

TYPO3 extension that adds a frontend plugin for rendering static fluid templates. Inject JSON and FAL data into the templates.

Installs: 333

Dependents: 0

Suggesters: 0

Security: 0

Type:typo3-cms-extension

v1.0.10 2021-06-11 08:16 UTC

This package is auto-updated.

Last update: 2021-09-11 08:51:03 UTC


README

Frontend plugin that renders fluid templates. Inject JSON data or FAL files into the templates. Perfect for fast template development with example data.

Plugin in the TYPO3 Backend

Install

  • via composer:
composer require blueways/bw-static-template
  • include static typoscript template
  • include static pageTS template

Usage

Add plugin to page

Select fluid template to render (e.g.: `EXT:your_ext/Resources/Private/Partials/Header.html`)

Optional: Pass data into template

Enter valid JSON:

{
	"templateMarker1": "Example marker data",
	"persons": [
		{
			"name": "Markus Mustermann",
			"contactUid": 3
		},
		{
			"name": "Paul Werner",
			"contactUid": 4
		}
	]
}

Now you can use the given data in your template, e.g.:

Hello {templateMarker1}!

<f:for each="{persons}" as="person">
	Say hello to <f:link.page pageUid="{person.contactUid}">{person.name}</f:link.page>
</f:for>

Optional: Select images

The selected images are accessible as FileReference via `{files}` marker.

<f:for each="{files}" as="file">
	<f:image image="{file}" />
</f:for>
			 

Contribute

This extension was made by Maik Schneider from blueways. Feel free to contribute!