Skip to content

Releases: Aplia/swark

Sorted ezobjectrelationlist_content nodes

14 Mar 11:06
Compare
Choose a tag to compare

By their order in the attribute content.

Made ezobjectrelationlist_content always return an array

19 Feb 11:39
Compare
Choose a tag to compare

Potential breaking change, if any code expects to use the node directly, instead of as an array.

Added new operator `ezobjectrelationlist_content`

07 Jan 08:03
Compare
Choose a tag to compare

Fixed typo which cause undefined variable error

26 Feb 15:11
Compare
Choose a tag to compare
v1.2.10

Fixed 'Undefined variable parameterOptions' in SwarkOperator.php

Improved parameter definitions and dump() operator

21 Feb 11:09
Compare
Choose a tag to compare

Parameters may now be defined with array structures.

This allows for better definitions of the default value and can support more definitions in the future.
It is still possible to use the old syntax with only a string.

The following array entries exists:

  • name - The name of the parameter, must exist
  • default - Default value for parameter if not passed, may be ommitted to make parameter required.
  • type - Enforce a type, use "mixed" or null to allow any value. Type value must match gettype() values. If unset and a default value exists it will be set to the default value type

e.g.

    function __construct()
    {
        parent::__construct('dump',
            ['name' => 'value', 'default' => null]
        );
    }

Added a new template operator dump() which replaces the builtin one.
This will use Symfony var dumper (if available) to dump the contents and place it in the template output.

Require required parameters

04 Feb 12:04
Compare
Choose a tag to compare
  • Fixes a bug where required parameters weren't actually required.
  • Fixes null check for json encode operator

Minor bugfix

17 Jan 10:04
7e06650
Compare
Choose a tag to compare
Update SwarkJSONEncodeOperator.php to add a default value

missing '=' in parameter declaration causing it to be missing a 'default' property,
leading to a Undefined index error.

Improved `redirect` operator to support more url types

07 Jan 08:36
Compare
Choose a tag to compare

A new parameter type can be used to control how the resulting URL is generated.

It can contain one of

  • abs - Generates an absolute url, with path-prefix/siteaccess
  • root - Generates a relative url without path-prefix/siteaccess
  • absroot - Generates an absolute url, without path-prefix/siteaccess

Additionally improvements:

  • Url starting with double slashes, ie. url without a scheme are supported.
  • Improved https detection, now works if behind a proxy.

For instance to ensure that an absolute url is returned:

{redirect("/about", 302, "abs")}
{redirect("https://example.org", 302, "abs")}

Enforced linefeed for all files

07 Jan 08:33
Compare
Choose a tag to compare

Added .gitattributes which defines that all files should use LF as EOL

Added documentation for ezselection_content as restructured text

30 Dec 14:27
Compare
Choose a tag to compare

Added documentation for ezselection_content as restructured text.