Download the PHP package t3g/symfony-template-bundle without Composer
On this page you can find all versions of the php package t3g/symfony-template-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t3g/symfony-template-bundle
More information about t3g/symfony-template-bundle
Files in t3g/symfony-template-bundle
Package symfony-template-bundle
Short Description TYPO3 Template Bundle
License MIT
Homepage http://www.typo3.com
Informations about the package symfony-template-bundle
Symfony Template Bundle
This package is used across various TYPO3 Symfony Applications to ensure a streamlined visual experience and reduced maintenance.
- Symfony Template Bundle
- Installation
- Configuration
- Encore
- Extending Menus
- Dividing Menus
- Page Template
- Available Blocks
title
headline
body
footer
stylesheets
javascripts
- EMail Template
- Available Blocks
email_subject
email_plaintext
email_html_preview
email_html_body
- Utilities
- AvatarUtility::getAvatar(string $email, int $size)
- AvatarUtility::getAvatarUrl(string $email, int $size)
- Twig Extensions
- AutolinkExtension
autolink
- AvatarExtension
avatar
- IconExtension
icon
- MarkdownExtension
markdown
- TemplateExtension
template_function_exist
template_function_call
- DateTimeExtension
to_datetime
localdate
localdatetime
relativetime
timediff
- Twig Tags
frame
- Usage
- Example
expand
- Usage
- Example
- JavaScript Libraries
- Datepicker
- Choices
- Taginput
Installation
Ensure that symfony default scripts are present in your composer.json
file.
Configuration
The bundle comes with a sensible default configuration, which is listed below. You can define these options if you need to change them:
Configuration will be available within the templates and can be accessed through template
variable.
Examples:
Encore
To enable your encore entrypoint simply configure the key within the yaml configuration.
Extending Menus
Available methods to override mainDefault
, mainProfile
and mainFooter
.
Dividing Menus
Page Template
Extend Default Layout
Available Blocks
title
headline
This block will only be rendered obove the body block if defined in the template.
body
footer
stylesheets
Stylesheet block will be rendered after the base
and encore
css before the closing </head>
.
javascripts
JavaScript block will be rendered after base
and encore
javascript before the closing </body>
.
EMail Template
Extend Default Layout
Available Blocks
email_subject
email_plaintext
email_html_preview
email_html_body
Utilities
AvatarUtility::getAvatar(string $email, int $size)
AvatarUtility::getAvatarUrl(string $email, int $size)
Twig Extensions
AutolinkExtension
autolink
Twig filter to automaticly convert urls, emails and phone numbers to links.
or
AvatarExtension
avatar
Twig function to display avatars.
IconExtension
icon
Twig function to display typo3 icons.
MarkdownExtension
markdown
Twig function to render markdown as HTML.
TemplateExtension
template_function_exist
A function to check if a function is available within the current Twig Environment.
template_function_call
Twig always checks for all functions with a template, also within a condition. This function is a wrapper around the original function call that is only executed if the function actually exists.
DateTimeExtension
to_datetime
Converts a unix timestamp to datetime object.
localdate
Returns a localized string representing this date.
localdatetime
Returns a localized string representing this datetime.
relativetime
Returns a string representation of a time relative to now, such as "in two days". Rounds down by default.
Option | Type | Default |
---|---|---|
units | array | [] |
For possible values see luxon documentation.
Usage
Example
With specific time units.
timediff
Returns a string representing the difference between a date and now() such as "1 year and 11 months".
Twig Tags
frame
Option | Type | Default |
---|---|---|
id | string | |
layout | embedded/default | default |
size | small/default | default |
color | default/primary/secondary/tertiary/quaternary/light/dark/white | default |
indent | bool/left/right | false |
rulerBefore | bool | false |
rulerAfter | bool | false |
center | bool | false |
backgroundImage | string | |
backgroundImageFade | bool | true |
backgroundImageBlur | bool | false |
backgroundImageParallax | bool | false |
backgroundImageGrayscale | bool | false |
backgroundImageSepia | bool | false |
height | auto/small/medium/max | auto |
innerWidth | small/medium/large/full/default | default |
title | string | |
titleSize | int | 2 |
titleAnchor | bool | true |
Usage
Example
expand
Usage
Example
JavaScript Libraries
Datepicker
The library can be enabled and configured through the attribute data-datepicker
, pass the configuration as json encoded string.
Example HTML
Example FormBuilder
Source: https://flatpickr.js.org/
Choices
The library can be enabled and configured through the attribute data-choicesjs
, pass the configuration as json encoded string.
Example HTML
Example FormBuilder
Source: https://github.com/jshjohnson/Choices
Taginput
The library can be enabled and configured through the attribute data-taginput
, pass the configuration as json encoded string.
Example FormBuilder
Source: https://github.com/yairEO/tagify
All versions of symfony-template-bundle with dependencies
erusev/parsedown Version ^1.7 || 2.*.*@dev
knplabs/knp-menu-bundle Version ^2.2 || ^3.0
knplabs/knp-paginator-bundle Version ^3.0 || ^4.0 || ^5.0
setasign/fpdi Version ^2.3
symfony/asset Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/deprecation-contracts Version ^2.5 || ^3.0
symfony/form Version ^5.4 || ^6.4
symfony/framework-bundle Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/security-bundle Version ^5.4 || ^6.4
symfony/translation Version ^5.4 || ^6.4
symfony/twig-bundle Version ^5.4 || ^6.4
tecnickcom/tcpdf Version ^6.7
twig/twig Version ^3.0