Templates 

The Anthology extension uses the Fluid templating engine to render its output. This allows for full control over the HTML markup. You can customise every aspect of the plugin's appearance by overriding the default templates.

Default Template Structure 

The extension's templates are located in its Resources/Private/ directory:

Templates/
Contains the main template files for each action (e.g., List.html, View.html).
Partials/

Contains reusable snippets of code that are used in the main templates. This is where the most common customisations are made.

  • List/Record.html: Renders a single record in the list view.
  • List/Pagination.html: Renders the pagination widget.
  • List/Filters.html: Renders the container for the filters.
  • Filter/...: Contains the templates for the different filter types (e.g., Date.html, Search.html).
Layouts/
Defines the overall HTML structure of the templates.

Overriding Templates 

There are two main ways to override the default templates.

Manual TypoScript Overrides 

You can also explicitly tell the Anthology plugin where to find your templates using TypoScript:

plugin.tx_llanthology {
	settings {
		view {
			templateRootPaths.123456789 = EXT:my_site_package/Resources/Private/Templates/
			partialRootPaths.123456789 = EXT:my_site_package/Resources/Private/Partials/
			layoutRootPaths.123456789 = EXT:my_site_package/Resources/Private/Layouts/
		}
	}
}
Copied!

Available Variables 

Inside the templates, you have access to several variables:

paginator
A paginator object that contains the records for the current page (paginator.paginatedItems).
pagination
The pagination object for building the page links.
filters
A list of the configured filter objects.
record
In the singleAction view and the List/Record.html partial, this variable holds the current record being displayed.
settings
The settings array from the plugin's FlexForm.