Toolbox Changelog

0.9.5 October 12th, 2018

Bugfix
  • Fixed codemirror twig editor to fallback to 3024-midnight theme on multisite.
  • Fixed plugin-update-checker that sent out too frequent requests.
  • Fixed unclosed tag on toolbox_form_checkbox()
  • Fixed translation-files location pointing to the wrong location, resulting in error when running with wp_debug enabled.
  • Fixed *Toolbox conditional filter Datetime not working when also having PowerPack installed.
  • Fixed *Toolbox conditional filter Datetime "What to do when match" not working correctly.
Enhancements
  • Added autoheight on CodeMirrors Twig Templates.
  • Added Clone ACF-field to fieldtypes.

0.9.4 August 24th, 2018

Bugfix
  • Fixed DOM error in Settings panel where Timber Template field-checkboxes didnt get the correct IDs.
Enhancement
  • Added fieldname to field dropdown for easier selection. Can be deactivated in Toolbox-settings to only show the label.
  • Added POT-file to /languages directory and activated textdomain translations if available.

0.9.3 August 16th, 2018

Enhancement
  • Textual improvements.

v0.9.2.1 August 13th, 2018

Bugfix
  • Toolbox Settings not displaying fieldtype names due to change in ACF 5.7. Updated with version check on changed function-return.

v0.9.2 August 3rd, 2018

Bugfix
  • ACF field module: ACF 5.7 has changed results on one of their functions. Fixed fieldlist and grouplist in class ToolboxUtils.

v0.9.1 July 6th, 2018

Bugfix
  • Enqueue the Codemirror (Twig Templates) scripts and css only when on admin/dashboard, not on frontend.
Bugfix/Enhancement
  • Added {{relevanssi}} and {{excerpt}} variables for better search results. {{relevanssi}} will have reference to posts when plugin is activated.
  • Added select for PostQuery / get_posts for Timber Posts Module for Relevanssi Support. Set to get_posts when using Relevanssi.

v0.9 June 28th, 2018

Enhancements
  • Improved Timber Posts Module filtering possibilities. Added Tax, Include, Exclude Posts.
  • Minor improvement: Timber Posts Module selection field for multi post-types now has more lines.
  • Custom Post Type "Twig Templates" added. This allows you to move Twig Templates out of the module and make them globally available for inclusion using Twig {% use 'slugname.twig' %} {% include 'slugname.twig' %} and {% import 'slugname.twig' as variable %}, depending no it's intended use. See Twig docs for more info.
  • Added shortcode [toolboxtwig][/toolboxtwig]. Needs activation in settings.
  • Overhaul of settings tabs, grouped settings for more clarity.
  • Error handling of Twig templates has improved. If Twig template contains errors it will now return the error or fail silently without breaking the browser's output.

 

v0.8.8 June 12th, 2018

Enhancements
  • Added Twig function toolbox_object_to_array. This function transforms an object to an array, useful for handling fields that have an invalid name when trying to call them as a variable.
  • Added Twig function toolbox_get_term_by. This is useful when working with Taxonomy field, to retreive the corresponding name of that term. In a __field__ loop, use: {{ toolbox_get_term_by( 'id', item , __field__object.taxonomy ).name }} to display the taxonomy id's name.
  • Added Twig function toolbox_get_fields. Return one or multiple fields in one pass. Use {% set myfields = toolbox_get_fields('my_field') %} or {% set myfields = toolbox_get_fields( ['my_field', 'my_second_field' , 'my_third_field'] )%}
  • Added Twig function toolbox_get_field_objects. Return one or multiple field_objects in one pass. Use {% set myfields = toolbox_get_field_objects('my_field') %} or {% set myfields = toolbox_get_field_objects( ['my_field', 'my_second_field' , 'my_third_field'] )%}
  • Changed behavior of filter 'toolbox_twig_preset_directory'. You can set a directory using this filter, when adding modules it will first try to find the field template there. If not found it will revert to the plugins default template. You can still set 'toolbox_twig_preset_directory_{fieldtype}' for individual fieldtypes to different directories.
Bug fix
  • Added fieldtypes url, group, email, password, range, true_false to templateable fields.

v0.8.7 June 11th, 2018

Enhancements
  • Added Main Query posts collection to the Timber Posts Module. On Singular page use {{post}}and {{posts}} variable, on archive and others use posts only.
  • Added Filter to add custom Twig-views directories. Defaults to your-child-theme/views and your-theme/views directory.
  • Added Timber variable {{__field__}} and {{__field__object}} to default data. {{__field__}} is the returned acf-value, {{__field__object}} the acf-field object. This is in favor of the previous {{fieldtype}} and {{fieldtype_data}} (for instance: {{repeater}} {{relationship}}. This seemed to clash with other variables (group, user) when fieldtypes were named as filters, methods or tags. Also, some fieldtypes can have not so obvious names like flexible_content. {fieldtype} and {fieldtype_data} are still operable, but are to be deprecated in v1.0
    Read about it in the docs.
Bug fix
  • Was able to add taxonomy-fieldtype, user-fieldtype, group-fieldtype because of enhancement above.
  • Fixed activation_hook not running on plugin activation, resulting in possible error.