Skip to content

Releases: phproberto/joomla-twig

Version 1.5.0 - Stable

19 Sep 10:06
Compare
Choose a tag to compare

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

15 Jun 10:53
Compare
Choose a tag to compare

Bug fixes

  • Fixed issue that could cause blank pages when using shared cache #64

New Features

  • New jregistry() function to create instances of \Joomla\Registry\Registry #63

Documentation

Version 1.3.0 - Stable

14 Jun 10:42
Compare
Choose a tag to compare
  • New functions for modules:
    • jmodule_get_module(name, title)
    • jmodule_get_modules(position, attribs)
    • jmodule_render_module(module)

Version 1.2.0 - Stable

08 Jun 15:34
Compare
Choose a tag to compare
  • Base classes for integration with component views

Version 1.1.0 - Stable

07 Jun 08:21
Compare
Choose a tag to compare
  • Base class to create modules that use twig as rendering system.
  • HasTwigRenderer trait
  • HasParams trait
  • HasLayoutData trait

Version 1.0.3 - Stable

11 May 04:04
Compare
Choose a tag to compare
  • Bug fixes with fields

Version 1.0.2 - Stable

20 Nov 15:13
62ec35c
Compare
Choose a tag to compare
  • Compatible with Joomla 4 Alpha 2

Download and install it through Joomla Extension Manager.

Version 1.0.1 - Stable

17 Nov 16:45
111a75c
Compare
Choose a tag to compare
  • 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

16 Nov 16:08
Compare
Choose a tag to compare

First stable version!!

Download and install it through Joomla Extension Manager.