Releases: phproberto/joomla-twig
Releases · phproberto/joomla-twig
Version 1.5.0 - Stable
How to install / upgrade
Download joomla-twig-v1.5.0.zip an install through Joomla! Extension Manager.
New Features
New array_values filter
Equivalent to PHP's array_values()
function for Twig. This can be useful when you want to avoid an array order being changed.
Usage:
// Imagine that in PHP you have a var like:
$myArray = [
12 => 'one',
15 => 'two'
];
// In twig you can use it like:
{% set myArrayValues = myArray|array_values %}
Control Twig cache independently
Now the Twig - Cache plugin contains a parameter to enable it in a custom way:
- Use global --
: (Default) Will enable cache when joomla cache is enabled.Enabled
: Cache will be enabled even when Joomla! cache is disabled. That way you can improve Twig performance if you have issues enabling joomla global cache.Disabled
: Cache will be disabled even when Joomla! cache is enabled. That way you can keep Joomla! cache enabled while changing twig layouts.
Version 1.4.0 - Stable
Version 1.3.0 - Stable
- New functions for modules:
jmodule_get_module(name, title)
jmodule_get_modules(position, attribs)
jmodule_render_module(module)
Version 1.2.0 - Stable
- Base classes for integration with component views
Version 1.1.0 - Stable
- Base class to create modules that use twig as rendering system.
HasTwigRenderer
traitHasParams
traitHasLayoutData
trait
Version 1.0.3 - Stable
- Bug fixes with fields
Version 1.0.2 - Stable
- Compatible with Joomla 4 Alpha 2
Download and install it through Joomla Extension Manager.
Version 1.0.1 - Stable
- Update package when a new version is released from Joomla backend. Thanks Tobias Zulauf!
Download and install it through Joomla Extension Manager.
Version 1.0.0 - Stable
First stable version!!
Download and install it through Joomla Extension Manager.